Perl Net::LDAP Modify A Record
Posted on 2005-03-04
I've Been Using Perl with "Net::LDAP"
I've been extracting information from a few thousand records, and can "display" the results. (I have been for awhile)
When I wish to MODIFY a record, seems that all the "examples" on the Internet are extremely complicated.
I am able to bind, once I bind, shouldn't there be a 2-liner that enables me to make a modification to the record, such as so:
$dn is defined before this code.
push @whatToChange, 'sn', "NewValue";
my $result = $ldap->modify($dn, changes => [ @whatToChange]);
Shouldn't those lines change the value (In Active Directory) of 'sn' to "NewValue" ??