{"action":"created","issue":{"url":"https://api.github.com/repos/spring-projects/spring-security/issues/5105","repository_url":"https://api.github.com/repos/spring-projects/spring-security","labels_url":"https://api.github.com/repos/spring-projects/spring-security/issues/5105/labels{/name}","comments_url":"https://api.github.com/repos/spring-projects/spring-security/issues/5105/comments","events_url":"https://api.github.com/repos/spring-projects/spring-security/issues/5105/events","html_url":"https://github.com/spring-projects/spring-security/issues/5105","id":304502207,"number":5105,"title":"Problem with Active Directory 2016","user":{"login":"pornoob","id":6501343,"avatar_url":"https://avatars1.githubusercontent.com/u/6501343?v=4","gravatar_id":"","url":"https://api.github.com/users/pornoob","html_url":"https://github.com/pornoob","followers_url":"https://api.github.com/users/pornoob/followers","following_url":"https://api.github.com/users/pornoob/following{/other_user}","gists_url":"https://api.github.com/users/pornoob/gists{/gist_id}","starred_url":"https://api.github.com/users/pornoob/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pornoob/subscriptions","organizations_url":"https://api.github.com/users/pornoob/orgs","repos_url":"https://api.github.com/users/pornoob/repos","events_url":"https://api.github.com/users/pornoob/events{/privacy}","received_events_url":"https://api.github.com/users/pornoob/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-03-12T19:07:13Z","updated_at":"2018-03-15T20:20:39Z","closed_at":null,"author_association":"NONE","body":"### Summary\r\n\r\nFirst of all sorry for my English abilities. I'm a freshman yet.\r\nAD 2016 doesn't implements RFC 822 for field userPrincipalName (username@domain)\r\n\r\n### Actual Behavior\r\n\r\nThe default searchFilter is:\r\n(&(objectClass=user)(userPrincipalName={0}))\r\nbut AD 2016 has no data in userPrincipalName... then I send my \"own\" search filter instead of default with:\r\n(sAMAccountName={0})\r\n\r\nWhen you defines the AuthenticationProvider with a domain and an URL, It always use the method \"createBindPrincipal\" for the username and \"{0}\" will be (username@domain) and It is different to the \"sAMAccountName\".\r\n\r\nIf you send a \"null\" domain \"createBindPrincipal\" will return (username) as expected, although the \"contextFactory\" will throws an exception in \"createContext\" method.\r\n\r\n### Expected Behavior\r\n\r\nActually I don't know the best solution for this, but I expected configuring my domain, my URL and an account wich those executes \"doAuthentication\" succesfully.\r\n\r\n### Configuration\r\n\r\nI have a Java config. I don't know if I might put my code here.  But my code words under previous versions of active directory like this link:\r\nhttps://msdn.microsoft.com/en-us/library/ms680857(v=vs.85).aspx\r\n\r\n### Version\r\n\r\nGradle Var:\r\nspringSecurityLdapVersion = \"4.2.3.RELEASE\""},"comment":{"url":"https://api.github.com/repos/spring-projects/spring-security/issues/comments/373509951","html_url":"https://github.com/spring-projects/spring-security/issues/5105#issuecomment-373509951","issue_url":"https://api.github.com/repos/spring-projects/spring-security/issues/5105","id":373509951,"user":{"login":"pornoob","id":6501343,"avatar_url":"https://avatars1.githubusercontent.com/u/6501343?v=4","gravatar_id":"","url":"https://api.github.com/users/pornoob","html_url":"https://github.com/pornoob","followers_url":"https://api.github.com/users/pornoob/followers","following_url":"https://api.github.com/users/pornoob/following{/other_user}","gists_url":"https://api.github.com/users/pornoob/gists{/gist_id}","starred_url":"https://api.github.com/users/pornoob/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pornoob/subscriptions","organizations_url":"https://api.github.com/users/pornoob/orgs","repos_url":"https://api.github.com/users/pornoob/repos","events_url":"https://api.github.com/users/pornoob/events{/privacy}","received_events_url":"https://api.github.com/users/pornoob/received_events","type":"User","site_admin":false},"created_at":"2018-03-15T20:20:39Z","updated_at":"2018-03-15T20:20:39Z","author_association":"NONE","body":"I have updated it to:\r\nspringSecurityLdapVersion = \"5.0.3.RELEASE\"\r\nwith no differences."}}
{"actor":{"display_login":"pornoob"}}