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 Carter <jerry@samba.org>
Mon, 3 Jul 2006 16:12:16 +0000 (16:12 +0000)
Jeremy, please review.

source/rpc_server/srv_pipe.c

index b0873bce35644fbfbd69572339c86db9528f1301..e2c5e865ed183cd34fb3df5c5ac51418fd8502bf 100644 (file)
@@ -615,7 +615,10 @@ static BOOL pipe_ntlmssp_verify_final(pipes_struct *p, DATA_BLOB *p_resp_blob)
 
        ZERO_STRUCT(reply);
 
+       /* 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);