diff options
author | Volker Lendecke <vlendec@samba.org> | 2004-01-15 17:19:20 +0000 |
---|---|---|
committer | Volker Lendecke <vlendec@samba.org> | 2004-01-15 17:19:20 +0000 |
commit | a758fd958c808211fa3fa4556fc81fefcf876298 (patch) | |
tree | a5e8835e41949db91e62006dffb33829ffdb3077 /source3/smbd/sesssetup.c | |
parent | feebffb12f04580bbed0377f3171abf188d2e519 (diff) | |
download | samba-a758fd958c808211fa3fa4556fc81fefcf876298.tar.gz samba-a758fd958c808211fa3fa4556fc81fefcf876298.tar.bz2 samba-a758fd958c808211fa3fa4556fc81fefcf876298.zip |
reply_spnego_kerberos did not set the domain of the user handed to
register_vuid correctly. We ended up with the local netbios name in
substitutions for %D later.
Volker
P.S: Tridge, I can *really* see why you want to get rid of global variables
:-)
(This used to be commit 05bfaa858f8253b02fe0f78f97fb665e6847585d)
Diffstat (limited to 'source3/smbd/sesssetup.c')
-rw-r--r-- | source3/smbd/sesssetup.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/source3/smbd/sesssetup.c b/source3/smbd/sesssetup.c index 80be9da53b..9405c065e1 100644 --- a/source3/smbd/sesssetup.c +++ b/source3/smbd/sesssetup.c @@ -262,6 +262,13 @@ static int reply_spnego_kerberos(connection_struct *conn, return ERROR_NT(ret); } + /* make_server_info_pw does not set the domain. Without this we end up + * with the local netbios name in substitutions for %D. */ + + if (server_info->sam_account != NULL) { + pdb_set_domain(server_info->sam_account, domain, PDB_SET); + } + /* register_vuid keeps the server info */ sess_vuid = register_vuid(server_info, session_key, nullblob, client); |