tw-logonscript is a contrib that will make it easier to integrate Windows/Linux clients to SME Server via logon script.
The list of features include:
- Custom perl logon script generator that will dynamically generate logon scripts based on the user's group permissions
- Server manager panel (I-bay letters) to control the I-bay and drive letter association
- Possibility to create additional per group or per user custom batch files
- Automatic per user .pam_mount.conf.xml generation. We've been successfully running a couple of Ubuntu workstations that automatically map shares that are consistent with what it would be on a Windows workstation. The setup is not trivial, at some stage I will publish further documentation explaining how to set up this integration. It won't affect the Windows part of the logon script.
- Log file at /var/log/netlogon.log that shows login times
Sep 15 11:3:53 user logged into computername (Win2K) - 192.168.2.10
So, in a nutshell, for each I-bay you can define the drive letter you want it to have under Windows. Let's suppose you have chosen the drive letter M: for the I-bay management and you have the management-group as the group allowed to read/write to it. All the users belonging to the management-group will automatically have that drive mapping when they log in.
If the group is set to Everyone, it will create that drive mapping for all users.
If you need the custom batch files, let's suppose you have a user called john and john needs to copy a set of files from another location.
- cd /home/e-smith/files/samba/netlogon/custom
- Create a file called john.bat, write it using the Windows batch syntax eg: copy M:\template.xls C:\%USERPROFILE%\Desktop
- run unix2dos john.bat
- Although the previous step is not mandatory I would still advise it
Next time user john logs in, this john.bat file will be executed. It will be run after all the other drive mappings are in place.
The same works for a particular group if you need it to, for example, have a special drive mapping (eg: net use M: \\anotherserver\someshare)
At some stage I plan to bring this whole process into the server manager as well. Since it's not required to often I've probably been too lazy to do so
If you are interested to test it you can download it from:
http://mail.tw.co.nz/contribs/tw-logonscript-1.3-1.noarch.rpmhttp://mail.tw.co.nz/contribs/tw-logonscript-1.3-1.src.rpmWe've been developing and using it in production for several customers for more than 2 years now and it's been doing a pretty good job.
If you have any questions don't hesitate to ask me. Feedback will be highly appreciated.
At this stage, this RPM is only available in English but I'm keen to develop it further and make it multi language.
Enjoy!