summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 55b59c2)
raw | patch | inline | side by side (parent: 55b59c2)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 30 Nov 2006 06:47:07 +0000 (06:47 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 30 Nov 2006 06:47:07 +0000 (06:47 +0000) |
Replaced ldap->search with get_list, to ensure that we only see those printers that we are able to read ( acls).
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@5257 594d385d-05f5-0310-b6e9-bd551577e9d8
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@5257 594d385d-05f5-0310-b6e9-bd551577e9d8
include/functions.inc | patch | blob | history |
diff --git a/include/functions.inc b/include/functions.inc
index 1e0bafeb17985454101ae9b14774b29e242a40a9..58942bd7852960ba30c399e363dcd9b0a1ce0264 100644 (file)
--- a/include/functions.inc
+++ b/include/functions.inc
{
global $config;
$res = array();
-
- /* Merge in printers from LDAP */
- $ldap= $config->get_ldap_link();
- $ldap->cd ($config->current['BASE']);
- $ldap->search('(objectClass=gotoPrinter)', array('cn'));
- while($attrs = $ldap->fetch()){
+ $data = get_list('(objectClass=gotoPrinter)',"printer",$config->current['BASE'], array('cn'));
+ foreach($data as $attrs ){
$res[$attrs['cn'][0]] = $attrs['cn'][0];
}
-
return $res;
}