cschiewek / devise_ldap_authenticatable

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

get_ldap_param return multiple attributes #228

Open chevinbrown opened 7 years ago

chevinbrown commented 7 years ago

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?

dgleba commented 7 years ago

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.