Admin logging SoC project requirements

simo idra at
Wed May 31 13:53:21 GMT 2006

On Wed, 2006-05-31 at 15:40 +0200, Volker Lendecke wrote:
> On Wed, May 31, 2006 at 03:32:09PM +0200, Michael Krax wrote:
> > I would certainly prefer that.  But in 
> > NTSTATUS pdb_add_sam_account(struct samu *sam_acct) 
> > we do not have any information about the requesting user.  That is
> > contained in struct pipes_struct passed to
> > NTSTATUS _samr_create_user(pipes_struct *p, SAMR_Q_CREATE_USER *q_u,
> > 			   SAMR_R_CREATE_USER *r_u)
> This is exactly what I'm working on right now... :-)
> We have to pass environment information like current user
> and other stuff around everywhere anyway. I was considering
> to for example extend the VFS module interface to contain a
> pointer to 'struct current_user' or something similar in
> every call. I'm not fully certain about the exact design
> yet, but passing a pointer to such information might turn
> out to be necessary to become part of the pdb interface.

It may be worth than to pass in the conn struct and make the user struct
and any other necessary info is linked by that, this way we can add
later other information without the need to change all the interfaces.


Simo Sorce
Samba Team GPL Compliance Officer
email: idra at

More information about the samba-technical mailing list