Hi all, problem as follows... (im not subscribed so could you reply directly to me... thanks)

i create an LDAP:Entry object as follows

$list{'entry'} = {
'objectClass' => ['top' ,'mjDistributionList'],
'cn' => ["AUT"],
'mj_admin_passwd' => ["password"],
'mj_moderate' => ['TRUE'],
'owner' => [$list_owner],
'description' => ["AUT mailing list"],
'mj_approve_passwd' => ["aut.approve"],
'mj_submit_policy' => ["restricted"],
'mj_subscribe_policy' => ["closed"],
'mj_restrict_post' => [EMAIL PROTECTED],
'mj_DLMembers' => []
                };


I populate mj_DLMembers

then execute

$ret = $ldap->add(dn=>$dn,attrs => [EMAIL PROTECTED]'entry'}]);
if ($ret != LDAP_SUCCESS){
  $ret->code && warn "failed to add entry: ", $ret->error ;
} else {
  print "Added $rdn successfully\n";
};




I continually get the follwoing output

failed to add entry: Object class violation at ./e2.pl line 83.
 line 83 is the code && warn line
$ret->code && warn "f....

any clues? have i specified the attributes for the entry badly? i know our directory structure will be different to yours but have I covered the basics of Net::ldap?
I have confirmed that all our other working mailing lists have only 'top' ,'mjDistributionList' as their objectClass entries.


id really appreciate some giudance here.
Ive read all the docs on the web and still dont understand what stupid thing im doing wrong here


ronan

Reply via email to