{"action":"closed","issue":{"url":"https://api.github.com/repos/samilliken/openDCIM/issues/956","repository_url":"https://api.github.com/repos/samilliken/openDCIM","labels_url":"https://api.github.com/repos/samilliken/openDCIM/issues/956/labels{/name}","comments_url":"https://api.github.com/repos/samilliken/openDCIM/issues/956/comments","events_url":"https://api.github.com/repos/samilliken/openDCIM/issues/956/events","html_url":"https://github.com/samilliken/openDCIM/issues/956","id":258482067,"number":956,"title":"Strings comparison ldap authentication","user":{"login":"wilf1rst","id":6798484,"avatar_url":"https://avatars1.githubusercontent.com/u/6798484?v=4","gravatar_id":"","url":"https://api.github.com/users/wilf1rst","html_url":"https://github.com/wilf1rst","followers_url":"https://api.github.com/users/wilf1rst/followers","following_url":"https://api.github.com/users/wilf1rst/following{/other_user}","gists_url":"https://api.github.com/users/wilf1rst/gists{/gist_id}","starred_url":"https://api.github.com/users/wilf1rst/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wilf1rst/subscriptions","organizations_url":"https://api.github.com/users/wilf1rst/orgs","repos_url":"https://api.github.com/users/wilf1rst/repos","events_url":"https://api.github.com/users/wilf1rst/events{/privacy}","received_events_url":"https://api.github.com/users/wilf1rst/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-09-18T13:36:21Z","updated_at":"2018-04-25T12:05:36Z","closed_at":"2018-04-25T12:05:36Z","author_association":"NONE","body":"It seems that the LDAP authentication is based on strings comparison that it's case sensitive.\r\nSo you have to encode your \"Group Distinguished Names\" configuration with the exact case base on your LDAP server (in the case of an Active Directory server, I don't know for the others LDAP server implementation) if you want the LDAP auth work.\r\n\r\nI'm not a php developper but is there a way to trim all the involved strings variables with something like the strtolower() function so the comparison can be case insensitive ?\r\n\r\nThe LDAP query itself is not case sensitive in the use case of an Active Directory server as LDAP backend auth so I had to dump all variables in the log to clearly understand why my LDAP query work but not the auth itself. Can you had something about in the LDAP documentation of the project ?\r\n\r\nAlso can you had the option you have to add and replace to the apache conf to replace the basic auth in the LDAP documentation ? \r\n\r\nHere's my vhost conf:\r\n```\r\n<Directory /opt/openDCIM/opendcim>\r\n    Options all\r\n    AllowOverride All       \r\n    Require all granted\r\n</Directory>\r\n```\r\n\r\nThanks :)\r\n"}}
{"actor":{"display_login":"wilpig"}}