Example: Adding an entry
#setup global parameters, using Getopt
$ent = Mozilla::LDAP::Conn::newEntry();
$ent->setDN(“uid=leif,dc=ogre,dc=com”);
$ent->{objectclass} = [ “top”, “person” ];
$ent->addValue(“cn”, “Leif Hedstrom”);
$ent->addValue(“sn”, “Hedstrom”);
$c = new Mozilla::LDAP::Conn(\%ld);