Sisyphus repositório
Última atualização: 1 outubro 2023 | SRPMs: 18631 | Visitas: 37907812
en ru br
ALT Linux repositórios
S:1.6.2-alt3
5.0: 0.1.rc1.1-alt3
4.1: 0.1.rc1.1-alt3

Group :: Rede/E-Mail
RPM: roundcube

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e 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);
                 }
 
projeto & código: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
mantenedor atual: Michael Shigorin
mantenedor da tradução: Fernando Martini aka fmartini © 2009