Windows programming

Moderators: None (Apply to moderate this forum)
Number of threads: 3670
Number of posts: 9122

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
mapping problem .. Posted by smile032 on 14 Jan 2005 at 10:38 PM
hi ..

I have a problem about mapping a share folder which is on server. the share folder has passwords and username to be accessed. when I map the folder for the first time, it is run ok, I was asked for username and password. but when I disconnect it and map to the share folder again, It was mapped directly n neither username nor password was asked. my question is how to avoid it from getting access without being asked for username n password. I mean that whenever someone want to access the share folder, he must enter the username and password. any idea for this ??

thanks in advance
Report
Re: mapping problem .. Posted by HEP on 16 Jan 2005 at 5:00 AM
It's no problem that you are not asked for the password a second time because other users who want to connect are still asked for it. If someone else also works on your computer then logoff before you let him. Then he will be asked for the password even if you were already connected to the share folder.
Report
Re: mapping problem .. Posted by smile032 on 16 Jan 2005 at 5:15 PM
: It's no problem that you are not asked for the password a second time because other users who want to connect are still asked for it. If someone else also works on your computer then logoff before you let him. Then he will be asked for the password even if you were already connected to the share folder.
:

Ehm.. ok I see. but how can windows know that I have connected to it for the second time, so that I was not asked for password again? does windows cache the password?? if so, how can I disable the cached password?? I need to be asked for passwords for the second time map, without logging it out first. may b some help for me?

thanks in advance
Report
Re: mapping problem .. Posted by HEP on 21 Jan 2005 at 7:20 AM
Found this with google:

Credential Manager is a new SSO solution that Microsoft offers in Windows Server 2003 and Windows XP to provide a secured store for credential information. It allows you to input user name and passwords for various network resources and applications once, and then have the system automatically supply that information for subsequent visits to those resources without your intervention.

One example is the command:
net use * \\computer_name\share_name /user:user_name password /savecred

Credential Manager stores user's credentials in the following files:

- Enterprise Credential Set:
\Documents and Settings\%Username%\Application Data\Microsoft\Credentials\%UserSID%\Credentials

- Local Credential Set:
\Documents and Settings\%Username%\Local Settings\Application Data\Microsoft\Credentials\%UserSID%\Credentials

On WindowsXP, the application "Stored User Names and Passwords", that can be found under Start-> Settings-> Control Panel-> User Accounts-> %Account% -> Manage my network passwords, allows you to manage this kind of credentials.


Report
Re: mapping problem .. Posted by smile032 on 2 Feb 2005 at 4:53 AM
thanks for the information.. but this is not what I want to find. I want the system not to save/cache the username and password ...
Report
Re: mapping problem .. Posted by smile032 on 2 Feb 2005 at 5:03 AM
hmm.. just now I find that after I disconnect a mapped drive and precisely map again to the same server, no authentication required. But if I wait for 1-2 minute, an anthentication is required again. Hmm.. What happens in the 1-2 minute ?? (Thinking...)



 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.