1
0
mirror of https://github.com/kakwa/ldapcherry synced 2024-11-22 17:34:21 +01:00

adding exception regarding password checks

* exception for ppolicy match
* exception for password fields don't match
This commit is contained in:
kakwa 2015-07-14 14:03:39 +02:00
parent a83cae5428
commit abb651daa1

View File

@ -77,6 +77,16 @@ class MissingRolesFile(Exception):
{'rolefile': rolefile}
class PasswordMissMatch(Exception):
def __init__(self):
self.log = "password missmatch"
class PPolicyError(Exception):
def __init__(self):
self.log = "password doesn't match ppolicy"
class MissingMainFile(Exception):
def __init__(self, config):
self.rolefile = rolefile