##// END OF EJS Templates
Fixed: LDAP authentication crashes if one of the LDAP attributes name is left blank on the LDAP setup screen....
Jean-Philippe Lang -
r841:eacd050630b2
parent child
Show More
@@ -40,7 +40,7 class AuthSourceLdap < AuthSource
40 attrs = [:firstname => AuthSourceLdap.get_attr(entry, self.attr_firstname),
40 attrs = [:firstname => AuthSourceLdap.get_attr(entry, self.attr_firstname),
41 :lastname => AuthSourceLdap.get_attr(entry, self.attr_lastname),
41 :lastname => AuthSourceLdap.get_attr(entry, self.attr_lastname),
42 :mail => AuthSourceLdap.get_attr(entry, self.attr_mail),
42 :mail => AuthSourceLdap.get_attr(entry, self.attr_mail),
43 :auth_source_id => self.id ]
43 :auth_source_id => self.id ] if onthefly_register?
44 end
44 end
45 return nil if dn.empty?
45 return nil if dn.empty?
46 logger.debug "DN found for #{login}: #{dn}" if logger && logger.debug?
46 logger.debug "DN found for #{login}: #{dn}" if logger && logger.debug?
General Comments 0
You need to be logged in to leave comments. Login now