Example: Modifying entries
#!/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->setValue(“mailhost”)=[$host];
$c->update($entry);
$entry = $c->nextEntry();
}
$c->close() if $c;
Previous slide
Next slide
Back to first slide
View graphic version