PerLDAP: Searching for an entry
#!/usr/bin/perl5
use Mozilla::LDAP::Conn;
#setup global parameters, using Getopt
# …
$c = new Mozilla::LDAP::Conn(\%ld);
$entry = $c->search($base, $sc, $srch);
while ($entry) {
$entry->printLDIF();
$entry = $c->nextEntry();
}
$c->close();
Previous slide
Next slide
Back to first slide
View graphic version