From: Ian Macdonald Date: 2005-03-12T05:03:16+09:00 Subject: Re: ruby-ldap rebinding ? On Fri 11 Mar 2005 at 20:38:31 +0900, Dick Davies wrote: > * Ian Macdonald [0345 06:45]: > > > Conn#unbind doesn't just unbind from the server; it also destroys the > > connection object when it calls ldap_unbind(). > > > > From ldap_unbind(3): > > > > UNBINDING > > The ldap_unbind() call is used to unbind from the directory, > > Ok thanks - I've used Perl::LDAP in the past which lets you rebind and > existing connection. > > Can I do that with ruby-ldap, or do I need a new connection every time > I check a username/password pair? Yes, I'm afraid you need a new connection to bind as a different user. On the other hand, is you only want to check the validity of a username and password combination, you should be able to pull that information from the directory as a user with the privileges required to view passwords. Ian -- Ian Macdonald | All this wheeling and dealing around, why, System Administrator | it isn't for money, it's for fun. Money's ian@caliban.org | just the way we keep score. -- Henry http://www.caliban.org | Tyroon |