From: Glen Holcomb Date: 2007-04-20T01:36:06+09:00 Subject: Re: ruby scripting on microsoft active directory plus exchange ------=_Part_42335_24950750.1177000563048 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline On 4/19/07, Ball, Donald A Jr (Library) wrote: > > > I would recommend looking at Net::LDAP: gem install ruby-net-ldap > > > > I've been using it in Rails Applications to authenticate > > against AD, as well as check group memberships. > > I can do the former, but in my almost complete ignorance of LDAP and AD, > have been unable to accomplish the latter. How do you do it? > > - donald > > There is an attribute called memberof which has a list of all the groups the user account belongs to. You should be able to call memberof on your returned LDAP object and get an array with the groups in it. -- "Hey brother christian with your high and mighty errand, Your actions speak so loud, I can't hear a word you're saying." -Greg Graffin (Bad Religion) ------=_Part_42335_24950750.1177000563048--