Link to home
Start Free TrialLog in
Avatar of dfilldirt
dfilldirt

asked on

NT Authentication

I need to access an application from a network share that uses NT permissions for authentication.  Is there a way, by passing the domain, NT user ID and password, to run the application?  

My problem is this:  2 users share a PC.  One logins into the domain, using his user id and password.   Later on the day, the other user gets on to the PC (the original user has not logged off), and tries to access an application on a network share (thus using the original user's NT permissions).  I want to be able to head this off by authenticatin the 2nd user, so that she can access the app using her user's NT permissions).  I have written a VB app that will authenticate the user, but when trying to access the app, it is still using the original user's NT permissions.

I hope this makes sense.
Avatar of EDDYKT
EDDYKT
Flag of Canada image

use runas command
Avatar of dfilldirt
dfilldirt

ASKER

Thanks - but is there a way to use the runas command in the vb app that authenticates the user?

The question really boils down to this -

after authenticating the new user (in the vb app), I want to then be able to shell off to another application (which is located on an NT share).

Example

AppFile = "\\server\filepath\app.exe"

Shell(AppFile, vbNormalFocus)

Can I shell off to another exe located on a NT share, using the new user's authenticated NT permissions?

The answer is to have the program impersonate the person who is logged on.  If you'll give me a moment, I'll post the information for ya.

Michael E. Payne Jr.
Systems Developer
ASKER CERTIFIED SOLUTION
Avatar of EDDYKT
EDDYKT
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Yeah, like that.  I'm having trouble with the logonuser API....argh

This is why API is dangerous...you never know when its not going to work.



constantly get a FALSE returned when i try doLogon ... :o/