svn commit: samba r16785 - branches/SAMBA_3_0/source/rpc_server trunk/source/rpc_server

jerry at samba.org jerry at samba.org
Mon Jul 3 16:12:18 GMT 2006


Author: jerry
Date: 2006-07-03 16:12:16 +0000 (Mon, 03 Jul 2006)
New Revision: 16785

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=16785

Log:
BUG 3908: Fix rpc bin authentication failure which broke user password changes

Jeremy, please review.


Modified:
   branches/SAMBA_3_0/source/rpc_server/srv_pipe.c
   trunk/source/rpc_server/srv_pipe.c


Changeset:
Modified: branches/SAMBA_3_0/source/rpc_server/srv_pipe.c
===================================================================
--- branches/SAMBA_3_0/source/rpc_server/srv_pipe.c	2006-07-03 15:49:23 UTC (rev 16784)
+++ branches/SAMBA_3_0/source/rpc_server/srv_pipe.c	2006-07-03 16:12:16 UTC (rev 16785)
@@ -620,7 +620,10 @@
 	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);

Modified: trunk/source/rpc_server/srv_pipe.c
===================================================================
--- trunk/source/rpc_server/srv_pipe.c	2006-07-03 15:49:23 UTC (rev 16784)
+++ trunk/source/rpc_server/srv_pipe.c	2006-07-03 16:12:16 UTC (rev 16785)
@@ -615,7 +615,10 @@
 
 	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);



More information about the samba-cvs mailing list