Billy Joedono wrote:

>     $ld=&LdapOpen($ldaphost,$ldapport,$dnmanager,$dnpassword);
>      $Entry= $ld->search($basedn,'sub',$user,0);
>      while ($Entry) {
>        $Entry->{userpassword}[0]= $ldapass;
>        $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();
>      }

What version of PerLDAP are you using? Have you tried using Entry::setValues()
instead of setting it "manually"? Both ways should work, but maybe there's a
bug somewhere in PerLDAP... :(

-- Leif


Reply via email to