Young, Darren a écrit :
> Is there any way to check to see if a Net::LDAP object is
> connected/bound to a server?
>
> As in:
>
> $ldap = Net::LDAP->new($server);
> $mesg = $ldap->bind($stuff);
>
> if ( $ldap->is_connected($possibly_some_server) ) {
> print("Connected\n");
> }
>
> if ( $mesg->is_bound($possibly_with_a_dn) ) {
> Print("Bound\n");
> }
>
Hi,
maybe you can use the whoami extended operation to check the user bounded:
http://search.cpan.org/~gbarr/perl-ldap-0.36/lib/Net/LDAP/Extension/WhoAmI.pm
--
Clément OUDOT
Architecte Open Source
Responsable de l'offre annuaires, gestion et fédération des identités
----------------------------------- . --------------------------------
| LINAGORA Lyon | Groupe LINAGORA |
| 41, quai Fulchiron | 27, rue de Berri |
| 69005 LYON | 75008 PARIS |
| Telephone : +33 (0)8 10 69 99 93 | Telephone : +33 (0)1 58 18 68 28|
| Fax : +33 (0)4 72 77 51 93 | Fax : +33 (0)1 58 18 68 29 |
| http://lyon.linagora.com | http://www.linagora.com |
----------------------------------- . --------------------------------
http://www.linagora.org - http://www.federid.org
Le Groupe LINAGORA recrute : http://job.linagora.com