Changes between Initial Version and Version 1 of Ticket #13490, comment 6
- Timestamp:
- Nov 28, 2018, 11:57:48 PM (6 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #13490, comment 6
initial v1 3 3 {{{#!diff 4 4 diff --git a/ldapacctmngrplugin/trunk/ldapacctmngrplugin/security/ldapstore.py b/ldapacctmngrplugin/trunk/ldapacctmngrplugin/security/ldapstore.py 5 index 2ee361972.. a2b670e731006445 index 2ee361972..8c39c4768 100644 6 6 --- a/ldapacctmngrplugin/trunk/ldapacctmngrplugin/security/ldapstore.py 7 7 +++ b/ldapacctmngrplugin/trunk/ldapacctmngrplugin/security/ldapstore.py … … 24 24 con = self.init_connection() 25 25 - resp = con.search_s(base, ldap.SCOPE_SUBTREE, filter, ['dn']) 26 + resp = self._ldap_search_user( user, ['dn'])26 + resp = self._ldap_search_user(con, user, ['dn']) 27 27 28 28 # Added to prevent empty password authentication (some server allows that) … … 35 35 + con = self.init_connection() 36 36 + try: 37 + resp = self._ldap_search_user( user, ['dn'])37 + resp = self._ldap_search_user(con, user, ['dn']) 38 38 + return len(resp) != 0 39 39 + finally: … … 52 52 + return con.search_s(self.user_searchbase, ldap.SCOPE_SUBTREE, filter_, 53 53 + attrs) 54 55 54 }}}