Win32: How to validate credentials against Active Directory?

Here is Microsoft’s recommendation.

As for the other answers, I’m not really sure why you’re shooting them down. You are complaining about (relatively edge case) failures while trying to validate credentials, but if you are going to actually do something with those credentials then that operation is just going to fail anyway. If you are not going to actually do something with those credentials, then why do you need to validate them in the first place? It seems like a somewhat contrived situation, but obviously I don’t know what you’re trying to accomplish.

Leave a Comment