Re: Active Directory lookup

2024-05-23 Thread Greg Keogh via ozdotnet
I have found the answer. I record it here in case it helps someone in the future. While avoiding AD, if you simply want to check if an account exists either locally or in the default domain do this: uint sidSize = 0; uint domainSize = 0; int accountType = 0; bool b1 = LookupAccountName

Active Directory lookup

2024-05-23 Thread Greg Keogh via ozdotnet
TGIF! I just spiced-up an ASP.NET app so that it uses DirectorySearch.FindOne to either verify a login user account exists or to authenticate. It runs perfectly on my work PC, bu