CVS update: samba/source/rpc_server

Kai Krueger kai at kruegernetz.de
Sat Aug 17 06:06:06 EST 2002


----- Original Message -----
From: <tpot at samba.org>   Sent: Thursday, August 15, 2002 9:40 PM


>
> Date: Thu Aug 15 15:40:34 2002
> Author: tpot
>
> Update of /data/cvs/samba/source/rpc_server
> In directory dp.samba.org:/tmp/cvs-serv2974/rpc_server
>
> Modified Files:
> srv_samr_nt.c
> Log Message:
> Rename unknown_0 field in create_user2 reply in the actual struct.

It would be nice if the field was not only renamed, but actually returns the
access granted :-)

Instead of returning some magical constant, use the acc_granted variable,
which is the desired access filtered through se_access_check (i.e. granted
access) :-)


--- ./srv_samr_nt.c     Fri Aug 16 20:49:57 2002
+++ ./srv_samr_nt.c   Fri Aug 16 21:59:36 2002
@@ -2366,7 +2366,7 @@

        /* This should probably be some subset of q_u->access_mask */

-       r_u->access_granted = 0x000703ff;
+       r_u->access_granted = acc_granted;

        pdb_free_sam(&sam_pass);


Kai




More information about the samba-cvs mailing list