Jump to content

Use Current User Credentials?


Recommended Posts

Working on a project, been doing some searching, coming up with nothing so far other than possibly calling the dll secur32.dll.

Has anyone been able to find a way to get the current user's credentials to authenticate for a share. I am not interested in finding out someone's password or anything. I am just trying to use the currently logged on user's cached credentials to access something the already have access to, just not prompt them for a password.

Thanks if you have any insight on this.

Link to comment
Share on other sites

The currently logged-in user's credentials are used for share access unless you specify otherwise.

This works with DriveMapAdd as well as file access using UNC paths.

If you plan to access non-windows shares, you should prompt the user for their credentials at runtime.

[font="Tahoma"]"Tougher than the toughies and smarter than the smarties"[/font]

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...