Article

laurabuckley's picture
article
Reads:

6483

Score:
3.5
3.5
2
 
Comments:

2

Drive Mappings with BorderManager Client-to-site VPN without Login Scripts

Author Info

27 February 2008 - 9:04am
Submitted by: laurabuckley

(View Disclaimer)

Problem

We make extensive use of BorderManager client-to-site VPN. The problem is drive mappings. It's difficult to establish drive mappings when the external computer does not have the Novell Client32 on it; therefore, the benefits of login scripts can't be used to our advantage.

Many people have suggested iFolder. However, the data that is required in this specific instance does not suit an iFolder installation. The data is deleted every night, and a complete new copy is created from extracts from the ERP system. Because the file creation time stamp is never preserved, using iFolder would mean that all of the data would be required to sync to hundreds of external computers every day, as a delta sync would not take place! Hey, this is Africa, and we are talking dial-up!

I hear you cry "NetStorage" ... yes, that's where we will be moving to once we have redesigned our DMZ and have NAM and a portal in place. In there interim, management wants a drive mapping that can be accessed as if they were local on our network. Having said that, the drive mapping must only be established after the VPN has been established. Using a “permanent” Microsoft drive mapping didn't suit the users, as it gives them an error when they turn their PC's on. See the note above about not having the Novell Client and the benefit of login scripts.

Solution

To overcome this little challenge I wrote an incredibly simple batch file:

ECHO OFF
ECHO *****************************************
ECHO **** ****
ECHO **** Mapping G: drive to "Location" ****
ECHO **** ****
ECHO *****************************************
net use G: \\10.11.0.176\vol1\prod\

You can add as many drive mappings as you require.

The “ECHO” is so that the end users get a little DOS-like screen with a message telling them what's happening – remember that this is Africa on dial-up so it can take as long as 30 – 45 seconds for the drive mapping to be established.

The Novell BorderManager client allows you to automatically execute an .exe once the VPN tunnel has been established. To this end I converted the batch file into a. exe file using bat-to-exe-convertor. Then you just configure the Novell BorderManager client to run this .exe when the tunnel is established.

See the graphic below on the configuration of the BorderManager client:


Disclaimer: As with everything else at Cool Solutions, this content is definitely not supported by Novell (so don't even think of calling Support if you try something and it blows up).

It was contributed by a community member and is published "as is." It seems to have worked for at least one person, and might work for you. But please be sure to test, test, test before you do anything drastic with it.




User Comments

lhaeger's picture

instead of converting to

Submitted by lhaeger on 28 February 2008 - 2:15am.

instead of converting to exe, you could as well execute "cmd.exe /c mybatch.bat"

laurabuckley's picture

I forgot to mention.....

Submitted by laurabuckley on 4 March 2008 - 3:58am.

.... the drive mappings are set to non-persistent.

net use /persistent:no

This can also be set directly in the registry.

© 2013 Novell