takezoe/gitbucket — pull request #298 by yjkony (2014-03-04 02:46:29+00:00)
Title: Improve LDAP authentication (Disable mail resolve and Additional filter condition)

## Changes
I added two features to LDAP authentication.

1. Disable mail resolve: No mail attribute check in LDAP authentication. Mail address is set by account settings. (related to issue #253)
2. Additional filter condition: LDAP user search with User name attribute filter and other filter conditions.

## Detail of "Disable mail resolve"

1. Add "Disable mail resolve" checkbox to "System Settings" page.
2. Not check mail attribute in LDAP authentication and not update mail address in ACOUNT table automatically, when "Disable mail resolve" checkbox is ON.
3. Register dummy mail address (e.g. username@ldap-devnull), when "FIRST" sign-in.
4. Redirect to "Account Settings" page and urge to register the collect mail address, when sign-in with dummy mail address.
5. Remove dummy mail address users from mail recipients list.