From: Chris R. <Chr...@me...> - 2000-06-02 12:21:36
|
On Fri, 02 Jun 2000 14:05:57 +0200, Hansen Erik wrote: > first...thanks for your help Graham. > > But now there is another problem: > > i get the following error: > error 32, LDAP_NO_SUCH_OBJECT, The server cannot find an object specified in > the request > > and my code looks like this: > > $result = $ldap->add( > dn => 'cn=xyz,o=debis Systemhaus Darmstadt', > attr => [ > 'objectclass' => ['top','person'], > 'cn' => 'xyz', > 'sn' => 'xyz' > ] > ); > > so, why do I get the message no such object? In don`t understand...sure it > does not exist, that's why I add it for? Or which object is meant? You will get this if the parent entry doesn't exist. LDAP sets the matchedDN in the result (accessible via $result->dn in Net::LDAP) which will contain the DN of the closest parent entry the directory could find, depending on access controls. If the parent entry doesn't exist, you will have to create it first. > (perhaps this is interesting: my Ldap-Directory is completely emtpy, this is > the first entry i want to add) > > thank for your help > Erik Hansen > > Cheers, Chris |