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

groups/roles support #44

Closed
chrgraefe opened this issue May 18, 2020 · 2 comments
Closed

groups/roles support #44

chrgraefe opened this issue May 18, 2020 · 2 comments

Comments

@chrgraefe
Copy link

Hi,

I'm using the LdapExtension with the AD flavour.
Are groups/roles supported yet?

I can't get it working. The authentication process is working well.

Is there anything I've to configure in advanced?

@chrgraefe chrgraefe changed the title groups/roles groups/roles support May 18, 2020
@chrgraefe
Copy link
Author

Okay, I found it myself.

Just add

services.AddScoped<IProfileService, LdapUserProfileService<ActiveDirectoryAppUser>>();

in ConfigureServices method in Startup.cs

@gentilegianluca
Copy link

Hi, I try with services.AddScoped<IProfileService, LdapUserProfileService<ActiveDirectoryAppUser>>(); but not work.
I need a role for each group the user belongs to.
Thanks for help.

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