Hello Folks,
We are trying to add automount maps for home in auto_home:
$ldap_auto = new Mozilla::LDAP::Entry;
$ldapauto->setDN("automountKey=$uid,automountMapName=auto_home,$basedn");
$ldapgrp->addValue('objectClass','automount');
$ldapgrp->addValue('objectClass','top');
$ldapauto->addValue('automountKey',$uid);
$ldapauto->addValue('automountInformation',"homedhost:/homed/".$uid);
## Adding this entry
$conn->add($ldapauto);
die "Unable to add entry: ". $conn->getErrorString()."\n" if
$conn->getErrorCode();
Have defined $basedn,$uid correctly !, I still get an object class
violation, am I missing something here ? Any help would be appreciated.
e.g. $uid= "aly.dharshi";
$basedn = "dc=example,dc=com";
Cheers,
Aly.
--
Aly S.P Dharshi
[EMAIL PROTECTED]
Student System Administrator/Network Analyst LDAP Project
Department of Computer Science and Mathematics
University of Lethbridge
"A good speech is like a good dress
that's short enough to be interesting
and long enough to cover the subject"
