Solved

Custom Gina and Mapping Network Drives Problem

Posted on 2006-11-06
9
275 Views
Last Modified: 2008-03-17
Hi,

I have written my own custom GINA componet and every works fine on all operating systems apart from Win2K.  The componet itself works OK, but I have scripts that map drives etc on a  users logon.  These drives no longer map when a user logs on, I have checked and the scripts are OK and seem to run.

Any ideas?

0
Comment
Question by:lee_ingram
  • 3
  • 3
9 Comments
 
LVL 86

Expert Comment

by:jkr
ID: 17882266
What error codes are you getting?
0
 
LVL 39

Expert Comment

by:itsmeandnobodyelse
ID: 17883329
How do you make the mapping? With the 'net use' or the 'subst' command? Do you use network drives and/or shares?

You might switch between these different mappings and try if the other works. Are there any long directory names or names with spaces or non-ascii involved?

Regards, Alex




0
 
LVL 1

Author Comment

by:lee_ingram
ID: 17884324
Im not sure  how the mapping are made at this is done within the Networking department.  I have just been told that the shares and long directory names etc dont work with the custom gina.  They work find on windows 2003 but not w2k.
0
Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

 
LVL 1

Author Comment

by:lee_ingram
ID: 17884329
There are not error codes, but the drives dont map.
0
 
LVL 39

Expert Comment

by:itsmeandnobodyelse
ID: 17885473
>>>> I have just been told that the shares and long directory names etc dont work

Please post one example of a script that doesn't work. Generally, W2k and XP are not so much different that a mapping could fail that works on XP (there are more reasons for other way round). I assume that the scripts check for XP OS and because of that it failed.

Regards, Alex
0
 
LVL 1

Author Comment

by:lee_ingram
ID: 17887766
Hi,

The scripts on the w2k box work prefectly until I install my custom gina component, when you then reboot the box the mapped drives simply disappear and then we have error messages saying that it can find certain files within the script.  There errors messages are simply file not found because the script accesses a file that it on a mapped drive that has failed to be mapped.

So as far as I can see its the custom gina on a w2k box that is some how causes problems with mapping drives.

Thanks
0
 
LVL 39

Accepted Solution

by:
itsmeandnobodyelse earned 500 total points
ID: 17888025
>>>> the box the mapped drives simply disappear

drives can be mapped by command 'net use' or command 'subst'. Then, the windows explorer can map drives that were defined in Tools\Map Drives...

I assume you refer to the latter what would mean that your gina doesn't invoke the explorer's drive mappings. Unfortunately, I have only a weak idea why it works on XP and fails on W2k (I assume it won't work with NT4.0 also)  On XP, if you kill the explorer process, the desktop - which is one window of the explorer - will vanish only for a short time. Then, a new explorer was invoked by the operation system. If you do the same on W2k or NT, the desktop keeps blank and you have to start a new explorer yourself. So XP seems to use an explorer which is integrated than in previous versions and what might include that it restores the explorer driver mappings associated to the user. As told that is only a guess ... and I don't know if it is possible on win2k to refresh the explorer's drive mappings programmatically (you could spot them in the registry and invoke an appropriate mapping script).

Maybe the following workaround is easier where you simply add the needed mappings in your scripts if they don't already exist:

REM map drive x
if not exist x:\*.* net use x: \\server\share

or alternatively when referring to local paths

REM map drive y
if not exist y:\*.* subst y: c:\anysub_path

Regards, Alex

0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

This article will show you some of the more useful Standard Template Library (STL) algorithms through the use of working examples.  You will learn about how these algorithms fit into the STL architecture, how they work with STL containers, and why t…
IntroductionThis article is the second in a three part article series on the Visual Studio 2008 Debugger.  It provides tips in setting and using breakpoints. If not familiar with this debugger, you can find a basic introduction in the EE article loc…
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.

746 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now