Topic: Active Directory Username Lookup

I have a few RoR apps that provide approval routing within my organization.  For example, I create a request for training.  When I hit submit, the request goes to my supervisor's queue for approval.  In my request, I have to enter my supervisor's AD username correctly so it gets to him.  This can be a problem for non-standard AD account names or just simple typos.

I'm thinking I can get a db dump from AD of all usernames to populate a lookup table?  Or interface with LDAP directly to populate a select box?  I'm already using net/ldap to authenticate through Authlogic, so I think I can pull usernames, too.  But I don't know how or where to start.

I'm just not sure the best and easiest way to go.  Does anyone have advice?  Thanks.

Re: Active Directory Username Lookup

What about this gem?

https://github.com/filefrog/activedirectory

it has a find_all method in the base class. It's a bit old but may still work.

Re: Active Directory Username Lookup

Hmm, cool - I'll look into that.

Thanks!

downtroden1 wrote:

What about this gem?

https://github.com/filefrog/activedirectory

it has a find_all method in the base class. It's a bit old but may still work.