Notices
Computer & Technology Related Post here for help and discussion of computing and related technology. Internet, TVs, phones, consoles, computers, tablets and any other gadgets.

Mapping Windows servers in a Novell login script

Thread Tools
 
Search this Thread
 
Old 31 January 2005, 03:18 PM
  #1  
darlodge
Scooby Regular
Thread Starter
 
darlodge's Avatar
 
Join Date: Oct 2001
Location: Lovely Lancing in West Sussex
Posts: 3,449
Likes: 0
Received 0 Likes on 0 Posts
Default Mapping Windows servers in a Novell login script

Has anyone done it?

We need to add 2 of our Windows 2003 Servers into our Novell Login script (stop gap until AD is implemented).

We have tried using the Novell login script using the Net use command but it fails.

We have also tried a Windows Login script via a group policy but just to complicate things, we want to login script to map with a particular user account. i.e. all 3 people log in but they all authenticate to the server as user1.

HELP!!!!

Darren
Old 31 January 2005, 03:34 PM
  #2  
ozzy
Scooby Regular
 
ozzy's Avatar
 
Join Date: Nov 1999
Location: Scotland, UK
Posts: 10,504
Likes: 0
Received 1 Like on 1 Post
Default

Have you tried just using the MAP command with a UNC path??

MAP G:=\\servername\sharename\directoryname

It's be years since I've worked on NetWare, but it worked fine in the past. I assume you're using a Client32 machine.

Stefan

Last edited by ozzy; 31 January 2005 at 04:06 PM. Reason: coz David's a smart@ss
Old 31 January 2005, 03:50 PM
  #3  
David_Wallis
Scooby Regular
 
David_Wallis's Avatar
 
Join Date: Nov 2001
Location: Leeds - It was 562.4bhp@28psi on Optimax, How much closer to 600 with race fuel and a bigger turbo?
Posts: 15,239
Likes: 0
Received 1 Like on 1 Post
Default

as said map will map unc paths..

and \\servername\sharename works

Unsure whether you can map to a directory with NT /2k3 though.
Old 31 January 2005, 04:05 PM
  #4  
ozzy
Scooby Regular
 
ozzy's Avatar
 
Join Date: Nov 1999
Location: Scotland, UK
Posts: 10,504
Likes: 0
Received 1 Like on 1 Post
Default

you passed the test David
Old 01 February 2005, 08:43 AM
  #5  
darlodge
Scooby Regular
Thread Starter
 
darlodge's Avatar
 
Join Date: Oct 2001
Location: Lovely Lancing in West Sussex
Posts: 3,449
Likes: 0
Received 0 Likes on 0 Posts
Default

Thanks for your help guys but it don't work

If you try adding either or your suggestions into our Novell Login script you receive an error.

I've also followed this TID from Novell with no luck. I think the reason is because we don't have a domain with active accounts in yet which is causing problems authenticating, well in short, it doesn't!! Error code is 3456 (see here

I'm currently looking at any other option. We have already tried batch files that run at login via Local GP but it will not store the password.

Darren

Last edited by darlodge; 01 February 2005 at 08:48 AM.
Old 01 February 2005, 01:47 PM
  #6  
David_Wallis
Scooby Regular
 
David_Wallis's Avatar
 
Join Date: Nov 2001
Location: Leeds - It was 562.4bhp@28psi on Optimax, How much closer to 600 with race fuel and a bigger turbo?
Posts: 15,239
Likes: 0
Received 1 Like on 1 Post
Default

Are you logging into the domain as well?

Login using novell / NDS as normal.

Run a cmd prompt and can you do the net use * \\servername\sharename

Navigate to the drive assigned, and type dir, does it work???

David
Old 01 February 2005, 03:48 PM
  #7  
ozzy
Scooby Regular
 
ozzy's Avatar
 
Join Date: Nov 1999
Location: Scotland, UK
Posts: 10,504
Likes: 0
Received 1 Like on 1 Post
Default

