The Samba-Bugzilla – Bug 6313
smbpasswd fails to set password when using ldap/editposix
Last modified: 2009-05-06 05:16:40 UTC
net sam provision correctly populates LDAP
After that i try to set the password for Administrator:
echo -e "password\npassword\n" | /opt/samba/samba-3.4.0pre1/bin/smbpasswd -s Administrator
Log level 10: http://dmarkey.com/~dmarkey/samba3.4pre1/smbpasswd/log.txt
Also, I cant add users via smbpasswd with editposix=yes.
/opt/samba/samba-3.4.0pre1/bin/smbpasswd -a david
Cannot locate Unix account for 'david'!
Of course this makes sense because samba has to create the posix entry in LDAP, smbpasswd should see that editposix=yes and go ahead and create the user and assume the unix user should exist afterwards.
It actually does change the sambaNTPassword of Administrator. It just says its aborted, which it shouldnt
I'm having problems doing a net user add now so i'll raise a new bug for that.
(In reply to comment #1)
> It actually does change the sambaNTPassword of Administrator. It just says its
> aborted, which it shouldnt
The abort is fixed with the following patch. This is a a 3.4/master only issue, *not* a problem in 3.3.
Created attachment 4121 [details]
Fix abort in ldapsam
This is the patch that has been pushed to master / v3-4-test in order to fix the invalid talloc_free().
Simo, looks ok ?
(In reply to comment #3)
> Created an attachment (id=4121) [details]
> Fix abort in ldapsam
> This is the patch that has been pushed to master / v3-4-test in order to fix
> the invalid talloc_free().
> Simo, looks ok ?
+1 looks fine
This fixes the problem.
Ok, this is fixed (once again: the failure is 3.4 only).
I created 6333 as a clone of this one in order to track the enhancement request.