richardun / active_directory

Native Ruby Access to Microsoft Active Directory
http://rubyforge.org/projects/activedirectory
12 stars 8 forks source link

ActiveDirectory::User.member_of? fails if the wrong server is selected #4

Open cthielen opened 12 years ago

cthielen commented 12 years ago

(Note: This may be the intended behavior but I had no indication this was occurring and had to do some head scratching to figure it out.)

We use two AD servers, one with users and the other with groups. If I fail to re-call ActiveDirectory::Base.setup for the group server, User.member_of? returns false even if the answer is true.

cthielen commented 12 years ago

https://gist.github.com/2431122