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
-- ~Jonny Sweeny, GSEC, GCWN, GCIH, SSP-CNSA Incident Response Manager, Lead Security Analyst Office of the VP for Information Technology, Indiana University PGP key & S/MIME cert: https://itso.iu.edu/Jonny_Sweeny [EMAIL PROTECTED] p(812)855-4194 f(812)856-1011 -----Original Message----- From: Tyagi, Praveen (GE, Corporate, consultant) [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 08, 2008 23:42 To: perl-ldap@perl.org Subject: Can't locate object method "disconnect" via package "Net::LDAP" Importance: High Hello, I am trying to disconnect the ldap connection handle in a perl program. Here is the sequence that I am following: connect and bind unbind $ldap->disconnect(); I get the error Can't locate object method "disconnect" via package "Net::LDAP" How should I use disconnect? What is the difference between an unbind and disconnect? Unbind seems to work just fine. I am just curious. Thanks, Praveen