Unix-side login script under Samba???

Sergei Makarov smakarov at nes.ru
Tue Dec 5 08:07:09 GMT 2000


High Mobley wrote:
> 
> Is there a way to have Samba run a unix-server-side script whenever an
> NT domain user logs in and pass some of the standard Samba built-in
> variables to that script as command line arguments? the "preexec"
> parameter looks close to what I'm looking for, but it runs when a user
> tries to browe a service as I understand it. I need a script that can be
> run upon a domain login. I'm running an old (pre-2.0 CVS snapshot)
> version of Samba, but am open to running whatever version supports this
> feature. I'd even like to hear if 2.2 or 3.0 will support this feature.
> Thanks,
> High Mobley
> ABHS

Try something like this:

 [netlogon]
   comment = Network Logon Service
   path = /path/to/share/netlogon
   root preexec = unix-side-script-when-user-logs-on %U %m %a %I


Regards,
Sergei.




More information about the samba-ntdom mailing list