280 |
} |
} |
281 |
$i = ldap_search($this->conn, $this->conf['groupdn'], $limit, array($this->conf['membattr'])); |
$i = ldap_search($this->conn, $this->conf['groupdn'], $limit, array($this->conf['membattr'])); |
282 |
$info = ldap_get_entries($this->conn, $i); |
$info = ldap_get_entries($this->conn, $i); |
283 |
|
$f_gps = array(); |
284 |
for ($x=0; $x<$info["count"]; $x++) { |
for ($x=0; $x<$info["count"]; $x++) { |
285 |
$f_gps[] = utf8_decode($info[$x]["{$this->conf['membattr']}"][0]); |
$f_gps[] = utf8_decode($info[$x]["{$this->conf['membattr']}"][0]); |
286 |
} |
} |
287 |
return $f_gps; |
if (count($f_gps)) { |
288 |
|
return $f_gps; |
289 |
|
} else { |
290 |
|
return false; |
291 |
|
} |
292 |
} |
} |
293 |
|
|
294 |
function del_groups($id) { |
function del_groups($id) { |