fixed ldap security issue, thanks demetrio

This commit is contained in:
mdipierro committed 2012-11-23 08:02:01 -06:00
1 parent c8367e257f
commit ee7db631ee
2 files changed
+3 -1

No files matched your search

+1 -1
View File
@@ -1 +1 @@
Version 2.2.1 (2012-11-17 22:28:15) stable
Version 2.2.1 (2012-11-23 08:01:16) stable
+2
View File
@@ -432,6 +432,8 @@ def ldap_auth(server='ldap', port=None,
if not do_manage_groups(username, password):
return False
return True
except ldap.INVALID_CREDENTIALS, e:
return False
except ldap.LDAPError, e:
import traceback
logger.warning('[%s] Error in ldap processing' % str(username))