Univention Bugzilla – Bug 36755
pdbedit (password history) broken in samba4 rc2
Last modified: 2014-11-26 07:09:23 CET
UCS 4.0 univention-samba https://groups.google.com/forum/#!topic/mailing.unix.samba/bwvhW6hnvrs If i configure the passwordHistory -> udm settings/sambadomain modify \ --dn sambaDomainName=FB,cn=samba,dc=fb,dc=test \ --set passwordHistory=3 or -> pdbedit -P "password history" -C 3 samba no longer finds user objects. -> pdbedit -Lv fb1 pdb_set_pw_history: data_blob_talloc() failed! Username not found! -> smbclient //master/fb1 -U fb1%univention Domain=[FB] OS=[Windows 6.1] Server=[Samba 4.2.0rc2-Debian] tree connect failed: NT_STATUS_ACCESS_DENIED The only way to "repair" this, is to remove the password history -> pdbedit -P "password history" -C 0 Setting the password history via UDM (to 0) does not help!
As Felix pointed out there has been some change recently in that fuction: https://lists.samba.org/archive/samba-technical/2014-September/102319.html Since data_blob_talloc doesn't return a pointer but a DATA_BLOB value, it's not a good idea to free the saved pointer.
pdbedit works again after reverting the patch. Changelog not required. I filed an upstream bug report for this, see URL.
OK
UCS 4.0-0 has been released: http://docs.univention.de/release-notes-4.0-0-en.html http://docs.univention.de/release-notes-4.0-0-de.html If this error occurs again, please use "Clone This Bug".