diff options
author | Günther Deschner <gd@samba.org> | 2010-05-28 14:21:15 +0200 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2010-05-31 15:30:59 +0200 |
commit | db5730cac4d6e0b64913bce21147352344077e2b (patch) | |
tree | e70e3d5db4ac339e1b5721f872aea888934a6248 /source3/rpc_server | |
parent | 3f24f8d2c69be1db28cb1ffb866d45b520d9544d (diff) | |
download | samba-db5730cac4d6e0b64913bce21147352344077e2b.tar.gz samba-db5730cac4d6e0b64913bce21147352344077e2b.tar.bz2 samba-db5730cac4d6e0b64913bce21147352344077e2b.zip |
s3-samr: give the system user a free pass for _samr_QueryUserInfo{2} level 18.
Guenther
Diffstat (limited to 'source3/rpc_server')
-rw-r--r-- | source3/rpc_server/srv_samr_nt.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source3/rpc_server/srv_samr_nt.c b/source3/rpc_server/srv_samr_nt.c index 0b8e7a521c..5b8a79fd87 100644 --- a/source3/rpc_server/srv_samr_nt.c +++ b/source3/rpc_server/srv_samr_nt.c @@ -2769,6 +2769,10 @@ static NTSTATUS get_user_info_18(pipes_struct *p, ZERO_STRUCTP(r); + if (p->server_info->system) { + goto query; + } + if (p->auth.auth_type != PIPE_AUTH_TYPE_NTLMSSP || p->auth.auth_type != PIPE_AUTH_TYPE_SPNEGO_NTLMSSP) { return NT_STATUS_ACCESS_DENIED; } @@ -2777,6 +2781,7 @@ static NTSTATUS get_user_info_18(pipes_struct *p, return NT_STATUS_ACCESS_DENIED; } + query: /* * Do *NOT* do become_root()/unbecome_root() here ! JRA. */ |