Author: obnox Date: 2007-06-07 20:13:02 +0000 (Thu, 07 Jun 2007) New Revision: 23378
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=23378 Log: Fix the RPC_ANONYMOUS_AUTH_TYPE in rpc_server/srv_pipe.c:api_pipe_bind_req. This had the effect of not being able to set privileges via (e.g.) net rpc rights. Michael Modified: branches/SAMBA_3_0_26/source/rpc_server/srv_pipe.c Changeset: Modified: branches/SAMBA_3_0_26/source/rpc_server/srv_pipe.c =================================================================== --- branches/SAMBA_3_0_26/source/rpc_server/srv_pipe.c 2007-06-07 13:35:39 UTC (rev 23377) +++ branches/SAMBA_3_0_26/source/rpc_server/srv_pipe.c 2007-06-07 20:13:02 UTC (rev 23378) @@ -1632,11 +1632,18 @@ case RPC_ANONYMOUS_AUTH_TYPE: /* Unauthenticated bind request. */ + /* Get the authenticated pipe user from current_user */ + if (!copy_current_user(&p->pipe_user, ¤t_user)) { + DEBUG(10, ("Could not copy current user\n")); + goto err_exit; + } /* We're finished - no more packets. */ p->auth.auth_type = PIPE_AUTH_TYPE_NONE; /* We must set the pipe auth_level here also. */ p->auth.auth_level = PIPE_AUTH_LEVEL_NONE; p->pipe_bound = True; + /* The session key was initialized from the SMB + * session in make_internal_rpc_pipe_p */ break; default:
