AD登录C# [英] AD Login with C#

查看:105
本文介绍了AD登录C#的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好我已经问了几次这个问题。我在这里发布了它,它被删除了或因为它假设在asp论坛和asp论坛上他们说它假设是在C#论坛。这假设是在C#论坛,因为
我遇到问题的代码是C#而不是asp或html。我试图使用以下文章绑定到AD登录。如果你可以帮助很好,如果没有请不要简单地回复告诉我这属于ASP,因为再次代码
的问题是C#代码。 

Hello I have asked this question a couple of times. I posted it here and it was removed or something because its suppose to be in the asp forum and over at the asp forum they say its suppose to be in the C# forum. This is suppose to be in the C# forum because the code I am having the issue with is C# and not asp or html. I am attempting to use the following article to tie into AD for login. If you can help great if not please do not reply simply to tell me this belongs in the ASP for because again the code that is the problem is the C# code. 

我的问题是我可以使代码工作并且我正确地进行身份验证,但我只希望一个组能够对此进行身份验证,而不是我的整个AD树。有人可以告诉我如何只允许指定的组进行身份验证

My issue is I can get to code to work and I authenticate properly, but I only want one group able to authenticate to this and not my entire AD tree. Can someone please tell me how to only allow a specified group to authenticate

https://support.microsoft.com/en-us/ help / 316748 / how-to-authenticate-against-active-directory-by-using-forms-authen

https://support.microsoft.com/en-us/help/316748/how-to-authenticate-against-the-active-directory-by-using-forms-authen

推荐答案

你好Quarinteen,

Hi Quarinteen,

感谢您在此发帖,对不起,迟到的回复...

Thank you for posting here and sorry for late reply..

对于您的问题,我做了很多测试。当我是AD的用户时,我可以在任何一组AD中登录AD。我没有找到限制特定组直接登录AD的方法。

For your question, I do a lot of test. When I am a user of AD, I could login into the AD in any group of AD. I do not find the way to limit specific group to login into the AD directly.

但你可以尝试限制计算机配置。有关详细信息,您可以尝试以下方式编辑政策。

But you could try to limit in computer configuration. For more details, you could try the way below to edit the policy.

https://community.spiceworks.com/topic/126427-restrict-certain-users-from-login-on-certain-computers

最好的问候,

Wendy


这篇关于AD登录C#的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