Passing Login Info Back to the Login Script
Novell Cool Solutions: Question & Answer
Q:
Gary wrote: I need to determine, at login time, whether a user is connecting through a dial-in line or our LAN. With this information, different login actions can be taken. I thought I was fortunate because I can tell a dial-in connection from a LAN connection by the client's IP Address (via DHCP). DUN/RAS users are given a specific range. I determine this in a DOS batch file that I run from the login script. How can I pass the status back to the login script? Any DOS variable that I set or modify in the batch file is lost when the batch file terminates unless I specifically save the variable to the Windows (NT, 95) registry (HKCU%5CVolatile Environment). This isn't ideal. My next thought was to dynamically add the user to a predefined NDS Group through the batch file. But because NWAdmin is GUI, I need a DOS command line utility. Any ideas?
A:
Use the %NETWORK login script variable which tells you the network segment being used to access the network. You can read all about it in the July 1994 AppNote, "Configuring NetWare 4 for the Mobile User" written by Marcus Williamson.
Novell Cool Solutions (corporate web communities) are produced by WebWise Solutions. www.webwiseone.com
