N3ServerList and N4Serverlist Functions
Keywords: N3ServerList primary Server default server
Question:
I am attempting to get the connected "primary server",using n3ServerList(2).
It seems to returning something else.
We are expecting "open1" as the primary server, but this functions returns "doc1". How is this function
getting this information?
Answer:
N4ServerList and the N3ServerList are returning information from the Netware API.
Apparently Netware considers the "doc1" server as the Primary server, rather than
what you were expecting (the "open1" server).
From the Netware documentation, the "primary server" is:
- Netware 3.X: The
n3ServerList function
returns the server from which the login script is read, and was originally logged into.
- Netware 4.X:
The n4ServerList function
in NDS returns the server with the writeable replica used during the log on process.
From the Netware documentation, the "default server" is:
The NetWare server containing the session's current directory is the
default NetWare server.
The default connection handle corresponds to one of the following:
- If the current drive is a network drive, the server to which the drive maps.
- If the current drive is not a network drive, the server the workstation
first logged into (also called primary server).
- If 1 and 2 fail, the default server is the first server in the shell's
connection list. This would happen if the workstation is logged out of the
primary server.
Article ID: W13616
Filename: n3ServerList Information.txt
File Created: 1999:04:15:16:55:14
Last Updated: 1999:04:15:16:55:14