Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsVB SyntaxEnterprise DevelopmentDatabase AccessControlsCOMWin APICrystal ReportDeploymentGeneralGeneral 2
Related Topics
VB.NET / ASP.NETMS SQL ServerMS AccessOther Database ProductsMore Topics ...

VB Forum / COM / January 2005



Tip: Looking for answers? Try searching our database.

Validating Windows Users in the Security Account Manager

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
cMcCarthy - 25 Jan 2005 21:54 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
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)
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.