From: Graham B. <gb...@po...> - 2000-06-02 10:12:39
|
On Fri, Jun 02, 2000 at 11:28:47AM +0200, Hansen Erik wrote: > i try to add an entry to my ldap-directory. the ldap->add command gives back > an error but dont say which one. > > > $result = $ldap->add( > dn => 'uid=xyz,o=debis Systemhaus Darmstadt', > attr => [ 'cn' => 'xyz', > 'sn' => 'xyz', > 'objectclass' => ['top','person'] > ] > ); adding here use Net::LDAP::Util qw(ldap_error_name); warn ldap_error_name($result->code) if $result->code; would have shown LDAP_OBJECT_CLASS_VIOLATION or using ldap_error_text you would have got The request specifies a change to an existing entry or the addition of a new entry that does not comply with the servers schema Graham. |