Be more verbose when logging errors in info LDAP plugin
authorRob Crittenden <rcritten@redhat.com>
Tue, 3 Nov 2015 22:02:04 +0000 (17:02 -0500)
committerPatrick Uiterwijk <puiterwijk@redhat.com>
Sat, 14 Nov 2015 00:04:53 +0000 (01:04 +0100)
commit7ba361e006e7cc178132a103fc62403409689516
tree1845101dd7a06e95f0edb98c6767216b328a0375
parentdc7da4c671f513243c4840cf40e2a2ed2e7d9d74
Be more verbose when logging errors in info LDAP plugin

The infoldap plugin was logging raw exceptions but not providing
any context to them.

This breaks some of the calls into separate try/except to provide
more precise failure reasons.

Also fix a typo in the authldap plugin and handle ValueError
when validating the template syntax.

https://fedorahosted.org/ipsilon/ticket/39

Signed-off-by: Rob Crittenden <rcritten@redhat.com>
Reviewed-by: Simo Sorce <simo@redhat.com>
Reviewed-by: John Dennis <jdennis@redhat.com>
ipsilon/info/infoldap.py
ipsilon/login/authldap.py