Changeset 5220


Ignore:
Timestamp:
11/30/11 10:14:43 (12 years ago)
Author:
clairson
Message:

Ticket #2358 - Verificar inconsistencia do usuario no bd e nao estar no ldap

Location:
trunk/expressoAdmin1_2
Files:
2 edited

Legend:

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

    r5133 r5220  
    496496                                foreach ($array_groups as $gidnumber=>$cn) 
    497497                                { 
    498                                         // O memberUid do usuário está somente no Banco, então adicionamos o memberUid no Ldap. 
     498                                        //Não foi possível encontrar o grupo do usuário, portanto excluimos o usuário(não tem inserir no grupo do Ldap se não possui grupo) 
    499499                                        if (is_null($user_info['groups_ldap'][$gidnumber])) 
    500500                                        { 
    501                                                 $this->ldap_functions->add_user2group($gidnumber, $user_info['uid']); 
    502                                                 $ea_select_user_groups_options .= "<option value=" . $gidnumber . ">" . $cn . " [" . lang('included memberuid on ldap')."]</option>"; 
    503  
     501                                                $this->db_functions->remove_user2group($gidnumber, $_GET['account_id']); 
    504502                                                if ($alert_warning == '') 
    505503                                                        $alert_warning = lang("the expressoadmin corrected the following inconsistencies") . ":\\n"; 
    506                                                 $alert_warning .= lang("included user on group") . ":\\n$cn - gidnumber: $gidnumber."; 
     504                                                $alert_warning .= lang("user excluded because the group do not was found") . ":\\n$cn - gidnumber: $gidnumber."; 
    507505                                        } 
    508                                         else 
     506                                        else                                                
    509507                                                $ea_select_user_groups_options .= "<option value=" . $gidnumber . ">" . $cn . "</option>"; 
    510508                                         
     
    518516                                        } 
    519517                                } 
    520                                  
     518                                 
    521519                                // O memberUid do usuário está somente no Ldap. 
    522520                                $groups_db = array_flip($user_info['groups']); 
Note: See TracChangeset for help on using the changeset viewer.