You'll need to be authenticated to the server and share you're trying to MAP a drive to. Logging into the NDS Tree won't be enough unless you're using something like NDS for NT (or whatever it's called these days) and the NT box is part of NDS.

If you've just logged onto NDS, then it will pass the local NT username/password to the remote server for authentication.

Are these two 2003 servers just in a workgroup?

You could use the NET USE command with the /USER:domain\user password command from the login script (syntax in that TID).

e.g. NET USE G: \\server1\share1 /USER:server1\user1 letmein

server1 is the local servername containing the local user account user1. That's assuming you've no existing domain or AD to do global authentication.

Stefan
Old 02 February 2005, 08:02 AM
  #8  
darlodge
Scooby Regular
Thread Starter
 
darlodge's Avatar
 
Join Date: Oct 2001
Location: Lovely Lancing in West Sussex
Posts: 3,449
Likes: 0
Received 0 Likes on 0 Posts
Default

David, we don't actually have a domain in place so I'm authenticating to the server directly.

After many hours I game up with trying to get the Novell Login script to include the drive mapping to our NT servers, so I created a batch file that a user will click on when they want to launch their program (Dolphin).

Contents of bat file:
@echo off
REM Net use j: /delete
excho Please wait whilst Dolphin loads
net use j: \\SERVER\SHARE\ Password /user:SERVER\User
START c:\dolphin\dolphin.exe

This will then delete any drive mapping they have on J:\, then reconnect a network drive and then launch the program, Simple

Another thing I need to add is a shutdown policy to disconnect the network drive. If I do not do this, when a user logged restarts and logs back in again, the drive mapping would try and re-connect, thus prompting for a password. I want the whole process to be seamless.

Whilst we are on topic of login scripts, what do you guys write yours in. I know you David have 1000's of users, so I’d guess you have probably invested a lot more time (and money) then we can.

Cheers guys
Dazza

Last edited by darlodge; 02 February 2005 at 08:44 AM.
Old 02 February 2005, 09:17 AM
  #9  
Stueyb
Scooby Regular
 
Stueyb's Avatar
 
Join Date: May 2002
Posts: 1,893
Likes: 0
Received 0 Likes on 0 Posts
Default

what the bloody hell is dolphin.exe ? Used to design kitchens ?
Old 02 February 2005, 10:05 AM
  #10  
ozzy
Scooby Regular
 
ozzy's Avatar
 
Join Date: Nov 1999
Location: Scotland, UK
Posts: 10,504
Likes: 0
Received 1 Like on 1 Post
Default

if you use the NET USE command with the /PERSISTENT:NO switch then the workstation won't remember the previous mapping.

You could also remove the remark from the NET USE j: /delete statement.

I've used Kickstart in the past for designing login scripts.

Stefan
Old 02 February 2005, 11:24 AM
  #11  
darlodge
Scooby Regular
Thread Starter
 
darlodge's Avatar
 
Join Date: Oct 2001
Location: Lovely Lancing in West Sussex
Posts: 3,449
Likes: 0
Received 0 Likes on 0 Posts
Default

Stefan you beauty. Thats the delete statment and the log off statment removed

Nice one, cheers bud.

Also Dolphin is a secret program

Darren
Old 02 February 2005, 11:27 AM
  #12  
ozzy
Scooby Regular
 
ozzy's Avatar
 
Join Date: Nov 1999
Location: Scotland, UK
Posts: 10,504
Likes: 0
Received 1 Like on 1 Post
Default

training Dolphins to deliver anti-shipping mines

glad it's sorted.
Old 02 February 2005, 03:52 PM
  #13  
David_Wallis
Scooby Regular
 
David_Wallis's Avatar
 
Join Date: Nov 2001
Location: Leeds - It was 562.4bhp@28psi on Optimax, How much closer to 600 with race fuel and a bigger turbo?
Posts: 15,239
Likes: 0
Received 1 Like on 1 Post
Default

We use Kix 4.23

why not set the share up so you dont need to authenticate (null session share)

A batch file is a poor way of doing it!

One section I wrote out of ours

Code:
; Configure User Info for MSOffice

$strFullNameHex = ""
$intLen = Len(@FullName)
If InStr(@FullName,",") > 0
	? "Configuring User Information for MS Office"
	$intPos = InStr(@FullName,",") + 2
	:_StartLoop
	$intDone = $intDone + 1
	While $intPos < $intLen + 1
		$strFullNameHex = $strFullNameHex + DecToHex(Asc(SubStr(@FullName,$intPos,1))) + "00"
		$intPos = $intPos + 1
	Loop
	If $intDone = 1
		$intPos = 1
		$intLen = InStr(@FullName,",") - 1
		$strFullNameHex = $strFullNameHex + "2000"
		GoTo _StartLoop
	EndIf
	If Len(@USERID) = 7
		$intInitCount = 3
	Else
		$intInitCount = 2
	EndIf
	$intInitPos = 1
	$strInitHex = ""
	While $intInitPos < $intInitCount + 1
		$strInitHex = $strInitHex + DecToHex(Asc(SubStr(@USERID,$intInitPos,1))) + "00"
		$intInitPos = $intInitPos + 1
	Loop
	$intDummy = WriteValue ("HKEY_Current_User\Software\Microsoft\Office\8.0\Common\UserInfo","UserName",$strFullNameHex + "0000","REG_BINARY")
	$intDummy = WriteValue ("HKEY_Current_User\Software\Microsoft\Office\8.0\Common\UserInfo","UserInitials",$strInitHex + "0000","REG_BINARY")
EndIf
Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
KAS35RSTI
Subaru
27
04 November 2021 07:12 PM
Mattybr5@MB Developments
Full Cars Breaking For Spares
28
28 December 2015 11:07 PM
Mattybr5@MB Developments
Full Cars Breaking For Spares
12
18 November 2015 07:03 AM
FuZzBoM
Wheels, Tyres & Brakes
16
04 October 2015 09:49 PM
Ganz1983
Subaru
5
02 October 2015 09:22 AM



Quick Reply: Mapping Windows servers in a Novell login script



All times are GMT +1. The time now is 07:25 AM.