##// END OF EJS Templates
Fixed: LDAP authentication without password may be possible (#714)....
Jean-Philippe Lang -
r1155:b935aebd9936
parent child
Show More
@@ -27,6 +27,7 class AuthSourceLdap < AuthSource
27 end
27 end
28
28
29 def authenticate(login, password)
29 def authenticate(login, password)
30 return nil if login.blank? || password.blank?
30 attrs = []
31 attrs = []
31 # get user's DN
32 # get user's DN
32 ldap_con = initialize_ldap_con(self.account, self.account_password)
33 ldap_con = initialize_ldap_con(self.account, self.account_password)
General Comments 0
You need to be logged in to leave comments. Login now