cschiewek / devise_ldap_authenticatable

Devise Module for LDAP
MIT License
593 stars 359 forks source link

Clarifying the 'Querying LDAP' section in the README.md #186

Closed qrtalaci closed 9 years ago

qrtalaci commented 9 years ago

I have successfully configured Rails 4.2 and one ActiveDirectory based LDAP repository with this great software, thank you!

My authentication is :username based, so somehow I need to get the email address from the LDAP during the user creation. The :before_save callback of the model have not been called as it was suggested, so after I checked the source code I can see this ldap_before_save method invocation where the resource.save! called. I have defined the method and everything is OK now, the successfully authenticated users are created in the user table.