s3-netlogon: Connecting with the system token should be sufficient.
[mat/samba.git] / source3 / rpc_server / netlogon / srv_netlog_nt.c
index 4f66dfe0de55911beea0ea7f7f39a583a01641e4..53eff5fcb4ad22e18b20ae1fec80fb300b47281a 100644 (file)
@@ -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;
        }