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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Multipe TREE login script using CN variable 1

Status
Not open for further replies.

rjmccorkle

Programmer
Joined
Aug 26, 2000
Messages
55
Location
US
I am trying to write a generic Login Script in Netware 5.1 so that users in a certain group will login to a second tree. I have tried using the %CN variable with the TREE command but can't get it to work. Example:
TREE TREE_NAME/.%CN.SERVER.CONTEXT
My goal is to make it so they don't have to type in their username for the second tree.
I also can't get this to work:
IF MEMBER OF group_name THEN
That generates a "This utility could not interpret the line."
Thanks for any help.
Bob
 
Try doing it this way...

TREE <Server IP Address>/.OU.OU.O

As for the other question, try this...

IF MEMBER OF &quot;<GROUP NAME>&quot; THEN BEGIN

You must have quotes around the Variable.

Good Luck!
 
Thanks for the reply. All of the Script examples I found (many on the Novell site) neglected to include the &quot;&quot; around the group name. I'll try that Monday at work. The CoolGuys at Novell sent me a link to this TID:

It had this example:

If member of &quot;MultiTrees&quot; then
TREE mytree2\%cn
map o:=serverB\sys:
TREE mytree1\.IS.HEAD.DESCGI
end

This is just what I had in mind but it leads me to this question: Does the TREE command use \ or / ? I think I have seen one used in some examples and the other used in other examples.

Also, in the example you gave (please forgive my ignorance; it's been years since I had to mess with Netware Login Scripts and back then they didn't have &quot;TREES&quot; and &quot;CONTEXTS&quot;):

TREE <Server IP Address>/.OU.OU.O

I think I have to log the user in to a particular SERVER and CONTEXT. The username is the same on both trees. Assuming for the second login that the Server name is SERV2 and the Context name is CONT2 and the Tree name is TRE2 and that the user has already logged into the first tree, what would the TREE command format be?

Thanks for the help.
Bob
 
When you logon to NetWare v4.x or above, you are actually logging into the NDS Tree, not the individual Server. Once authenticated, the Tree grants you the rights to the resources located in that Tree, wherever and whatver they might be.

Check out this TID, it might help shed some light...


Good Luck!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top