Adding LDAP StartTLS support
Some LDAP server do not allow authenticate with unencrypted password.
This patch is adding the StartTLS support which takes care of the
encryption.

In order to enable the StartTLS, go to "System Settings" and select the
"Enable StartTLS" in the Authentication section. Then make sure that you
add your LDAP certificate into the Java keystore:

$ keytool -import \
          -file /etc/pki/tls/certs/cacert.pem \
          -alias myName \
          -keystore /var/lib/gitbucket/keystore

You can list all keys from the keystore like this:

$ keytool -list -keystore /var/lib/gitbucket/keystore
1 parent 34853d0 commit f3113397867160e21eece60839d7583a379e6012
@Jiri Tyr Jiri Tyr authored on 1 Nov 2013
Showing 6 changed files
View
contrib/redhat/gitbucket.conf
View
contrib/redhat/gitbucket.init
View
src/main/scala/app/SystemSettingsController.scala
View
src/main/scala/service/SystemSettingsService.scala
View
src/main/scala/util/LDAPUtil.scala
View
src/main/twirl/admin/system.scala.html