Subversion Repositories c2i-annu

Rev

Rev 63 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 63 Rev 72
Line 54... Line 54...
54
    $filter="(cn=pupils)";
54
    $filter="(cn=pupils)";
55
    $ldap_search_result=ldap_list($ldap_res,$search_dn,$filter);
55
    $ldap_search_result=ldap_list($ldap_res,$search_dn,$filter);
56
    $info=ldap_get_entries($ldap_res,$ldap_search_result);
56
    $info=ldap_get_entries($ldap_res,$ldap_search_result);
57
    for ($i=1; $i<$info['0']['member']['count'];$i++) {
57
    for ($i=1; $i<$info['0']['member']['count'];$i++) {
58
    //  ldap_delete($ldap_res,$info['0']['member'][$i]);
58
    //  ldap_delete($ldap_res,$info['0']['member'][$i]);
59
        $to_delete['member']=$info['0']['member'][$i];
59
      $to_delete['member']=$info['0']['member'][$i];
60
        ldap_mod_del($ldap_res,$info['0']['dn'],$to_delete);
60
      ldap_mod_del($ldap_res,$info['0']['dn'],$to_delete);
61
    }
61
    }
62
   
62
   
63
    $search_dn=$c2i_ldap['groups_dn'];
63
    $search_dn=$c2i_ldap['groups_dn'];
64
    $filter="(cn=trash)";
64
    $filter="(cn=trash)";
65
    $ldap_search_result=ldap_list($ldap_res,$search_dn,$filter);
65
    $ldap_search_result=ldap_list($ldap_res,$search_dn,$filter);