You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
defsearch_for_login@login_ldap_entry ||= beginDeviseLdapAuthenticatable::Logger.send("LDAP search for login: #{@attribute}=#{@login}")filter=Net::LDAP::Filter.eq(@attribute.to_s,@login.to_s)ldap_entry=nilmatch_count=0@ldap.search(:filter=>filter){|entry| ldap_entry=entry;match_count+=1}## <<-- this returns the last entry if the are two entries of the same emailop_result=@ldap.get_operation_resultifop_result.code!=0thenDeviseLdapAuthenticatable::Logger.send("LDAP Error #{op_result.code}: #{op_result.message}")endDeviseLdapAuthenticatable::Logger.send("LDAP search yielded #{match_count} matches")ldap_entryendend
The problem that i am getting is that somethings we have more than 1 entry with the same email. This method always returns the last one. How can we choose to return the first one or try to authenticate on both entries.
The text was updated successfully, but these errors were encountered:
The problem that i am getting is that somethings we have more than 1 entry with the same email. This method always returns the last one. How can we choose to return the first one or try to authenticate on both entries.
The text was updated successfully, but these errors were encountered: