重新访问登录后确定您的ActiveDirectory组成员身份 [英] Re-Visit Determing your ActiveDirectory Group Membership after Login

查看:74
本文介绍了重新访问登录后确定您的ActiveDirectory组成员身份的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

重新访问解决方案:



为什么不让用户输入组名ABC \TI0022&在接收您的同时可以轻松获得群组名称。否则无法获取组名,因为正如RyanDev所说,如果您有30个AD组,则需要检查每个组中的用户详细信息,如果用户属于多个组,那么您将如何处理该情况。



新手到Active Directory并将其用作为内部Web应用程序创建安全无缝的登录过程。您希望用户对事物非常容易。上述解决方案声明用户应提供组名称ABC\TI0022。我的问题是,拥有一个允许他们选择组名的接口并允许代码验证它们是否属于组选择会更好。此外,这将使系统具有灵活性,允许个人处于多个组中。感谢您的任何反馈。



感谢和亲切的问候

解决方案

您可以使用 System.DirectoryServices [ ^ ]运行LDAP查询的命名空间。用户可以属于多个组。如果您不熟悉它,我建议使用Google搜索示例LDAP查询。


为什么不让用户输入组名如ABC \ TI0022并且在接收时您可以轻松获取组名称。否则无法获取组名称,因为正如RyanDev所说,如果您有30个AD组,则需要检查每个组中的用户详细信息,如果用户属于多个组,那么您将如何处理该情况。

Re-Visit Solution:

Why not you ask user to enter the group name like "ABC\TI0022" & while receiving you can easily get the Group name. Otherwise it is not possible to get the group name because as RyanDev said, if you have 30 AD group you need to check the user details in every group and if user belongs to more than one group then how you handle that situation.

Newbie to Active Directory and using it as away to create a secure and seamless login process for internal web application. You want thing to be very easy for the user. The solution above stated that the user should provide the group name like "ABC\TI0022". My question is would it be better to have a interface which allow them to select their group name and allow the code to verify if they belong in the group select. Also, this would give the system flexible to allow individual to be in multiple groups. Thank for any feedback in advance.

Thank and Kind Regards

解决方案

You can use the System.DirectoryServices[^] namespace to run LDAP queries. A user could belong to multiple groups. I'd suggest googling for sample LDAP queries if you are unfamiliar with them.


why not you ask user to enter the group name like "ABC\TI0022" & while receiving you can easily get the Group name. Otherwise it is not possible to get the group name because as RyanDev said, if you have 30 AD group you need to check the user details in every group and if user belongs to more than one group then how you handle that situation.


这篇关于重新访问登录后确定您的ActiveDirectory组成员身份的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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