logon scripts

Luke Kenneth Casson Leighton lkcl at switchboard.net
Thu Nov 13 14:36:24 GMT 1997

On Wed, 12 Nov 1997, Seth Vidal wrote:

> > i think that the latest versions of samba have macro substitutions 
> > carried out on the actual .bat file before it is downloaded to the client.
> > 
> > try putting NET TIME \\%L /SET /YES^M in the actual "global.bat" file, using
> > 1.9.17p4. 
> > 
> > if that doesn't work, it will be a very simple matter to put a few lines 
> > of code in yourself, to do this substitution.  i believe that you will be 
> > able to find the location yourself by doing "grep lp_logon_script *.c 
> > *.h".
> It's not currently in there so I'll try to do it myself. (1.9.17p4 using
> variables %U and %G (not %L)).
> My C is not so good. But if I can get it in and working well enough is there
> a place I should post it to for anyone who might want this sort of function
> in their logon scripts?

yes: to samba-bugs at samba.anu.edu.au.  put PATCH: at the start of the subject
line.   make sure it's a "diff -u" or a "diff -c4".



<a href="mailto:lkcl at switchboard.net"  > Luke Kenneth Casson Leighton  </a>
<a href="http://mailhost.cb1.com/~lkcl"> Samba Consultancy and Support </a>

More information about the samba mailing list