Solved

Custom Gina and Mapping Network Drives Problem

Posted on 2006-11-06
9
292 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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

[Webinar] How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them. Thursday, July 13, 2017 10:00 A.M. PDT

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Templates For Beginners Or How To Encourage The Compiler To Work For You Introduction This tutorial is targeted at the reader who is, perhaps, familiar with the basics of C++ but would prefer a little slower introduction to the more ad…
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 goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…

628 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