Hi all..
I think this is the right place to ask my prblmm..
I am facing problem in password changing of user.
The user has to pass the old password and new paswd.
Since I have enabled the pwdSafeModify in LDAP, my LDAP wil not allow to change without the old password.
But php ldap_mod_replace and modify functions specify only new passwords.
So anybody please tell me how can I pass both old and new passwords to LDAP..

Thanks in advance

    I think we cant do that in php..
    so I changed my password policy settings.
    and modifying the passowrd without the old password.

    Thanks

      6 days later
      9 days later

      Thanks for the reply rakuci.

      I saw the page u specified but there also oldpassword is used to bind, not with the ldap_mod_replace.

      My requirement is like ldap_mod_replace($userdn,$oldpwd,$newpwd).

      In C# we can change the password by delete&add method and DirectoryServices library gives a function to specify the old and new pwd.

      I thought I wil get the same in PHP.

      Now I changed my directory structure so that I can change the pwd without old pwd.

      Thanks again๐Ÿ™‚

        Write a Reply...