Article

Configuring Login Scripts for Selected Users

article
Reads:

2503

Score:
3
3
3
 
Comments:

0

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)




User Comments

© 2009 Novell, Inc. All Rights Reserved.