Novell Home

Configuring Login Scripts for Selected Users

Novell Cool Solutions: Tip
By Stephen Wicklund

Digg This - Slashdot This

Posted: 7 Feb 2007
 

Problem

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.

Solution

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.

Example Script

;REM Check to see if your PC is on the 172.168.31.0/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 172.168.31.0 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 172.168.30.0 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.

Environment

  • Novell Client 32
  • TCP/IP
  • BorderManager (optional)


Novell Cool Solutions (corporate web communities) are produced by WebWise Solutions. www.webwiseone.com

© 2014 Novell