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.