diff options
author | Andrew Bartlett <abartlet@samba.org> | 2001-11-04 01:14:15 +0000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2001-11-04 01:14:15 +0000 |
commit | 5f5661d21717ee7eea27d4776180dd88635ad8d4 (patch) | |
tree | 89115a011252804b2edc82883cd45b446ee587f8 /source3/rpc_server/srv_pipe.c | |
parent | 971181179b8f5c1ffebcb3bb43a137677aa4124a (diff) | |
download | samba-5f5661d21717ee7eea27d4776180dd88635ad8d4.tar.gz samba-5f5661d21717ee7eea27d4776180dd88635ad8d4.tar.bz2 samba-5f5661d21717ee7eea27d4776180dd88635ad8d4.zip |
Fix up authenticated pipes in line with vuser changes. This ensures that global
groups obtained via a domain logon are respected in the attached NT_USER_TOKEN.
This functionality is only available in HEAD, becosue of the way authenticaion
has been abstracted.
Both vuid logins and authenticated pipes need to use the same code for this in
future.
Can sombody with the correct facilties check this please?\
Thanks,
Andrew Bartlett
(This used to be commit caae69fcd096f20aa4c6879b95ec2c275afea041)
Diffstat (limited to 'source3/rpc_server/srv_pipe.c')
-rw-r--r-- | source3/rpc_server/srv_pipe.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/source3/rpc_server/srv_pipe.c b/source3/rpc_server/srv_pipe.c index dfe03c2eb3..a718516baa 100644 --- a/source3/rpc_server/srv_pipe.c +++ b/source3/rpc_server/srv_pipe.c @@ -444,10 +444,13 @@ failed authentication on named pipe %s.\n", domain, pipe_user_name, wks, p->name initialise_groups(pipe_user_name, p->pipe_user.uid, p->pipe_user.gid); get_current_groups( &p->pipe_user.ngroups, &p->pipe_user.groups); + if (server_info->ptok) + add_supplementary_nt_login_groups(&p->pipe_user.ngroups, &p->pipe_user.groups, &server_info->ptok); + /* Create an NT_USER_TOKEN struct for this user. */ p->pipe_user.nt_user_token = create_nt_token(p->pipe_user.uid,p->pipe_user.gid, p->pipe_user.ngroups, p->pipe_user.groups, - guest_user, NULL); + guest_user, server_info->ptok); p->ntlmssp_auth_validated = True; |