Configuring Login Scripts for Selected Users
Novell Cool Solutions: Tip
By Stephen Wicklund
Digg This -
Posted: 7 Feb 2007
Administrators need to push out installs or run applications from the login script, but they may not want the scripts to run for VPN users or users from a specific network or address.
You can configure your login script to run only portions of the script, or certain includes, if your system has a specific address or is part of a subnet.
;REM Check to see if your PC is on the 188.8.131.52/24 network. ;REM These Network_addresses are hex. ;REM AC = 172, 10 = 16, 1F = 31, 00 = 0 IF NETWORK_ADDRESS > "AC101F00" AND NETWORK_ADDRESS < "AC101FFF" ;REM Write "This PC is on the 184.108.40.206 network, and logging in over the BoarderManager VPN." MAP NEXT VOL1: EXIT ;REM END ;REM Check to see if your PC is on the LAN 172.16.30.0/24 network. IF NETWORK_ADDRESS > "AC101E00" AND NETWORK_ADDRESS < "AC101EFF" Write "This PC is on the 220.127.116.11 network" INCLUDE \\%FILE_SERVER\SYS\login\speciallanonly.inc #SYS:\public\client\winnt\i386\ACU.EXE EXIT END
You can use the Windows calculator in scientific mode to figure out what your hex address should be for your network. Just type one octet at a time in decimal mode then change it to hex mode.
- Novell Client 32
- BorderManager (optional)
Novell Cool Solutions (corporate web communities) are produced by WebWise Solutions. www.webwiseone.com