r16785: BUG 3908: Fix rpc bin authentication failure which broke user password changes
authorGerald Carter <jerry@samba.org>
Mon, 3 Jul 2006 16:12:16 +0000 (16:12 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 16:19:10 +0000 (11:19 -0500)
Jeremy, please review.
(This used to be commit 154e4a281503f0cbc2e654640f1dfa4b4d35a3cd)

source3/rpc_server/srv_pipe.c

index 1c9173575607430697e00620a68d642dd060cb67..812a720d9059f2408d3af9ca7de6ed4a5966cd73 100644 (file)
@@ -620,7 +620,10 @@ static BOOL pipe_ntlmssp_verify_final(pipes_struct *p, DATA_BLOB *p_resp_blob)
        p->pipe_user.ut.ngroups = 0;
        SAFE_FREE( p->pipe_user.ut.groups);
 
+       /* this has to be done as root in order to verify the password */
+       become_root();
        status = auth_ntlmssp_update(a, *p_resp_blob, &reply);
+       unbecome_root();
 
        /* Don't generate a reply. */
        data_blob_free(&reply);