From 61823fb8852cb8d66c341ecd54e7fb96abc4363a Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Fri, 28 May 2010 13:22:41 -0400 Subject: s3:auth set the resolved user sid in the fake sam account Signed-off-by: Andrew Bartlett --- source3/auth/auth_util.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'source3/auth') diff --git a/source3/auth/auth_util.c b/source3/auth/auth_util.c index f937a9bb60..c1b2d55993 100644 --- a/source3/auth/auth_util.c +++ b/source3/auth/auth_util.c @@ -634,6 +634,9 @@ NTSTATUS make_server_info_pw(struct auth_serversupplied_info **server_info, * using unix_username */ pdb_set_username(sampass, unix_username, PDB_SET); + /* set the user sid to be the calculated u_sid */ + pdb_set_user_sid(sampass, &u_sid, PDB_SET); + result = make_server_info(NULL); if (result == NULL) { TALLOC_FREE(sampass); -- cgit