Example: Simple searches
#!/usr/bin/perl5
use Mozilla::LDAP::Conn;
#setup global parameters, using Getopt
$c = new Mozilla::LDAP::Conn(\%ld);
$entry = $c->search($base, “ONE”, $srch);
while ($entry) {
$entry->printLDIF();
$entry = $c->nextEntry();
}
$c->close() if $c;
Previous slide
Next slide
Back to first slide
View graphic version