Being logged in as a normal user located in a sub-Organizational Unit (not the ou=Users, but i.e. ou=IT,ou=Staff,ou=Users) in the LDAP-tree and try to change your password with the smbldap-passwd command it fails, because the smbldap-passwd command does not handle this case correctly. Changing the password as "root" for any user succeeds, because the code to locate the user in the tree is different for root, but normal users can't change their password on their own. Reproducible: Always Steps to Reproduce: Search path for users i.e. ou=Users,dc=home,dc=at create sub-OU, i.e. ou=IT,ou=Staff,ou=Users,dc=home,dc=at create a user there i.e. cn=test,ou=IT,ou=Staff,ou=Users,dc=home,dc=at using smbldap-useradd -o "ou=IT,ou=Staff" option set a password for this user log in as this user call smbldap-passwd Actual Results: wonder why it won't accept your correct password Expected Results: should accept your current password and ask for the new one
Created attachment 166454 [details, diff] Patch for an old smbldap-tools version, have forgotten which version it was (maybe 0.9.1?)
Created attachment 166459 [details, diff] Unified patch for smbldap-tools-0.9.4-r1
As it seems that nothing has happened for more than three months: Will there be any solution/fix implemented in future versions?
(In reply to comment #3) > As it seems that nothing has happened for more than three months: > Will there be any solution/fix implemented in future versions? smbldap-tools-0.9.6 has been recently added to portage, please check if the issue still persists with this version
Problem persists. This could have been easily checked by reading the sources: line 122 contains get_user_dn($user), which is used for finding the user if called by root. line 108 just concats uid=$user with the preconfigured usersdn from the config file, which can't work with sub-ous. Tried to contact the author Mr. Tournier in November 2008, but received no answer since then. Saw in the recent ChangeLog a new mail address --> is there a new maintainer (who still doesn't know the bug, because nobody reported it to him)?
JoaoSoares stardol.com