chrisj0 has asked for the wisdom of the Perl Monks concerning the following question:
I get the error:my $ldap = Net::LDAP->new( "$ldap_svr" ) or die "$@"; my $search = $ldap->bind; $search = $ldap->search( base=> "$base", filter=>"mail=$name_email" ); my $max = $search->count; for ( my $index = 0; $index < $max ; $index++ ) { my $entry = $search->entry($index); my $dn = $entry->dn; my @attrs = $entry->attributes; foreach my $var (@attrs) { my $attr = $entry->get_value( $var, asref => 1 ); if ( defined($attr) ) { foreach my $value ( @$attr ) { print h2("$var: $value"),p; } } } } $search= $ldap->unbind;
TIA,
chrisj
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Net::LDAP issues...
by Old_Gray_Bear (Bishop) on May 11, 2004 at 00:00 UTC | |
by chrisj0 (Acolyte) on May 11, 2004 at 17:20 UTC | |
|
Re: Net::LDAP issues...
by sgifford (Prior) on May 10, 2004 at 23:38 UTC | |
by chrisj0 (Acolyte) on May 10, 2004 at 23:46 UTC | |
by sgifford (Prior) on May 10, 2004 at 23:58 UTC |