in reply to Change your LDAP password

You're writing in the code header:

<SNIP> # Web page to Change Samba LDAP Passwords # <SNIP>

Question: does Net::LDAP::Extension::SetPassword really change the Samba NT and LM password-equivalent hashes (the sambaLMPassword and sambaNTPassword attributes)? My impression is that it only changes the LDAP entry password via EXOP on supporting servers (OpenLDAP is known to work).

I'm writing this because I wrote a similar tool a while ago, and I remember I had to set the hashes separately with the output from the "mkntpwd" utility.

Replies are listed 'Best First'.
Re^2: Change your LDAP password
by -tea (Initiate) on Sep 15, 2005 at 02:58 UTC
    Thanks for sharing this, I use this to change LDAP password and it works perfect. Question: not sure what does $admin hold? my $admin = param('admin');

      That was for a checkbox to say whether the user was the admin or not. It should be removed.

      Updating code now.

      Walking the road to enlightenment... I found a penguin and a camel on the way.....
      Fancy a yourname@perl.me.uk? Just ask!!!
Re^2: Change your LDAP password
by ghenry (Vicar) on Sep 01, 2005 at 23:11 UTC

    Good point. I forgot about those parts.

    I'll need to add that. Cheers.

    Walking the road to enlightenment... I found a penguin and a camel on the way.....
    Fancy a yourname@perl.me.uk? Just ask!!!