in reply to LDAP attribute modifciation failed

The Net::LDAP documentation shows the following approach for error checking. Why are you not using it?

$mesg = $ldap->search( # perform a search base => "c=US", filter => "(&(sn=Barr) (o=Texas Instruments))" ); $mesg->code && die $mesg->error;

Replies are listed 'Best First'.
Re^2: LDAP attribute modifciation failed
by anakin30 (Acolyte) on Aug 29, 2012 at 07:35 UTC

    Not sure how to use it, and where to use it.

    I read the reference still not understand much

      If you don't know how and where to use that snippet, how did you come up with your original program? Maybe it's now time to learn to program, and also time to learn about LDAP?

      The code snippet I quoted is very, very similar to a part of the program you already posted. I recommend you learn to recognize similarities, and also recognize differences, and learn to modify code according to similarity and difference.

        thanks anyway, i already figure out the problem and now my script is running fine.

        i managed to modify the attribute now on LDAP directory

        Thanks for your supportive words