From fdba64f9da7991ededf71c5135c2f873edcf1272 Mon Sep 17 00:00:00 2001 From: kakwa Date: Mon, 2 Nov 2015 23:16:26 +0100 Subject: [PATCH] changing http returns for checkppolicy --- ldapcherry/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ldapcherry/__init__.py b/ldapcherry/__init__.py index d0e2a97..4d0c4d9 100644 --- a/ldapcherry/__init__.py +++ b/ldapcherry/__init__.py @@ -906,7 +906,7 @@ class LdapCherry(object): """ search user page """ keys = params.keys() if len(keys) != 1: - cherrypy.response.status = 403 + cherrypy.response.status = 400 return "bad argument" password = params[keys[0]] self._check_auth(must_admin=False) @@ -915,7 +915,7 @@ class LdapCherry(object): if ret['match']: cherrypy.response.status = 200 else: - cherrypy.response.status = 400 + cherrypy.response.status = 200 return json.dumps(ret, separators=(',', ':')) @cherrypy.expose