[PATCH] fix RPC_ANONYMOUS_AUTH_TYPE in 3_0_26

Michael Adam ma at sernet.de
Thu Jun 7 15:39:04 GMT 2007


Hi list, Jerry,

this one gave me some headaches: I could not set
rights with "net rpc rights grant ...".  Got
NT_STATUS_ACCESS_DENIED. I found that in 
the pipe_user.ut.uid was -1 in _lsa_add_acct_rights.

This lead me up to rpc_server/srv_pipe.c
where I found that the copy_current_user call was
missing (compared to 3_0) under RPC_ANONYMOUS_AUTH_TYPE
in api_pipe_bind_req.

The attached patch fixes my issue. 

Volker asked me to present the patch to the list first,
because this is critical code. 

With your approval I would like commit it.

Cheers, Michael

-- 
Michael Adam <ma at sernet.de>
SerNet GmbH, Bahnhofsallee 1b, 37081 Göttingen
phone: +49-551-370000-0, fax: +49-551-370000-9
AG Göttingen, HRB 2816, GF: Dr. Johannes Loxen
http://www.SerNet.DE, mailto: Info @ SerNet.DE
-------------- next part --------------
A non-text attachment was scrubbed...
Name: srv_pipe.diff
Type: text/x-patch
Size: 815 bytes
Desc: not available
Url : http://lists.samba.org/archive/samba-technical/attachments/20070607/39aaa25b/srv_pipe.bin


More information about the samba-technical mailing list