X-Git-Url: http://git.cascardo.info/?p=cascardo%2Fipsilon.git;a=blobdiff_plain;f=ipsilon%2Flogin%2Fauthldap.py;fp=ipsilon%2Flogin%2Fauthldap.py;h=6e9afd377e459f847c35cd7e5a040e05b4eb5766;hp=1986490d7a2ee1169cf1ffdad42eef6ebbf4bd30;hb=7ba361e006e7cc178132a103fc62403409689516;hpb=dc7da4c671f513243c4840cf40e2a2ed2e7d9d74 diff --git a/ipsilon/login/authldap.py b/ipsilon/login/authldap.py index 1986490..6e9afd3 100644 --- a/ipsilon/login/authldap.py +++ b/ipsilon/login/authldap.py @@ -233,7 +233,13 @@ class Installer(LoginManagerInstaller): opts['ldap_bind_dn_template'] % {'username': 'test'} except KeyError: logging.error( - 'Bind DN template does not container %(username)s' + 'Bind DN template does not contain %(username)s' + ) + return False + except ValueError as e: + logging.error( + 'Invalid syntax in Bind DN template: %s ', + e ) return False config['bind dn template'] = opts['ldap_bind_dn_template']