Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Filter usergroups #23

Open
andhure opened this issue Mar 7, 2016 · 5 comments
Open

Filter usergroups #23

andhure opened this issue Mar 7, 2016 · 5 comments

Comments

@andhure
Copy link

andhure commented Mar 7, 2016

Hello,

Is there way to filter the usergroups so that only required usergroup is received? For example, if I want usergroups of a user that contains "ABC_", can I provide some options to retrieve only those? Right now, it has to be retrieved and filtered and it can cause performance issues if large groups are present and there are frequent calls?

Regards
Ajith

@RyanHirsch
Copy link

We are seeing similar issues right now for users with membership to many groups. It looks like each group is being looked up which is resulting in our app effectively DoS'ing our domain controller.
Is there any work around that can be done at the application level, or is our best bet to issue a LDAP query directly instead of leveraging "retrieveGroups"?

Thank you

@abbr
Copy link
Owner

abbr commented Aug 18, 2016

I haven't found a suitable win api that accepts group filters. Even though I can do a post-retrieval filter in NodeSSPI, I don't think it helps solving your problem so yes, the best bet for now is disabling retrieveGroups and installing a LDAP module to filter.

@happykmm
Copy link

@abbr How to use LDAP module? Could you please give a demo?

Thanks!

@abbr
Copy link
Owner

abbr commented Sep 18, 2016

@suro1995 , I haven't tried but take a look at node-activedirectory

@abbr abbr closed this as completed Sep 18, 2016
@abbr abbr reopened this Sep 18, 2016
@happykmm
Copy link

@abbr Thanks for providing the module so much!
I also found out an alternative way using powershell: https://technet.microsoft.com/en-us/library/ee617193.aspx

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants