[英]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. 我有一个Windows服务器,该服务器运行我们的团队基础服务器和我自己编写的.NET-Webservice。 The windows server acts inside of a domain.
Windows服务器在域内部运行。 My webserver gets now the username and password for other computers inside of the domain.
我的Web服务器现在获取域内其他计算机的用户名和密码。 How can I authenticate them on my webservice?
如何在我的Web服务上对它们进行身份验证? I want that only users, which are part of the domain, are able to work with the webservice.
我希望只有属于域的用户才能使用Web服务。
If you get the username and password as parameter to the API you can use the method described here: 如果将用户名和密码作为API的参数,则可以使用此处描述的方法:
Validate a username and password against Active Directory? 根据Active Directory验证用户名和密码?
If it is a IIS hosted Application you can configured it in the web.config (windows authentication) 如果它是IIS托管的应用程序,则可以在web.config中进行配置(Windows身份验证)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.