in reply to Bind to LDAP without password
#!/usr/bin/perl use strict; use warnings; use Net::LDAP; use Authen::SASL; my $adhost = 'http://localhost'; my $ldap_base = 'dc=brbdc1,dc=net'; my $sasl = Authen::SASL->new( mechanism => 'GSSAPI' ); my $ldap; eval { $ldap = Net::LDAP->new($adhost, onerror => 'die') or die "Cannot connect to LDAP host '$adhost': '$@'"; $ldap->bind(sasl => $sasl); }; print "\tLDAP bind() succeeded, working in authenticated state\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Bind to LDAP without password
by Sue D. Nymme (Monk) on Jul 30, 2010 at 18:47 UTC | |
by Khen1950fx (Canon) on Jul 31, 2010 at 01:38 UTC | |
by Sue D. Nymme (Monk) on Aug 06, 2010 at 21:42 UTC |