Page 1 of 1 1
Topic Options
#119937 - 2004-05-21 11:05 AM Novell Mapping
dcarr Offline
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
#119938 - 2004-05-21 02:51 PM Re: Novell Mapping
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
Sorry I don't have NetWare anymore to test but I am fairly certain you are using the wrong nomenclature. If you drill down through My Network Places along the NDS route, you will see that it is not \\server\volume.

Why do you have to map NetWare drives in KiX anyway? Why not map them in NetWare? While I was migrating from NetWare, I just flipped the GINAs, using MSGina and let both scripts run. As I migrated each resource, I just removed the MAP statement from NetWare and added USE to my AD script.

It could also boil down to the logon/login order. What GINA are you using? If MSGina, NetWare is not yet authenticated.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#119939 - 2004-05-21 03:09 PM Re: Novell Mapping
dcarr Offline
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 Offline
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
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's

Top
#119941 - 2004-05-21 05:00 PM Re: Novell Mapping
dcarr Offline
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
#119942 - 2004-05-21 05:07 PM Re: Novell Mapping
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
First off, you are missing the quotes. You can spec both gtroups in one function.
If InGroup('mkt1','mkt2')

This is explained in the manual.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#119943 - 2004-05-21 05:09 PM Re: Novell Mapping
dcarr Offline
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 Offline
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 Offline
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 Offline
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 Offline
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 Offline
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
Page 1 of 1 1


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 1471 anonymous users online.
Newest Members
Viginette, ManuvdWielNL, Sir_Barrington, batdk82, StuTheCoder
17888 Registered Users

Generated in 0.163 seconds in which 0.091 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org