Can't get LDAP::Message object with modify method

2008-09-26 Thread John W. Sopko Jr.
I have a perl script to change a users Active Directory password. The script works fine. I can bind to AD and change the users password running the script on linux over an encrypted TLS session to Windows AD. I can get valid return message objects from other methods but I cannot get a valid messa

Re: Can't get LDAP::Message object with modify method

2008-09-26 Thread Graham Barr
On Sep 26, 2008, at 8:11 AM, John W. Sopko Jr. wrote: Here is the section of code that changes the password: # the unicodePwd attribute is write only $mesg = $AD->modify($dn, replace => { "unicodePwd" => $adpw }); print "mesg->code = $mesg->code() \n"; That is not calling the method. print

Re: Can't get LDAP::Message object with modify method

2008-09-26 Thread John W. Sopko Jr.
Graham Barr wrote: On Sep 26, 2008, at 8:11 AM, John W. Sopko Jr. wrote: Here is the section of code that changes the password: # the unicodePwd attribute is write only $mesg = $AD->modify($dn, replace => { "unicodePwd" => $adpw }); print "mesg->code = $mesg->code() \n"; That is not calling