ldap integration in ruby -


I am working to integrate Ruby with ldap. And it's working fine.

test.com has been created in ldap and I can tie it successfully.

Then I have a new organization unit company . Under the company, some users

now I want to force with user (authentication) under the company organizational unit .

I can use the user to Filter.eq

but I want to bind users. Recommend that you are using the "activeldap" gem, which you can do (in your model).

  ldap_mapping: dn_attribute = & Gt; 'Cn' ,: prefix = & gt; 'Ou = company' ,: class = & gt; ['InetOrgPerson']  

So now you can instantiate users by "cn" and then you can authenticate with the password fields you set.


Comments