2.2.2: need %G (not %g) for logon script
Andrew Bartlett
abartlet at pcug.org.au
Thu Nov 29 21:33:02 GMT 2001
Jeremy Allison wrote:
>
> On Fri, Nov 30, 2001 at 11:09:10AM +1100, Paul Szabo wrote:
> > Up until 2.2.1a I used to have
> >
> > logon script = %g.bat
> >
> > in my smb.conf, but now I find I need instead
> >
> > # At 2.2.2 we need %G (%g would be root/system?)!
> > logon script = %G.bat
> >
> > Is this a bug (or is it a feature)?
>
> %g is the unix group name of the current connected user,
> %G is the unix group name of the %U user, which is the
> username that the client requested, not the one they
> neccessarily got.
The whole substitutions issue needs to be revisted at some stage. In
particular, we need an 'authenticated user' %u that refers to the
current vuid - this would make much more sence than it being based on
the user being forced on the tid. But I think we have run out of
sensible letters :-(
In any case, the backend for all this is certainly available for the
Auth subsystem.
Andrew Bartlett
--
Andrew Bartlett abartlet at pcug.org.au
Manager, Authentication Subsystems, Samba Team abartlet at samba.org
Student Network Administrator, Hawker College abartlet at hawkerc.net
http://samba.org http://build.samba.org http://hawkerc.net
More information about the samba
mailing list