{"comment":{"url":"https://api.github.com/repos/gogits/gogs/comments/13266433","html_url":"https://github.com/gogits/gogs/commit/2bc3e83e1ce89a6c250116216a93da3a401127db#commitcomment-13266433","id":13266433,"user":{"login":"SergioBenitez","id":1480321,"avatar_url":"https://avatars.githubusercontent.com/u/1480321?v=3","gravatar_id":"","url":"https://api.github.com/users/SergioBenitez","html_url":"https://github.com/SergioBenitez","followers_url":"https://api.github.com/users/SergioBenitez/followers","following_url":"https://api.github.com/users/SergioBenitez/following{/other_user}","gists_url":"https://api.github.com/users/SergioBenitez/gists{/gist_id}","starred_url":"https://api.github.com/users/SergioBenitez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SergioBenitez/subscriptions","organizations_url":"https://api.github.com/users/SergioBenitez/orgs","repos_url":"https://api.github.com/users/SergioBenitez/repos","events_url":"https://api.github.com/users/SergioBenitez/events{/privacy}","received_events_url":"https://api.github.com/users/SergioBenitez/received_events","type":"User","site_admin":false},"position":7,"line":null,"path":"modules/auth/ldap/ldap.go","commit_id":"2bc3e83e1ce89a6c250116216a93da3a401127db","created_at":"2015-09-16T16:03:52Z","updated_at":"2015-09-16T16:03:52Z","body":"To be a little clearer, I should note that the use of the \"User Filter\" setting when using simple LDAP differs slightly than when using bind DN LDAP. With a bind DN, it's used to filter the results down to a single user AND to restrict which users may log in based on some criteria. With simple auth, it's only used to determine if a user is allowed to log in based on some search criteria, but it does *not* identify _which_ user is logging in; that's what the UserDN is for. All of this is explained in a bit more detail in the README. "}}