Login in in vb6 app using NT user and password 
Author Message
 Login in in vb6 app using NT user and password

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



Thu, 03 Apr 2003 03:00:00 GMT  
 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



Thu, 03 Apr 2003 03:00:00 GMT  
 Login in in vb6 app using NT user and password

Try LogonUser function from advapi32.dll

Dragos


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



Fri, 04 Apr 2003 09:25:04 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Login in using user/password

2. Login in using user/password

3. NH: Need to have user login with their NT login

4. Using NT security and user SID/login name

5. Using NT security and user SID/login name

6. API Call for NT Login and Password

7. Retrieving NT Password for Login Name

8. Printing with CR7 using a VB6 app and Win NT

9. DirectoryEntry Set User Login Password

10. HELP:LOGIN DIALOG BOX USER/PASSWORD

11. HELP:LOGIN DIALOG BOX USER/PASSWORD

12. Verify the user password after login

 

 
Powered by phpBB® Forum Software