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
1 changed files with 10 additions and 0 deletions

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