Sisyphus repository
Last update: 25 january 2021 | SRPMs: 17782 | Visits: 20135843
en ru br
ALT Linux repos
S:1.4.10-alt1
5.0: 0.1.rc1.1-alt3
4.1: 0.1.rc1.1-alt3

Group :: Networking/Mail
RPM: roundcube

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Patch: roundcube-1.2.4-sso-alt.patch
Download


diff --git a/roundcubemail/program/lib/Roundcube/rcube_ldap.php b/roundcubemail/program/lib/Roundcube/rcube_ldap.php
index 6778d9b..abccfc2 100644
--- a/roundcubemail/program/lib/Roundcube/rcube_ldap.php
+++ b/roundcubemail/program/lib/Roundcube/rcube_ldap.php
@@ -285,6 +285,7 @@ class rcube_ldap extends rcube_addressbook
             $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,10 +421,12 @@ class rcube_ldap extends rcube_addressbook
                 }
             }
 
-            if (empty($bind_pass)) {
+            if (empty($bind_pass) and (strcmp($auth_method,GSSAPI) !== 0)) {
                 $this->ready = true;
             }
             else {
+                if (!empty($_SERVER['KRB5CCNAME'])){
+                    putenv("KRB5CCNAME={$_SERVER['KRB5CCNAME']}");}
                 if (!empty($bind_dn)) {
                     $this->ready = $this->ldap->bind($bind_dn, $bind_pass);
                 }
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin