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

Improve performance when roleFormat == none #552

Open
ehestigoni opened this issue Sep 20, 2017 · 5 comments
Open

Improve performance when roleFormat == none #552

ehestigoni opened this issue Sep 20, 2017 · 5 comments

Comments

@ehestigoni
Copy link

Hi all,
I've noticed that when roleFormat is set to 'none' waffle fetches the user groups through windowsIdentity.getGroups() but the info is not used anywhere.

In a system with a domain controller, the getGroups task can be very expensive.

Should we getGroups only when roleFormat is different from 'none'?

@hazendaz
Copy link
Member

@ehestigoni Can you point to where that is in the code for quick reference here?

@ehestigoni
Copy link
Author

Sure.

this.groups = GenericWindowsPrincipal.getGroups(windowsIdentity.getGroups());

for (final IWindowsAccount group : windowsIdentity.getGroups()) {

@ehestigoni
Copy link
Author

@hazendaz (Just in case you did not get buzz from the post above).
Cheers.

@hazendaz
Copy link
Member

hazendaz commented Sep 25, 2017 via email

@hazendaz
Copy link
Member

@dblock Does this issues ring any bells for you?

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

No branches or pull requests

2 participants