417 |
* \todo write that function ! |
* \todo write that function ! |
418 |
*/ |
*/ |
419 |
function del_groups($id) { |
function del_groups($id) { |
420 |
|
return ldap_delete($this->conn, $this->conf['memmbattr']."=".utf8_encode($id).", ".$this->conf['groupdn']); |
421 |
} |
} |
422 |
|
|
423 |
/** gets all info about one group |
/** gets all info about one group |
457 |
$in = array(); |
$in = array(); |
458 |
foreach ($this->schema_user as $cbuff) { |
foreach ($this->schema_user as $cbuff) { |
459 |
$clabel = $cbuff['NAME']; |
$clabel = $cbuff['NAME']; |
460 |
if (is_array($fes[$clabel])) { |
if (isset($fes[$clabel]) and is_array($fes[$clabel])) { |
461 |
if (isset($fes[$clabel][1])) { |
if (isset($fes[$clabel][1])) { |
462 |
foreach ($fes[$clabel] as $ind=>$insit) { |
foreach ($fes[$clabel] as $ind=>$insit) { |
463 |
if (empty($insit) and $from and isset($from[$clabel][$ind])) { |
if (empty($insit) and $from and isset($from[$clabel][$ind])) { |
469 |
} else { |
} else { |
470 |
$in["$clabel"] = utf8_encode($fes["$clabel"][0]); |
$in["$clabel"] = utf8_encode($fes["$clabel"][0]); |
471 |
} |
} |
472 |
} elseif (isset($fes[$clabel])) { |
} elseif (isset($fes[$clabel]) and !empty($fes["$clabel"])) { |
473 |
$in["$clabel"] = utf8_encode($fes["$clabel"]); |
$in["$clabel"] = utf8_encode($fes["$clabel"]); |
474 |
} elseif ($from["$clabel"]) { |
} elseif (isset($from["$clabel"]) and !empty($from["$clabel"])) { |
475 |
$out["$clabel"] = $from["$clabel"]; |
$out["$clabel"] = $from["$clabel"]; |
476 |
} |
} |
477 |
} |
} |