
Login in in vb6 app using NT user and password
You can obtain the current logged in user name by using the WNetGetUser API.
For good reasons, there is no corresponding call to get the password.
However, you MAY be able work out a solution using RpcBindingSetAuthInfo.
However, since the user is already logged on with a set of credentials - are
you sure you want to re-validate them? If your application is controlling
access to a database you'd be better off using the database user ID and
passwords (if not using integrated security).
HTH,
Tore.
Quote:
> Hi,
> I'd like to know whether there is a way to use the log in data from an
NT -
> username and password ( not extracting the password) but just use these
data
> to have a username and pasword for my app, so a user has to log in in the
> application the same way he does while loggin in ithe NT network
> Thanks Alain