Ignore:
Timestamp:
08/14/08 11:38:07 (16 years ago)
Author:
niltonneto
Message:

Opção de configuração para LDAP Master e Slaves.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/preferences/changepersonaldata.php

    r100 r392  
    6262                        else 
    6363                        { 
    64                                 $ldap_conn = $GLOBALS['phpgw']->common->ldapConnect(); 
     64                                // LDAP Replication mode.  
     65                                if ( (!empty($GLOBALS['phpgw_info']['server']['ldap_master_host'])) && 
     66                                         (!empty($GLOBALS['phpgw_info']['server']['ldap_master_root_dn'])) && 
     67                                         (!empty($GLOBALS['phpgw_info']['server']['ldap_master_root_pw'])) ) 
     68                                { 
     69                                        $ldap_conn = $GLOBALS['phpgw']->common->ldapConnect( 
     70                                                                                                   $GLOBALS['phpgw_info']['server']['ldap_master_host'], 
     71                                                                                                   $GLOBALS['phpgw_info']['server']['ldap_master_root_dn'], 
     72                                                                                                   $GLOBALS['phpgw_info']['server']['ldap_master_root_pw'] 
     73                                                                                                   ); 
     74                                } 
     75                                else 
     76                                { 
     77                                        $ldap_conn = $GLOBALS['phpgw']->common->ldapConnect(); 
     78                                } 
     79                                 
    6580                                $info['telephonenumber'] = $_POST['telephonenumber']; 
    6681                                 
Note: See TracChangeset for help on using the changeset viewer.