Fix LDAP plugin configuration checks
authorPatrick Uiterwijk <puiterwijk@redhat.com>
Thu, 13 Nov 2014 12:59:41 +0000 (13:59 +0100)
committerSimo Sorce <simo@redhat.com>
Thu, 13 Nov 2014 14:32:01 +0000 (09:32 -0500)
Interpret config value correctly (it is a boolean now)
Pass required argument

Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
Reviewed-by: Simo Sorce <simo@redhat.com>
ipsilon/login/authldap.py

index 06dac09..4699916 100755 (executable)
@@ -49,7 +49,7 @@ class LDAP(LoginFormBase, Log):
             self.lm.info = None
 
             if not self.ldap_info:
-                self.ldap_info = LDAPInfo()
+                self.ldap_info = LDAPInfo(self._site)
 
             return self.ldap_info.get_user_data_from_conn(conn, dn)
 
@@ -162,7 +162,7 @@ authentication. """
 
     @property
     def get_user_info(self):
-        return (self.get_config_value('get user info').lower() == 'yes')
+        return self.get_config_value('get user info')
 
     @property
     def bind_dn_tmpl(self):