summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimo Sorce <idra@samba.org>2008-07-12 22:44:15 -0400
committerKarolin Seeger <kseeger@samba.org>2009-08-12 13:54:17 +0200
commit0a1b125ae4260de3cee6a92b19e3977d922a8c11 (patch)
treeedc7feb21ce53724046abe0262b84598a4fd03ac
parent9bcfbccad5d5983cfa42f31f6394f03c4678e79a (diff)
downloadsamba-0a1b125ae4260de3cee6a92b19e3977d922a8c11.tar.gz
samba-0a1b125ae4260de3cee6a92b19e3977d922a8c11.tar.xz
samba-0a1b125ae4260de3cee6a92b19e3977d922a8c11.zip
Fix bug #6628 - "smbpassdb -a" using rid algorithm with tdbsam passdb
samu_set_unix() does not use the rid allocator, but forces to use the algoritmic allocator unconditionally, this is wrong and inconsistent. Use samu_alloc_rid_unix() instead. (If we create a new user we should do it in a way consistent with all other commands like pdbedit -a and net rpc user add.) (cherry picked from commit e1d4db8f55b25c7e9c408cb334fb89ccfd4c6565) Signed-off-by: Michael Adam <obnox@samba.org> This fixes bug #6628.
-rw-r--r--source/passdb/passdb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/passdb/passdb.c b/source/passdb/passdb.c
index e3a3d3ca9e5..125689caad3 100644
--- a/source/passdb/passdb.c
+++ b/source/passdb/passdb.c
@@ -675,7 +675,7 @@ NTSTATUS local_password_change(const char *user_name,
return NT_STATUS_NO_MEMORY;
}
- result = samu_set_unix( sam_pass, pwd );
+ result = samu_alloc_rid_unix( sam_pass, pwd );
DEBUGLEVEL = tmp_debug;