| | |
| | | fixes: |
| | | - Fixed Gitblit Authority startup failures when using alternate user services (issue-280) |
| | | - Manually redirect after branch deletion (issue 282) |
| | | - Fixed anonymous LDAP connections (issue-297) |
| | | - Improved branch deletion-reflog interaction |
| | | - Encode page url parameters as UTF-8 |
| | | - Encode filename for binary files on RawPage according to browser |
| | |
| | | - Doug Ayers |
| | | - Ori Livneh |
| | | - Florian Zschocke |
| | | - Tito Nobre |
| | | settings: |
| | | - { name: 'web.activityDurationMaximum', defaultValue: 30 } |
| | | - { name: 'realm.htpasswd.userFile', defaultValue: '${baseFolder}/htpasswd' } |
| | |
| | | if (ldapPort == -1) // Default Port
|
| | | ldapPort = 636;
|
| | |
|
| | | SSLUtil sslUtil = new SSLUtil(new TrustAllTrustManager()); |
| | | return new LDAPConnection(sslUtil.createSSLSocketFactory(), ldapUrl.getHost(), ldapPort, bindUserName, bindPassword);
|
| | | LDAPConnection conn;
|
| | | SSLUtil sslUtil = new SSLUtil(new TrustAllTrustManager());
|
| | | if (StringUtils.isEmpty(bindUserName) && StringUtils.isEmpty(bindPassword)) {
|
| | | conn = new LDAPConnection(sslUtil.createSSLSocketFactory(), ldapUrl.getHost(), ldapPort);
|
| | | } else {
|
| | | conn = new LDAPConnection(sslUtil.createSSLSocketFactory(), ldapUrl.getHost(), ldapPort, bindUserName, bindPassword);
|
| | | }
|
| | | return conn;
|
| | | } else {
|
| | | if (ldapPort == -1) // Default Port
|
| | | ldapPort = 389;
|
| | | |
| | | LDAPConnection conn = new LDAPConnection(ldapUrl.getHost(), ldapPort, bindUserName, bindPassword);
|
| | |
|
| | | LDAPConnection conn;
|
| | | if (StringUtils.isEmpty(bindUserName) && StringUtils.isEmpty(bindPassword)) {
|
| | | conn = new LDAPConnection(ldapUrl.getHost(), ldapPort); |
| | | } else {
|
| | | conn = new LDAPConnection(ldapUrl.getHost(), ldapPort, bindUserName, bindPassword); |
| | | }
|
| | |
|
| | | if (ldapUrl.getScheme().equalsIgnoreCase("ldap+tls")) {
|
| | | SSLUtil sslUtil = new SSLUtil(new TrustAllTrustManager());
|