Hi,
I want to validate Users in the Windows SAM through
a Visual Basic 6 application.
Here is the requirement:
1. Post a Logon Dialog Box (Username, Password, Domain) in a VB6 Form
2. Test the Information entered against a valid windows user account
Return True if the User Exists and the Password is correct.
Return False if the information supplied is incorrect.
If True - What Group is the User a Member of
Essentially, we want to use the windows user manager to manage users
and test these against these accounts in the SAM without having to
actually log a user into or out of Windows for in application
security.
Please Help if you can - Example Code would be greatly appreciated.
Otherwise, if anyone knows of an ActiveX control to do this that would
work as well.
Thank you and Best Regards
Paul Clement - 26 Jan 2005 17:21 GMT
¤ Hi,
¤
¤ I want to validate Users in the Windows SAM through
¤ a Visual Basic 6 application.
¤
¤ Here is the requirement:
¤
¤ 1. Post a Logon Dialog Box (Username, Password, Domain) in a VB6 Form
¤ 2. Test the Information entered against a valid windows user account
¤
¤ Return True if the User Exists and the Password is correct.
¤ Return False if the information supplied is incorrect.
¤
¤ If True - What Group is the User a Member of
¤
¤ Essentially, we want to use the windows user manager to manage users
¤ and test these against these accounts in the SAM without having to
¤ actually log a user into or out of Windows for in application
¤ security.
¤
¤ Please Help if you can - Example Code would be greatly appreciated.
¤ Otherwise, if anyone knows of an ActiveX control to do this that would
¤ work as well.
¤
¤ Thank you and Best Regards
Is this an NT or Active Directory domain?
Paul ~~~ pclement@ameritech.net
Microsoft MVP (Visual Basic)
Chris McCarthy - 26 Jan 2005 17:34 GMT
We are using Windows 2000 and Windows XP in 2 flavours
In basic systems, we use Win2K Professional as a workgroup, and in more
advanced systems, we use Win2K server with either a workgroup or active
directory domain.
I was looking at SSPI or Win32 API LogonUser()
Please Advise.
Thanks
Paul Clement - 27 Jan 2005 15:21 GMT
¤ We are using Windows 2000 and Windows XP in 2 flavours
¤
¤ In basic systems, we use Win2K Professional as a workgroup, and in more
¤ advanced systems, we use Win2K server with either a workgroup or active
¤ directory domain.
¤
¤ I was looking at SSPI or Win32 API LogonUser()
¤
For domain authentication you should be able to use ADSI (Reference is Active DS Type Library):
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/adsi/adsi/iadso
pendsobject.asp
Paul ~~~ pclement@ameritech.net
Microsoft MVP (Visual Basic)