diff options
-rw-r--r-- | source3/auth/auth_util.c | 3 |
1 files changed, 3 insertions, 0 deletions
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); |