From abb651daa1290081889ecc2f550369348562490c Mon Sep 17 00:00:00 2001 From: kakwa Date: Tue, 14 Jul 2015 14:03:39 +0200 Subject: [PATCH] adding exception regarding password checks * exception for ppolicy match * exception for password fields don't match --- ldapcherry/exceptions.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/ldapcherry/exceptions.py b/ldapcherry/exceptions.py index 7dad9a4..d91d0fc 100644 --- a/ldapcherry/exceptions.py +++ b/ldapcherry/exceptions.py @@ -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