NTLogon logo
Logon script generator for samba.

it works using the local username on *nix to get the real
name and all the groups the user belong to. then it uses
/etc/ntlogon.conf to create a login script for windows clients
adding all the network shares the user can use and are specified.

Version 0.11.0, updated on June 30, 2006.

Programming language is Python.
you do not need to do more than add these lines to your [netlogon] section at the smb.conf file:

[netlogon]
path = /usr/local/samba/netlogon
writeable = no
guest ok = no
root preexec = /usr/local/samba/bin/ntlogon.py --os=%m --localuser=%u
root postexec = rm /usr/local/samba/netlogon/%U.bat

README FILE: README

Source: (I recommend to download the latest version):

ntlogon_v0.10.tar.bz2 (actual. LDAP aware)
ntlogon_v0.10.tar.gz (actual. LDAP aware)
ntlogon_v0.10.tar.gz (it works but does not support LDAP nor spaces)