{"action":"created","issue":{"url":"https://api.github.com/repos/gravitee-io/issues/issues/1907","repository_url":"https://api.github.com/repos/gravitee-io/issues","labels_url":"https://api.github.com/repos/gravitee-io/issues/issues/1907/labels{/name}","comments_url":"https://api.github.com/repos/gravitee-io/issues/issues/1907/comments","events_url":"https://api.github.com/repos/gravitee-io/issues/issues/1907/events","html_url":"https://github.com/gravitee-io/issues/issues/1907","id":408757175,"node_id":"MDU6SXNzdWU0MDg3NTcxNzU=","number":1907,"title":"Ldap provider issue - \"Invalid or unknown user\" while requesting for a new token","user":{"login":"kgladosz","id":14069909,"node_id":"MDQ6VXNlcjE0MDY5OTA5","avatar_url":"https://avatars2.githubusercontent.com/u/14069909?v=4","gravatar_id":"","url":"https://api.github.com/users/kgladosz","html_url":"https://github.com/kgladosz","followers_url":"https://api.github.com/users/kgladosz/followers","following_url":"https://api.github.com/users/kgladosz/following{/other_user}","gists_url":"https://api.github.com/users/kgladosz/gists{/gist_id}","starred_url":"https://api.github.com/users/kgladosz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kgladosz/subscriptions","organizations_url":"https://api.github.com/users/kgladosz/orgs","repos_url":"https://api.github.com/users/kgladosz/repos","events_url":"https://api.github.com/users/kgladosz/events{/privacy}","received_events_url":"https://api.github.com/users/kgladosz/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2019-02-11T12:22:04Z","updated_at":"2019-02-11T12:25:36Z","closed_at":null,"author_association":"NONE","body":"Hello.\r\nI have a problem regarding LDAP provider in Gravitee.io Access Management 2.2.0.\r\n\r\nI am trying to get an access token using LDAP provider. \r\nI made the same configuration (URL, username, password) as in my Spring Boot application (so I assume it is fine).\r\nI am requesting for a token via postman : http://{gravitee_api_am_host}/{domain}/oauth/token?client_id=client_id&client_secret=client_secret&grant_type=password&username=John Doe&password=admin&scope=openid \r\nAll the time I am getting \r\n{\r\n    \"error\": \"invalid_grant\",\r\n    \"error_description\": \"Invalid or unknown user\"\r\n}\r\nI am not sure what is wrong. I assume that this is not a connection problem.\r\nWhen it comes to configuration, I am thinking about 'User search filter' - I am not really sure what I should put there.\r\nThis is my example LDIF file:\r\n\r\n# Organizational Units\r\ndn: ou=groups,dc=example,dc=org\r\nobjectclass: top\r\nobjectclass: organizationalUnit\r\nou: groups\r\n\r\ndn: ou=people,dc=example,dc=org\r\nobjectclass: top\r\nobjectclass: organizationalUnit\r\nou: people\r\n\r\n# Create People\r\ndn: uid=john,ou=people,dc=example,dc=org\r\nobjectclass: top\r\nobjectclass: person\r\nobjectclass: organizationalPerson\r\nobjectclass: inetOrgPerson\r\ncn: John Doe\r\nsn: John\r\nuid: john\r\nuserPassword: admin\r\n\r\ndn: uid=jihn,ou=people,dc=example,dc=org\r\nobjectclass: top\r\nobjectclass: person\r\nobjectclass: organizationalPerson\r\nobjectclass: inetOrgPerson\r\ncn: Jihn Die\r\nsn: Jihn\r\nuid: jihn\r\nuserPassword: admin\r\n\r\ndn: uid=jahn,ou=people,dc=example,dc=org\r\nobjectclass: top\r\nobjectclass: person\r\nobjectclass: organizationalPerson\r\nobjectclass: inetOrgPerson\r\ncn: Jahn Dae\r\nsn: Jahn\r\nuid: jahn\r\nuserPassword: admin\r\n\r\n# Create Groups\r\ndn: cn=developers,ou=groups,dc=example,dc=org\r\nobjectclass: top\r\nobjectclass: groupOfUniqueNames\r\ncn: developers\r\nou: developer\r\nuniqueMember: uid=john,ou=people,dc=example,dc=org\r\nuniqueMember: uid=jihn,ou=people,dc=example,dc=org\r\n\r\ndn: cn=managers,ou=groups,dc=example,dc=org\r\nobjectclass: top\r\nobjectclass: groupOfUniqueNames\r\ncn: managers\r\nou: manager\r\nuniqueMember: uid=jahn,ou=people,dc=example,dc=org\r\n\r\nI am using Apache Directory Studio.\r\nI will just add, that everything works correctly while I am requesting for a token via my spring boot app.\r\nCan you help me with the user search filter issue? Or you can tell me that something else is wrong?\r\nThanks inadvance!\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/gravitee-io/issues/issues/comments/462309879","html_url":"https://github.com/gravitee-io/issues/issues/1907#issuecomment-462309879","issue_url":"https://api.github.com/repos/gravitee-io/issues/issues/1907","id":462309879,"node_id":"MDEyOklzc3VlQ29tbWVudDQ2MjMwOTg3OQ==","user":{"login":"guddutopper","id":24631016,"node_id":"MDQ6VXNlcjI0NjMxMDE2","avatar_url":"https://avatars0.githubusercontent.com/u/24631016?v=4","gravatar_id":"","url":"https://api.github.com/users/guddutopper","html_url":"https://github.com/guddutopper","followers_url":"https://api.github.com/users/guddutopper/followers","following_url":"https://api.github.com/users/guddutopper/following{/other_user}","gists_url":"https://api.github.com/users/guddutopper/gists{/gist_id}","starred_url":"https://api.github.com/users/guddutopper/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/guddutopper/subscriptions","organizations_url":"https://api.github.com/users/guddutopper/orgs","repos_url":"https://api.github.com/users/guddutopper/repos","events_url":"https://api.github.com/users/guddutopper/events{/privacy}","received_events_url":"https://api.github.com/users/guddutopper/received_events","type":"User","site_admin":false},"created_at":"2019-02-11T12:25:36Z","updated_at":"2019-02-11T12:25:36Z","author_association":"NONE","body":"or maybe this client was created in a different realms and there was no user on it ?"}}
{"actor":{"display_login":"guddutopper"}}