Exemplo n.º 1
0
function all()
{
    $ldap = new clladp();
    $ous = $ldap->hash_get_ou();
    if (!is_array($ous)) {
        write_syslog("No organizations found, abort exporting OBM v2 users", __FILE__);
        die;
    }
    while (list($num, $organization) = each($ous)) {
        SyncOrg($organization);
    }
    $obm2 = new OBM2();
    $obm2->CleanOBMGhostAccount();
}
Exemplo n.º 2
0
function DeleteContact($userobm_id)
{
    $sql = "DELETE FROM UserObm WHERE userobm_id='{$userobm_id}'";
    $q = new mysql();
    if (!$q->QUERY_SQL($sql, "obm2")) {
        write_syslog("{$q->mysql_error}", __FILE__);
        die;
    }
    write_syslog("Deleting {$userobm_id} success", __FILE__);
    $obm2 = new OBM2();
    $obm2->CleanOBMGhostAccount();
}