The Samba-Bugzilla – Bug 6628
"smbpasswd -a" uses algorithmic rid base with "passdb backend = tdbsam"
Last modified: 2009-08-12 07:03:04 UTC
With current samba 3.2, smbpasswd -a does not use the tdbsam method tdbsam_new_rid() for allocating a new rid for the user to be created but
the algorighmic rid calculation instead. It should use the tdbsam method which (in 3.2) looks into the winbindd idmap tdb for the RID_COUNTER.
It seems that the tdb passdb methods are not propoerly investigated.
pdbedit on the other hand, behaves correctly, as does the server.
smbpasswd also does not complain (as it should) when "passdb backend = tdb" is used together with "algorithmic rid base" in smb.conf.
I consider this bug a blocker for the next 3.2 release.
Created attachment 4544 [details]
Fix for 3.2
Just when I had tracked the bug down,
I noticed that Simo had already fixed this for 3-3 in July 2008. :-}
Attached find Simo's backported original patch with an adapted
commit message headline.
Metze, could you review this, please?
Cheers - Michael
Comment on attachment 4544 [details]
Fix for 3.2
Will be included in 3.2.14.
Closing out bug report.