It has been asked, and answered for .NET, but now it\'s time to get an answer for native Win32 code:
How do i validate a Windows username and password?
There is a win32 API function called ldap_bind_s. The ldap_bind_s function authenticates a client against LDAP. See MSDN documentation for more information.