##// END OF EJS Templates
Reject LDAP authentication requests with blank password. Per RFC4513 these should be treated as anonymous binds. See the Security Considerations (Section 6.3.1) for more details on this issue.
Shawn K. O'Shea -
r1659:40db9e08 beta
parent child Browse files
Show More
@@ -87,6 +87,9 b' class AuthLdap(object):'
87
87
88 uid = chop_at(username, "@%s" % self.LDAP_SERVER_ADDRESS)
88 uid = chop_at(username, "@%s" % self.LDAP_SERVER_ADDRESS)
89
89
90 if not password:
91 log.debug("Attempt to authenticate LDAP user with blank password rejected.")
92 raise LdapPasswordError()
90 if "," in username:
93 if "," in username:
91 raise LdapUsernameError("invalid character in username: ,")
94 raise LdapUsernameError("invalid character in username: ,")
92 try:
95 try:
General Comments 0
You need to be logged in to leave comments. Login now