{"action":"opened","issue":{"url":"https://api.github.com/repos/grafana/grafana/issues/2472","labels_url":"https://api.github.com/repos/grafana/grafana/issues/2472/labels{/name}","comments_url":"https://api.github.com/repos/grafana/grafana/issues/2472/comments","events_url":"https://api.github.com/repos/grafana/grafana/issues/2472/events","html_url":"https://github.com/grafana/grafana/issues/2472","id":99733125,"number":2472,"title":"LDAP search filter needs to accept compound search filters","user":{"login":"shankarramshivram","id":2964526,"avatar_url":"https://avatars.githubusercontent.com/u/2964526?v=3","gravatar_id":"","url":"https://api.github.com/users/shankarramshivram","html_url":"https://github.com/shankarramshivram","followers_url":"https://api.github.com/users/shankarramshivram/followers","following_url":"https://api.github.com/users/shankarramshivram/following{/other_user}","gists_url":"https://api.github.com/users/shankarramshivram/gists{/gist_id}","starred_url":"https://api.github.com/users/shankarramshivram/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shankarramshivram/subscriptions","organizations_url":"https://api.github.com/users/shankarramshivram/orgs","repos_url":"https://api.github.com/users/shankarramshivram/repos","events_url":"https://api.github.com/users/shankarramshivram/events{/privacy}","received_events_url":"https://api.github.com/users/shankarramshivram/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-08-07T21:29:11Z","updated_at":"2015-08-07T21:29:11Z","closed_at":null,"body":"I was trying to put in a compound search filter  for searching users by username or email -\r\n\r\nsearch_filter = \"(|(mail=%s)(sAMAccountName=%s))\"\r\n\r\nHowever this pops up the following error -\r\n\r\n2015/08/07 21:17:11 [login.go:101 LoginPost()] [E] Error while trying to authenticate user: LDAP Result Code 201 \"\": ldap: finished compiling filter with extra at end: )\r\n\r\nIf i use only sincle search filter it works .\r\n\r\nCan we support compound filters the login page says for user login \"email or username\",\r\n\r\nwas trying to create the search filter string using this article - https://www.centos.org/docs/5/html/CDS/ag/8.0/Finding_Directory_Entries-LDAP_Search_Filters.html\r\n "}}