From: Torsten E. <tor...@os...> - 2002-02-04 14:52:29
|
>> >>I can't add DN over perl (Net::LDAP) >>--- >> $mesg = $ldap->add( >> dn => "uid=" . $uid .",". $wohin, >> attr => [ >> 'objectclass' => uri_unescape($query->param('objectclass')), >>......; >> >> >> > > What might be happening is that your > uri_unescape($query->param('objectclass')) call is returning a list of > objectclasses, which is turning your call into: > > attr => [ > 'objectclass' => 'top', > 'organizationalPerson' => 'inetOrgPerson', > 'mailrecipient' => 'nsmessagingserveruser', > ... > ] > > Probably not what you want! > > Surround the call to uri_unescape with [ ]: > > attr => [ > 'objectclass' => [ uri_unescape(...) ], > ... > ] > Thanks, the forgotten brackets are the solution! bye Torsten -- OSTSEE-ZEITUNG [http://www.ostsee-zeitung.de] Richard-Wagner-Straße 1a / 18055 Rostock Tel.: [0381] 365 108 / Fax: [0381] 365 584 |