Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: LDAP attribute modifciation failed

by Corion (Patriarch)
on Aug 29, 2012 at 07:30 UTC ( [id://990397]=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://990397]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (7)
As of 2024-04-16 12:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found