简体   繁体   中英

How can I authenticate to a domain?

I've got a windows server which runs our team foundation server and my self written .NET-Webservice. The windows server acts inside of a domain. My webserver gets now the username and password for other computers inside of the domain. How can I authenticate them on my webservice? I want that only users, which are part of the domain, are able to work with the webservice.

If you get the username and password as parameter to the API you can use the method described here:

Validate a username and password against Active Directory?

If it is a IIS hosted Application you can configured it in the web.config (windows authentication)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM