diff options
author | Gerald Carter <jerry@samba.org> | 2006-07-03 16:12:16 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 11:19:10 -0500 |
commit | 26c0b81d757d711646239fc55ed326fa3b0180cc (patch) | |
tree | e66010450186580959a5518475e3dba821da3533 | |
parent | 355cbde8df75d429906e1e2f6e465b20222b4173 (diff) | |
download | samba-26c0b81d757d711646239fc55ed326fa3b0180cc.tar.gz samba-26c0b81d757d711646239fc55ed326fa3b0180cc.tar.bz2 samba-26c0b81d757d711646239fc55ed326fa3b0180cc.zip |
r16785: BUG 3908: Fix rpc bin authentication failure which broke user password changes
Jeremy, please review.
(This used to be commit 154e4a281503f0cbc2e654640f1dfa4b4d35a3cd)
-rw-r--r-- | source3/rpc_server/srv_pipe.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source3/rpc_server/srv_pipe.c b/source3/rpc_server/srv_pipe.c index 1c91735756..812a720d90 100644 --- a/source3/rpc_server/srv_pipe.c +++ b/source3/rpc_server/srv_pipe.c @@ -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); |