From: Cruz d. <cru...@ya...> - 2001-04-13 21:00:16
|
Tom & Jim, Many thanks for all your assistance on this! With your help, I've got the change-password page working smoothly. Much appreciated!! -Cruz deWilde > -----Original Message----- > From: Tom Jordan [mailto:tj...@do...] > Sent: Friday, April 13, 2001 11:05 AM > To: Cruz deWilde > Cc: per...@li... > Subject: RE: Question about comparing perl variables to LDAP values... > > > Sure, > Just assign the return from #ldap->modify to something: > $mesg = $ldap->modify( dn => $dn, replace => $dataref); > You can then get the return code with: > $result = $msg->code(); > If $result is 0, things worked. If not, $result will hold the > LDAP error > code describing what happened. > > --Tom > > -----Original Message----- > From: Jim Harle [mailto:ha...@us...] > Sent: Friday, April 13, 2001 11:26 AM > To: Cruz deWilde > Cc: tj...@do...; per...@li... > Subject: RE: Question about comparing perl variables to LDAP values... > > 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 __________________________________________________ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/ |