{"action":"created","issue":{"url":"https://api.github.com/repos/munkireport/munkireport-php/issues/1075","repository_url":"https://api.github.com/repos/munkireport/munkireport-php","labels_url":"https://api.github.com/repos/munkireport/munkireport-php/issues/1075/labels{/name}","comments_url":"https://api.github.com/repos/munkireport/munkireport-php/issues/1075/comments","events_url":"https://api.github.com/repos/munkireport/munkireport-php/issues/1075/events","html_url":"https://github.com/munkireport/munkireport-php/issues/1075","id":321101790,"number":1075,"title":"AD Auth doesn't work after upgrade from 2.X to 3.X","user":{"login":"DonHansDampf","id":10983729,"avatar_url":"https://avatars2.githubusercontent.com/u/10983729?v=4","gravatar_id":"","url":"https://api.github.com/users/DonHansDampf","html_url":"https://github.com/DonHansDampf","followers_url":"https://api.github.com/users/DonHansDampf/followers","following_url":"https://api.github.com/users/DonHansDampf/following{/other_user}","gists_url":"https://api.github.com/users/DonHansDampf/gists{/gist_id}","starred_url":"https://api.github.com/users/DonHansDampf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DonHansDampf/subscriptions","organizations_url":"https://api.github.com/users/DonHansDampf/orgs","repos_url":"https://api.github.com/users/DonHansDampf/repos","events_url":"https://api.github.com/users/DonHansDampf/events{/privacy}","received_events_url":"https://api.github.com/users/DonHansDampf/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-05-08T09:04:37Z","updated_at":"2018-05-18T10:33:01Z","closed_at":null,"author_association":"NONE","body":"Greetings,\r\n\r\njust installed MunkiReport 3.X on a new virtual machine with the same basic settings as my MunkiReport 2.X machine (CentOS 7). Sadly i cannot get AD Auth to work again, even with the same settings. Did something change?\r\n\r\nUsed config.php (i disabled SELinux and firewalld just to be sure...):\r\n```\r\n$conf['auth']['auth_AD']['account_suffix'] = NULL;\r\n$conf['auth']['auth_AD']['base_dn'] = 'DC=ad,DC=domain,DC=com'; //set to NULL to auto-detect\r\n$conf['auth']['auth_AD']['domain_controllers'] = array('ad.domain.com'); //can be an array of servers\r\n$conf['auth']['auth_AD']['admin_username'] = 'readonly@domain.com' ; //if needed to perform the search\r\n$conf['auth']['auth_AD']['admin_password'] = 'PASSWORD'; //if needed to perform the search\r\n$conf['auth']['auth_AD']['mr_allowed_groups'] = array('Group1','Group2'); //case sensitive\r\n```\r\n\r\nWe use `user@domain.com` to login. This returns the following error: \r\n```\r\n    An error occurred while contacting AD\r\n    No LDAP query results for filter: [(&(objectclass=person)(objectcategory=person)(anr=user@domain.com))] in: [DC=ad,DC=domain,DC=com]\r\n```\r\n\r\nWhen i execute this ldap-request by hand, i also don't receive any results (seems like Windows Server 2012 AD doesn't include the `mail` or `userPrincipleName` Attribute in the anr). What request was used in MunkiReport 2.X?\r\n\r\nWhen i try to use `$conf['auth']['auth_AD']['account_suffix'] = '@domain.com';` i receive:\r\n```\r\n    An error occurred while contacting AD\r\n    Invalid credentials\r\n```\r\nNo matter if i login as `user` or `user@domain.com`. "},"comment":{"url":"https://api.github.com/repos/munkireport/munkireport-php/issues/comments/390166875","html_url":"https://github.com/munkireport/munkireport-php/issues/1075#issuecomment-390166875","issue_url":"https://api.github.com/repos/munkireport/munkireport-php/issues/1075","id":390166875,"user":{"login":"bochoven","id":1429002,"avatar_url":"https://avatars0.githubusercontent.com/u/1429002?v=4","gravatar_id":"","url":"https://api.github.com/users/bochoven","html_url":"https://github.com/bochoven","followers_url":"https://api.github.com/users/bochoven/followers","following_url":"https://api.github.com/users/bochoven/following{/other_user}","gists_url":"https://api.github.com/users/bochoven/gists{/gist_id}","starred_url":"https://api.github.com/users/bochoven/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bochoven/subscriptions","organizations_url":"https://api.github.com/users/bochoven/orgs","repos_url":"https://api.github.com/users/bochoven/repos","events_url":"https://api.github.com/users/bochoven/events{/privacy}","received_events_url":"https://api.github.com/users/bochoven/received_events","type":"User","site_admin":false},"created_at":"2018-05-18T10:33:01Z","updated_at":"2018-05-18T10:33:01Z","author_association":"CONTRIBUTOR","body":"It looks like ADLDAP2 is complaining about your admin credentials"}}
{"actor":{"display_login":"bochoven"}}