#119937 - 2004-05-21 11:05 AM
Novell Mapping
|
dcarr
Getting the hang of it
Registered: 2004-05-10
Posts: 62
|
Hi guys, I have trawled through the old posts relating to mapping Novell Netware drives and cannot seem to locate the information I require.
I have a kix script that maps two drives to an old netware server that allows users to transfer their private files from the netware server to the W2K server.
The mappings work fine in a W2000 and XP environment but do not work in a Win9x environment?
I am using the exact same syntax:
USE E: \\Server1\Sys USE F: \\Server1\VOL2
Any ideas why it may not be working and what I can do or check to overcome the problem?
Thanks
|
|
Top
|
|
|
|
#119939 - 2004-05-21 03:09 PM
Re: Novell Mapping
|
dcarr
Getting the hang of it
Registered: 2004-05-10
Posts: 62
|
Thanks Les, I will investigate what you have covered in your response.
Whilst on the topic of mapping, can you have a user who belongs to two groups and how do you script it?
Thanks again
|
|
Top
|
|
|
|
#119940 - 2004-05-21 04:25 PM
Re: Novell Mapping
|
Kdyer
KiX Supporter
   
Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
|
Easy..
Code:
IF INGROUP('GROUPA')
USE H: '\\SERVER\SHAREA'
ENDIF
IF INGROUP('GROUPB')
USE I: '\\SERVER\SHAREB'
ENDIF
Using the IF..ENDIF structure in this fashion will check to see if the person is a member of both, neither, one or the other..
Kent
|
|
Top
|
|
|
|
#119941 - 2004-05-21 05:00 PM
Re: Novell Mapping
|
dcarr
Getting the hang of it
Registered: 2004-05-10
Posts: 62
|
What if I wanted to say:
If ingroup (mkt1) and ingroup (mkt2)
p: "\server\share q: "\server\share
endif
|
|
Top
|
|
|
|
#119943 - 2004-05-21 05:09 PM
Re: Novell Mapping
|
dcarr
Getting the hang of it
Registered: 2004-05-10
Posts: 62
|
Sorry that was not my syntax, I was just attempting to demonstrate what I was trying to do.
I will take a further look at the manual. Thanks
|
|
Top
|
|
|
|
#119944 - 2004-05-24 04:27 PM
Re: Novell Mapping
|
dcarr
Getting the hang of it
Registered: 2004-05-10
Posts: 62
|
Is this syntax valid for a user who belongs to three groups?
IF INGROUP ("NW_MKT_PRIVATE", "NW_CONS_MKT_PRV", "NW_COMM_MKT_PRV",1) = 1 USE G: "\\Server1\Sys\@userid" USE N: "\\nw-data-store1\@userid" ;map share to Users home folder USE P: "\\nw-data-store1\nw_mkt_private" ;map share to nw-data-store for marketing users USE R: "\\nw-data-store1\nw_cons_mkt_prv" ;map share to nw-data-store for marketing users USE S: "\\nw-data-store1\nw_comm_mkt_prv" ;map share to nw-data-store for marketing users USE U: "\\Server1\Vol2"
ENDIF
Thanks
|
|
Top
|
|
|
|
#119945 - 2004-05-24 04:52 PM
Re: Novell Mapping
|
Richard H.
Administrator
   
Registered: 2000-01-24
Posts: 4946
Loc: Leatherhead, Surrey, UK
|
Depends 
You've set Mode to "1", which means that the results will only be true (1) if the login is a member of all three groups.
If you only want to check if the login is a member of at least one of the groups then Mode should be zero.
Other than that, it's fine.
|
|
Top
|
|
|
|
#119946 - 2004-05-24 06:14 PM
Re: Novell Mapping
|
dcarr
Getting the hang of it
Registered: 2004-05-10
Posts: 62
|
Hi Richard. Thanks for that.
What would I do if I wanted to specify that the user must exist in three groups to get mappings?
Change the mode to 1 and specify the list of groups?
|
|
Top
|
|
|
|
#119947 - 2004-05-24 06:41 PM
Re: Novell Mapping
|
Richard H.
Administrator
   
Registered: 2000-01-24
Posts: 4946
Loc: Leatherhead, Surrey, UK
|
Your post will do exactly that, but reading into the groups and mappings I suspect that this might be closer to what you want:
; Mappings for all staff MapDrive("G:","\\Server1\Sys\"+@userid) MapDrive("N:","\\nw-data-store1\"+@userid) ;map share to Users home folder MapDrive("U:","\\Server1\Vol2") ; Mappings for specific marketing groups. If InGroup("NW_MKT_PRIVATE") MapDrive("P:","\\nw-data-store1\nw_mkt_private") EndIf If InGroup("NW_CONS_MKT_PRV") MapDrive("R:","\\nw-data-store1\nw_cons_mkt_prv") EndIf If InGroup("NW_COMM_MKT_PRV") MapDrive("S:","\\nw-data-store1\nw_comm_mkt_prv") EndIf ; Generic map drive function with error reporting. Function MapDrive($d,$p) "Mapping drive "+$d+" to "+$p+"..." Use $d /delete /persistent Use $d $p If @ERROR " ***ERROR***"+@CRLF " "+@ERROR+" / "+@SERROR+@CRLF Else " Ok."+@CRLF EndIf EndFunction
|
|
|
Top
|
|
|
|
#119948 - 2004-05-25 12:42 PM
Re: Novell Mapping
|
dcarr
Getting the hang of it
Registered: 2004-05-10
Posts: 62
|
Thanks Richard I will use this as the basis for future scripts. Much appreciated.
|
|
Top
|
|
|
|
Moderator: Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart
|
0 registered
and 1471 anonymous users online.
|
|
|