initial commit of file from CVS for smeserver-loginscript on Sat Sep 7 20:34:19 AEST 2024

This commit is contained in:
Trevor Batley
2024-09-07 20:34:20 +10:00
parent d6d65f9ac8
commit da7439100c
19 changed files with 1119 additions and 2 deletions

View File

@@ -0,0 +1,3 @@
logon drive = { defined($WinNTLogonDrive) ? $WinNTLogonDrive . ':' : 'h:' }

View File

@@ -0,0 +1 @@
root preexec = "/usr/local/bin/generate_netlogon /home/e-smith/files/samba/netlogon/netlogon.template /home/e-smith/files/users/%U/home/netlogon.bat %U %m %a %T"

View File

@@ -0,0 +1,13 @@
@ECHO OFF
REM ******************************************************
REM ** Mapping a drive to the home folder triggers the **
REM ** generation of the login script. Windows NT/2K **
REM ** does this automatically but we need to map the **
REM ** drive manually for the others. **
REM ******************************************************
IF "%OS%"=="Windows_NT" GOTO :SkipHomeMapping
NET USE { defined($WinNTLogonDrive) ? $WinNTLogonDrive . ':' : 'h:' } /home
:SkipHomeMapping

View File

@@ -0,0 +1,5 @@
REM Call the generated login script from the user's home folder:
CALL { defined($WinNTLogonDrive) ? $WinNTLogonDrive . ':' : 'h:' }\netlogon.bat

View File

@@ -0,0 +1,6 @@
@REM #------------------------------------------------------------
@REM # DO NOT MODIFY THIS FILE! It is updated automatically by the
@REM # e-smith server and gateway software. Instead, modify the source
@REM # template in the /etc/e-smith/templates-custom directory. For more
@REM # information, see http://www.e-smith.org.
@REM #------------------------------------------------------------

View File

@@ -0,0 +1,3 @@
@REM #------------------------------------------------------------
@REM # TEMPLATE END
@REM #------------------------------------------------------------