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.
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 thisldap_before_save
method invocation where theresource.save!
called. I have defined the method and everything is OK now, the successfully authenticated users are created in the user table.