Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Retrieving uid

Status
Not open for further replies.

sirugo

Programmer
Aug 1, 2000
162
SE
We have an intranet running with basically two subareas - for two different user groups.

All applications are only available after logging into Novell Netware 5.1 network.

During the login procedure I would like the client to spot the difference between userids and store the corresponding IP in a database so that the intranet (php/MySQL) shows the proper page for the user.

I know the php/MySQL-part but how can I grab the user-id during (or just after) login and how can it be sent to a database (web-based). It might also work if the corresponding group-id is stored as a text-file as long as php can read it.

I want to avoid a complementary web-based login procedure through the intranet.

Can it be done?
 
Hi,

sounds like you want to pass some info to either a databse or text file that can be read after login. In the Novell login script you can use variables or IF Then statements to do this for you. The login name variable is %login_name
The IF statement is used like this :

IF MEMBER OF ".group.server.ou.o" THEN BEGIN
commands here... or
#execute an external batch file to write something to a file
END

There are loads of other variables you can use which should be easy to find on the Novell knowledge base site.

Hope this helps.

 
Yes, it helps.

But what commands could I be using to actually...

1. Retrieve the IP-adress of the client
2. Open a webpage specified in the IF-statement

?

Is there a reference anywhere on the net for functions available?
 
Sorry, I'm not a programmer but I'm sure you could manage to pass a variable to a Windows vbscript and get Windows to pass the correct URL to Internet explorer. The IP address will be available as a variable obtainable in a similar fashion to the Novell login script.

your Novell script will look something like ;

IF MEMEBER OF ".Novell.uk" THEN
#c:\program files\internet explorer\iexplore END

IF MEMBER OF ".Microsoft.uk" THEN
#c:\program files\internet explorer\iexplore END
 
OK, I'll pass this over to my network manager to see what he says.
Thanks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top