summaryrefslogtreecommitdiff
path: root/source3/rpc_server
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2013-08-06 11:10:04 +0200
committerGünther Deschner <gd@samba.org>2013-08-06 18:22:06 +0200
commit8b1a2144feddc12e818938f025d3ab62f3e3426b (patch)
tree79bfc35bd9b70fe88272814b3e1ead848fa83fa4 /source3/rpc_server
parent4520787080b84cd25034bb340513b15de6df1eb0 (diff)
downloadsamba-8b1a2144feddc12e818938f025d3ab62f3e3426b.tar.gz
samba-8b1a2144feddc12e818938f025d3ab62f3e3426b.tar.bz2
samba-8b1a2144feddc12e818938f025d3ab62f3e3426b.zip
s3-netlogon: Connecting with the system token should be sufficient.
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Günther Deschner <gd@samba.org> Autobuild-User(master): Günther Deschner <gd@samba.org> Autobuild-Date(master): Tue Aug 6 18:22:06 CEST 2013 on sn-devel-104
Diffstat (limited to 'source3/rpc_server')
-rw-r--r--source3/rpc_server/netlogon/srv_netlog_nt.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/source3/rpc_server/netlogon/srv_netlog_nt.c b/source3/rpc_server/netlogon/srv_netlog_nt.c
index 4f66dfe0de..53eff5fcb4 100644
--- a/source3/rpc_server/netlogon/srv_netlog_nt.c
+++ b/source3/rpc_server/netlogon/srv_netlog_nt.c
@@ -698,12 +698,10 @@ static NTSTATUS get_md4pw(struct samr_Password *md4pw, const char *mach_acct,
goto out;
}
- become_root();
status = samr_find_machine_account(mem_ctx, h, mach_acct,
SEC_FLAG_MAXIMUM_ALLOWED,
&domain_sid, &user_rid,
&user_handle);
- unbecome_root();
if (!NT_STATUS_IS_OK(status)) {
goto out;
}