svn commit: samba r9601 - in trunk/source/rpc_server: .

Jeremy Allison jra at samba.org
Thu Aug 25 15:59:49 GMT 2005


On Thu, Aug 25, 2005 at 10:05:46AM +0200, Stefan (metze) Metzmacher wrote:
> > Modified: trunk/source/rpc_server/srv_pipe.c
> > ===================================================================
> > --- trunk/source/rpc_server/srv_pipe.c	2005-08-25 00:57:21 UTC (rev 9600)
> > +++ trunk/source/rpc_server/srv_pipe.c	2005-08-25 01:02:14 UTC (rev 9601)
> > @@ -2081,13 +2081,17 @@
> >  BOOL api_pipe_request(pipes_struct *p)
> >  {
> >  	BOOL ret = False;
> > +	BOOL changed_user = False;
> >  	PIPE_RPC_FNS *pipe_fns;
> >
> > -	if (p->pipe_bound && p->auth.auth_type == PIPE_AUTH_TYPE_NTLMSSP) {
> > +	if (p->pipe_bound &&
> > +			((p->auth.auth_type == PIPE_AUTH_TYPE_NTLMSSP) ||
> > +			 (p->auth.auth_type == PIPE_AUTH_TYPE_SPNEGO_NTLMSSP))) {
> 
> Hi Jeremy,
> 
> maybe just use p->auth.auth_type != PIPE_AUTH_TYPE_NONE
> ( != 0)
> 
> do we become the user for the ipc$ share before?
> as with auth_type == 0 we need to run the call as the user that connected
> to the ipc$ share.

I can't do that as schannel doesn't change user I think. We are in
the security context of the user who connected to the ipc$ share when
auth type is none, this is changing to an authenticated user.

Jeremy.


More information about the samba-technical mailing list