On Oct 16, 2008, at 6:46 PM, Jason Vas Dias wrote:
Please excuse me if I am misunderstanding something (I'm an LDAP newbie) -
but is this a Net::LDAP bug:

Supplying an extra attribute to the "dn" of a Net::LDAP::add request,
as with:

$ldap->add( 'cn='.$myUserObject{cn}.',uid='.${myUserObject} {uid}.',o=att.com', $myUserObject) # FAILS

results in an error response with an error code of 32 and an empty error message - while removing the "cn=" portion of the DN allows the add to succeed:

What code were you using to get the error message ? In you example you are not capturing the response.

It does look like your server is returning an empty message, but if you use


  $mesg = $ldap->add( ....

  warn $mesg->error if $mesg->code;

you should see

  "No such attribute"

Graham.

Reply via email to