Changeset 176


Ignore:
Timestamp:
02/26/08 17:03:27 (16 years ago)
Author:
niltonneto
Message:

Ticket 145.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/expressoMail1_2/inc/class.ldap_functions.inc.php

    r114 r176  
    11<?php                    
    2 include_once("class.imap_functions.inc.php");                    
     2include_once("class.imap_functions.inc.php"); 
     3 
     4function ldapRebind($ldap_connection, $ldap_url) 
     5{ 
     6        @ldap_bind($ldap_connection, $_SESSION['phpgw_info']['expressomail']['ldap_server']['acc'],$_SESSION['phpgw_info']['expressomail']['ldap_server']['pw']); 
     7} 
     8                         
    39class ldap_functions 
    410{ 
     
    1521                ldap_set_option($this->ds, LDAP_OPT_PROTOCOL_VERSION, 3); 
    1622                ldap_set_option($this->ds, LDAP_OPT_REFERRALS, $refer); 
    17                 ldap_bind($this->ds, $_SESSION['phpgw_info']['expressomail']['ldap_server']['acc'],$_SESSION['phpgw_info']['expressomail']['ldap_server']['pw']);                                
     23                if ($refer) 
     24                { 
     25                        ldap_set_rebind_proc($this->ds, ldapRebind); 
     26                } 
     27                @ldap_bind($this->ds, $_SESSION['phpgw_info']['expressomail']['ldap_server']['acc'],$_SESSION['phpgw_info']['expressomail']['ldap_server']['pw']);                               
    1828        } 
    1929 
     
    91101                        } 
    92102                        $info = ldap_get_entries($this->ds, $sr); 
    93                          
     103 
    94104                        $tmp = array(); 
    95105                        for ($i=0; $i<$info["count"]; $i++) 
Note: See TracChangeset for help on using the changeset viewer.