From: Al L. <al....@fn...> - 2001-02-19 15:42:49
|
I do this with the following; $mesg = $ldap->modify ("$userDn", replace => { 'userpassword' => $ePassword}); I bind with the DN of someone who is allowed write access to the directory not the user as the page this is from allows our helpdesk to change our IMAP user passwords. If anyone wants the complete code I'll make it available. al -- Al Lilianstrom lil...@fn... Graham Barr wrote: > > ----- Forwarded message from nicolas figaro <nf...@ic...> ----- > > Date: Mon, 19 Feb 2001 15:53:50 +0100 > To: gb...@po... > From: nicolas figaro <nf...@ic...> > Subject: perl ldap question > X-Mailer: Mozilla 4.76 [en] (WinNT; U) > > hello graham and many thanks for the perl ldap module. > > here is my question, > > I'd like to change the password on a netscape directory server > ldapsearch works perfectly, but I can't modify the userPassword > attribute. > > the goal is to build an html page to change the password > user name > old password > new password > confirm new password > > the code looks like > > ldapconnect > bind > search uid=user name > bind DN=result of search > ldapmodify (replace "userpassword=new password") > > the ldapmodify doesn't modify anything. > > any idea ??? > > nicolas figaro > informatique cdc > 56 rue de lille > 75007 paris > > ----- End forwarded message ----- |