IdentityServer4.LdapExtension icon indicating copy to clipboard operation
IdentityServer4.LdapExtension copied to clipboard

Wrong AD user returns token in Docker container

Open hernancantori opened this issue 3 years ago • 2 comments

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

hernancantori avatar Apr 12 '21 21:04 hernancantori

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/)

Nordes avatar Apr 13 '21 01:04 Nordes

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.

hernancantori avatar Apr 13 '21 18:04 hernancantori