Ignore:
Timestamp:
08/14/08 11:45:39 (16 years ago)
Author:
niltonneto
Message:

Modificações referente a opção de configurar um ldap_master
no setup do Expresso, usado somente para escrita.

File:
1 edited

Legend:

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

    r379 r396  
    16191619            return false; 
    16201620        } 
     1621 
     1622        function check_rename_new_uid($uid) 
     1623        { 
     1624                if ( !$ldapMasterConnect = $this->ldapMasterConnect() ) 
     1625                        return false; 
     1626                 
     1627                $justthese = array("dn"); 
     1628                $filter="(&(phpgwAccountType=u)(uid=$uid))"; 
     1629                 
     1630                $search = ldap_search($ldapMasterConnect, $GLOBALS['phpgw_info']['server']['ldap_context'], $filter, $justthese); 
     1631                $count_entries = @ldap_count_entries($ldapMasterConnect, $search); 
     1632                 
     1633                if ($count_entries) 
     1634                        return false; 
     1635                         
     1636                return true; 
     1637        } 
    16211638         
    16221639        function rename_uid($uid, $new_uid) 
     
    16401657                $return['new_dn'] = $rdn . ',' . $parent; 
    16411658                         
    1642                 if (!@ldap_rename($this->ldap, $dn, $rdn, $parent, false)) 
     1659                if (!@ldap_rename($this->ldap, $dn, $rdn, $parent, true)) 
    16431660                { 
    16441661                        $return['status'] = false; 
Note: See TracChangeset for help on using the changeset viewer.