devise_ldap_authenticatable icon indicating copy to clipboard operation
devise_ldap_authenticatable copied to clipboard

get_ldap_param return multiple attributes

Open chevinbrown opened this issue 8 years ago • 1 comments

I'm trying to monkey patch the LdapConnect class to return multiple attributes, given the param is an array, but not making headway. I've looked over issue 69, and this tutorial...but not making headway.

My overall goal is to extend this library to do some easy LDAP querying (search by name, mail, cn) and return an array of attributes for an auto-suggest field (outside the devise auth scope)...

Any advice or guidance?

chevinbrown avatar Sep 07 '16 13:09 chevinbrown

I realize that I am about to give you a non ruby idea, but here is what I had good luck with.

https://www.exchangecore.com/blog/how-use-ldap-active-directory-authentication-php/

I just dropped this on my server and tweaked it for my server and run it. Enter my username and password and get a ton of info about my account.

I was setting up LDAP login at my location, and this tool helped alot.

I hope my answer doesn't discourage others from answering.

dgleba avatar Sep 07 '16 15:09 dgleba