The Samba-Bugzilla – Attachment 4544 Details for
Bug 6628
"smbpasswd -a" uses algorithmic rid base with "passdb backend = tdbsam"
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Fix for 3.2
0001-Fix-bug-6628-smbpassdb-a-using-rid-algorithm-w.patch (text/plain), 1.11 KB, created by
Michael Adam
on 2009-08-12 06:41:01 UTC
(
hide
)
Description:
Fix for 3.2
Filename:
MIME Type:
Creator:
Michael Adam
Created:
2009-08-12 06:41:01 UTC
Size:
1.11 KB
patch
obsolete
>From 8e842ab46226f5ce833ac540854e541052747ea8 Mon Sep 17 00:00:00 2001 >From: Simo Sorce <idra@samba.org> >Date: Sat, 12 Jul 2008 22:44:15 -0400 >Subject: [PATCH] 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 an 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> >--- > source/passdb/passdb.c | 2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > >diff --git a/source/passdb/passdb.c b/source/passdb/passdb.c >index e3a3d3c..125689c 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; > >-- >1.6.0.4 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Flags:
metze
:
review+
Actions:
View
Attachments on
bug 6628
: 4544