richardun / active_directory

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

Same credentials on subsequent connections? #10

Closed link82 closed 12 years ago

link82 commented 12 years ago

hello, I'm trying to use your gem to authenticate my application users through Active Directory server.

My approach is the following:

1) Connect to ldap server with a granted user 2) Searching for user by 'givenname' attribute 3) Trying to connect again to ldap server using user's givenname and password 4) if it connects, ok everything is ok

Anyway I discovered that it doesn't work because it does not close and open again the connection with the updated parameters when you change them.

Thanks in advance.

Davide

link82 commented 12 years ago

Sorry i did a mistake, i was passing the wrong config hash to ActiveDirectory::Base.setup()

:v