anakin30 has asked for the wisdom of the Perl Monks concerning the following question:
Hi Perl Gurus, i have written the script below to modify attribute on LDAP Directory. But i cant make the changes
#!/usr/bin/perl use Net::LDAP; $ldap = new Net::LDAP('localhost') or die "$@"; $ldap->bind( dn => 'uid=xxx,ou=org,o=xxx.com', password => 'secret' ) || die $@; my $dn = "uid=atype,ou=org,o=com"; my $description = "banana"; $msg = $ldap->modify ( $dn, replace => { 'description' => $description } ) || warn "Failed to modify entry. $!"; print "msg is $msg\n"; $ldap->unbind;
i received the following error, when i run the perl script and the attribute not updated on LDAP Directory
msg is Net::LDAP::Modify=HASH(0x1bfe7a4)
Can you please let me know what is my mistake in here, or how to make sure the update take place on LDAP
Thank you in advanced.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: LDAP attribute modifciation failed
by Corion (Patriarch) on Aug 29, 2012 at 07:30 UTC | |
by anakin30 (Acolyte) on Aug 29, 2012 at 07:35 UTC | |
by Corion (Patriarch) on Aug 29, 2012 at 08:23 UTC | |
by anakin30 (Acolyte) on Aug 29, 2012 at 09:02 UTC |
Back to
Seekers of Perl Wisdom