On Wed, January 9, 2008 7:30 am, Sweeny, Jonny wrote: > unbind is sufficient; there is no 'disconnect', as far as I know. See: > http://search.cpan.org/~gbarr/perl-ldap-0.34/lib/Net/LDAP.pod
Yes there is, See that very same file http://search.cpan.org/~gbarr/perl-ldap-0.34/lib/Net/LDAP.pod#disconnect It was added around version 0.28 > $ldap->disconnect(); > > I get the error Can't locate object method "disconnect" via package > "Net::LDAP" > > How should I use disconnect? Exactly as you show. > What is the difference between an unbind and disconnect? Unbind seems to > work just fine. I am just curious. unbind leaves your client connected to the server so you could bind() again as a different user. ->disconnect will close the socket to the server. Graham.