Thank you Graham. I guess I will need to upgrade to a newer version.
Thanks, Praveen DC:*222-6758 Desk:1-518-612-6758 Cell:1-203-984-1871 Home:1-518-280-6342 -----Original Message----- From: Graham Barr [mailto:[EMAIL PROTECTED] Sent: Thursday, January 10, 2008 9:22 AM To: Sweeny, Jonny Cc: 'perl-ldap@perl.org'; Tyagi, Praveen (GE, Corporate, consultant) Subject: RE: Can't locate object method "disconnect" via package "Net::LDAP" 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.