Unable to map drive to a server in different tree using TREE command in login script

  • 3891791
  • 27-Nov-2006
  • 16-Mar-2012

Environment

Novell Netware 6.5

Novell Client 4.91 SP2

Login Scripts

Mapping drives to servers in different trees via Login scripts

Situation

Unable to map drive to a server in different tree using TREE command in login script

Customer has 2 trees A & B. They have 2 groups in Tree A, i.e. Test1 & Test2. They log in to Tree A using Novell client and below are the statements in

container login script in Tree A

IF MEMBER OF ".Test1.lab" THEN BEGIN
TREE B\.%1.novell
MAP ROOT P:=servername in Tree B\sys:tomcat
END

IF MEMBER OF ".Test2.lab" THEN BEGIN
TREE B\.%1.novell
MAP ROOT T:=servername in Tree B\VOL2:ndps
END

When users log in to Tree A using Novell Client, the container login script in Tree A is executed. Only the first mapping (Drive P) is done. The second drive

mapping (Drive T) is not done. They do not get any error in login script for the failure of second drive mapping.

Resolution

Insert one more TREE command between two IF statements as below, to divert the focus of the login script back to Tree A

IF MEMBER OF ".Test1.lab" THEN BEGIN
TREE B\.%1.novell
MAP ROOT P:=servername in Tree B\sys:tomcat
END

TREE A\.%1.lab

IF MEMBER OF ".Test2.lab" THEN BEGIN
TREE B\.%1.novell
MAP ROOT T:=servername in Tree B\VOL2:ndps
END

Additional Information

In above login script statements, when command "TREE B\.%1.novell" is executed the focus of login script is diverted to the tree B and if you have next IF statement specifying the user or group in tree A, it will not execute it because it will try to search tree B for group Test2, which is actually in tree A.


Formerly known as TID# 10101184