Article
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)
Disclaimer: As with everything else at Cool Solutions, this content is definitely not supported by Novell (so don't even think of calling Support if you try something and it blows up).
It was contributed by a community member and is published "as is." It seems to have worked for at least one person, and might work for you. But please be sure to test, test, test before you do anything drastic with it.
Related Articles
User Comments
- Be the first to comment! To leave a comment you need to Login or Register
- 5137 reads


0