From: Dick Davies Date: 2005-03-12T19:34:32+09:00 Subject: Re: ruby-ldap rebinding ? * Ian Macdonald [0351 09:51]: > On Sat 12 Mar 2005 at 08:16:12 +0900, Ian Macdonald wrote: > > > Perhaps Net::LDAP remembers the details of the connection when it was > > opened and silently performs another open when you perform a bind after > > an unbind, but at some point, you're still opening a new connection. > > It's just a question of whether it's implicit or explicit. > > > > Ruby/LDAP could be made to do this, too, I think. The details passed to > > LDAP::Conn.new could be put into instance variables. If the connection > > is dead at bind time, these could be read and used to transparently > > reestablish the connection before conducting the bind. > > > > I'll look at how hard this would be to ship up in practice. > > This feature is now in Ruby/LDAP's CVS and will be released in 0.9.1. > > This allows you to perform an LDAP::Conn#unbind, followed by either an > LDAP::Conn#bind or an LDAP::Conn#simple_bind to reconnect to the server, > using different credentials if you wish. Brilliant, thanks Ian! -- 'Ugh, it's like there's a party in my mouth and everyone's throwing up.' -- Fry Rasputin :: Jack of All Trades - Master of Nuns