Changeset 396 for trunk/expressoAdmin1_2/inc/class.ldap_functions.inc.php
- Timestamp:
- 08/14/08 11:45:39 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/expressoAdmin1_2/inc/class.ldap_functions.inc.php
r379 r396 1619 1619 return false; 1620 1620 } 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 } 1621 1638 1622 1639 function rename_uid($uid, $new_uid) … … 1640 1657 $return['new_dn'] = $rdn . ',' . $parent; 1641 1658 1642 if (!@ldap_rename($this->ldap, $dn, $rdn, $parent, false))1659 if (!@ldap_rename($this->ldap, $dn, $rdn, $parent, true)) 1643 1660 { 1644 1661 $return['status'] = false;
Note: See TracChangeset
for help on using the changeset viewer.