BUG 3908: Fix rpc bin authentication failure which broke user password changes
[metze/old/v3-2-winbind-ndr.git] / source / 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);