[prev in list] [next in list] [prev in thread] [next in thread] 

List:       perl-ldap-dev
Subject:    RE: Can't locate object method "disconnect" via package "Net::LDAP"
From:       "Tyagi, Praveen (GE, Corporate, consultant)" <praveen.tyagi () ge ! com>
Date:       2008-01-10 16:27:30
Message-ID: A10B95388907BA4083E8E63677FD5D44CD3DB5 () STAMLVEM04 ! e2k ! ad ! ge ! com
[Download RAW message or body]

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:gbarr@pobox.com] 
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.



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic