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

Wrong AD user returns token in Docker container #66

Open
hernancantori opened this issue Apr 12, 2021 · 2 comments
Open

Wrong AD user returns token in Docker container #66

hernancantori opened this issue Apr 12, 2021 · 2 comments

Comments

@hernancantori
Copy link

In local environment, tokens are generated sucessfully for existing AD users. When token is requerested for unexisting user or wrong password entered, server logs invalid_username_or_password, which is correct.

After publishing server in a docker container and requesting a token through connect/token endpoint, any value entered in username and password fields generates a token.

Any idea what I could be doing wrong?

Package used are the following:

"IdentityServer.LdapExtension" Version="2.1.49"
"IdentityServer4" Version="2.4.0"

Local environment:
image

Docker container
image

@Nordes
Copy link
Owner

Nordes commented Apr 13, 2021

Probably you've done some wrong configuration when registering the service (startup.cs). On my end it seems to work ok. I didn't investigate much on your issue. I can try later. I am trying to upgrade for the 4.1.2 and i<ll see after.

Note that I don't have much time to maintain this project, so contributions are welcome.

Also, IdentityServer4 will be available only until nov. 2022 (see official website https://identityserver4.readthedocs.io/en/latest/)

@hernancantori
Copy link
Author

hernancantori commented Apr 13, 2021

Thanks for the quick response. After digging depper into the issue, I found out that the server is throwing an exception in the RegisterLdapConfigurations method, because apparently the configuration (IConfiguration configuration) is null.

Im checking if the dockerfile is well formed and if AppSettings.json file is being published inside the docker container.

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