From 0a7a95b71450ced1ac65f69a078f920ebcf08337 Mon Sep 17 00:00:00 2001 From: Aleksander Machniak Date: Thu, 18 May 2017 11:08:31 +0200 Subject: [PATCH] Support LDAP GSSAPI authentication (#5703) Requires https://git.kolab.org/rPNL1d87f98d300645e15b7ad2819fcffb19010a060f --- CHANGELOG | 1 + program/lib/Roundcube/rcube_ldap.php | 9 +++++---- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/CHANGELOG b/CHANGELOG index 54bde1580..9ad457f0b 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,6 +1,7 @@ CHANGELOG Roundcube Webmail =========================== +- Support LDAP GSSAPI authentication (#5703) - Allow contacts without an email address (#5079) - Localized timezone selector (#4983) - Update to TinyMCE 4.5.7 diff --git a/program/lib/Roundcube/rcube_ldap.php b/program/lib/Roundcube/rcube_ldap.php index e166df3b2..ab8d14fb5 100644 --- a/program/lib/Roundcube/rcube_ldap.php +++ b/program/lib/Roundcube/rcube_ldap.php @@ -282,9 +282,10 @@ class rcube_ldap extends rcube_addressbook $this->readonly = false; } - $bind_pass = $this->prop['bind_pass']; - $bind_user = $this->prop['bind_user']; - $bind_dn = $this->prop['bind_dn']; + $bind_pass = $this->prop['bind_pass']; + $bind_user = $this->prop['bind_user']; + $bind_dn = $this->prop['bind_dn']; + $auth_method = $this->prop['auth_method']; $this->base_dn = $this->prop['base_dn']; $this->groups_base_dn = $this->prop['groups']['base_dn'] ?: $this->base_dn; @@ -420,7 +421,7 @@ class rcube_ldap extends rcube_addressbook } } - if (empty($bind_pass)) { + if (empty($bind_pass) && strncasecmp($method, 'GSSAPI', 6) != 0) { $this->ready = true; } else {