From: Jim H. <ha...@us...> - 2001-04-13 18:25:50
|
Cruz, The short answer to your question is to just check the code() values from the return. E.g., $refs = $ldap->modify ($dn, if ($refs->code ) { process the return - it didn't work The log answer is that at least on Novell eDirectory, the changing of passwords can be tricky. In version 8.3, I could bind with the user's old password, then do a modify like: $refs = $ldap->modify ($dn, delete => {userPassword => $pass0} , add => {userPassword => $pass1} ); replace didn't work. In version 8.5, I needed to bind with an admin dn and password then do separate deletes and adds. Ugly!! --Jim Harle On Fri, 13 Apr 2001, Cruz deWilde wrote: > Thanks for your quick and very helpful response, Tom! > > That is unquestionably the best way to do this. One last question, though -- > is there any way to get a return value from $ldap->modify (so I can tell the > user whether the password change was successful)? Thanks again -- I truly > appreciate your help. > > -Cruz deWilde |