How to Authenticate LDAP in .NET

后端 未结 3 1622
甜味超标
甜味超标 2020-12-29 08:42

I would like to authenticate username and passwords for my application on a windows operating system with any directory service. For example it could be microsoft active di

3条回答
  •  既然无缘
    2020-12-29 09:24

    We had a website that needed to authenticate a username and password against domain credentials and used the LogonUser API function. Use it for a network logon (one of its arguments is logon type) and all it does is validate credentials, it doesn't do things like load the users profile that runas would. Only caveat is that the service account does require sufficient access to call LogonUser. I suggest you check the MSDN documentation for what that access is though because it varies by OS.

提交回复
热议问题