[PATCH] Change system handling in smbd
Andrew Bartlett
abartlet at samba.org
Mon Jun 11 04:16:15 MDT 2012
On Mon, 2012-06-11 at 12:13 +0200, Andreas Schneider wrote:
> On Monday 11 June 2012 19:53:18 Andrew Bartlett wrote:
> > Andreas,
>
> Andrew,
>
> > I can't find a record of asking you about this patch, but before the
> > beta, I was working on this tree:
> >
> > https://git.samba.org/?p=abartlet/samba.git/.git;a=shortlog;h=refs/heads/fix
> > -system
> >
> > In short, it make the system token just that, SID_NT_SYSTEM. The unix
> > portion remains as is, the sec_initial_uid() and it's primary group.
> >
> > I wondered if you could confirm that this doesn't break the special case
> > that started you on modifying this area?
>
> the plan was to completely fake this structure. So don't call and getpw*
> functions. Only use sec_initial_uid() and sec_initial_gid().
>
> utok and security_token should be enough.
Thanks, I'll proceed with fully faking it up. That can then avoid all
the DB calls.
Andrew Bartlett
--
Andrew Bartlett http://samba.org/~abartlet/
Authentication Developer, Samba Team http://samba.org
More information about the samba-technical
mailing list