From: Billy J. <bid...@ya...> - 2001-02-05 07:34:24
|
Hi, I've seen the subject above up for discussion but aplogize if the conclusion escaped me, so here it is again. I am trying to write a CGI for our users to change their LDAP password via web, and a piece of the code follows: use Mozilla::LDAP::Conn; require "ldap-lib.pl"; ... $ld=&LdapOpen($ldaphost,$ldapport,$dnmanager,$dnpassword); $Entry= $ld->search($basedn,'sub',$user,0); while ($Entry) { $Entry->{userpassword}[0]= $lpass; $ld->update($Entry); $my_dn= $Entry->{cn}[0]; print h2("Password Changed!"); print p("Your LDAP password is changed!"); print p("Use you browser's BACK button for other menus"); $Entry= $ld->nextEntry(); } Tried to bind both as the user itself and the dnmanager (above), but failed. My slapd logs does show the bind and search ops, but not the update/mod. Any pointers/suggestions will be greatly appreciated. Cheers, Billy |