From: hickert Date: Tue, 30 Mar 2010 12:50:53 +0000 (+0000) Subject: Fixed sambaAccount filter settings. #closes 920 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=0dccddd5f7bd798e77c547aa56979bb3e6dc1c07;p=gosa.git Fixed sambaAccount filter settings. #closes 920 -Winstations are visible again git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6@17394 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-plugins/systems/admin/systems/class_filterSYSTEMS.inc b/gosa-plugins/systems/admin/systems/class_filterSYSTEMS.inc index 945e845a5..603dd1319 100644 --- a/gosa-plugins/systems/admin/systems/class_filterSYSTEMS.inc +++ b/gosa-plugins/systems/admin/systems/class_filterSYSTEMS.inc @@ -37,7 +37,7 @@ class filterSYSTEMS { // Detect SAMBA machines }elseif(in_array('sambaSamAccount', $entry['objectClass']) && preg_match("/\$$/", $entry['cn'][0])){ - $entries[$key]['objectClass'][] = 'FAKE_OC_winstation'; + $entries[$key]['objectClass'][] = 'sambaSamAccount'; // Detect Workstation & templates }elseif(in_array('gotoWorkstation', $entry['objectClass'])){ diff --git a/gosa-plugins/systems/admin/systems/class_systemManagement.inc b/gosa-plugins/systems/admin/systems/class_systemManagement.inc index 0238d71f7..e0fe964ca 100644 --- a/gosa-plugins/systems/admin/systems/class_systemManagement.inc +++ b/gosa-plugins/systems/admin/systems/class_systemManagement.inc @@ -1304,7 +1304,7 @@ class systemManagement extends management "aclClass" => "phoneGeneric", "aclCategory" => "phone"), - "FAKE_OC_winstation" => array( + "sambaSamAccount" => array( "ou" => get_winstations_ou(), "plugClass" => "wingeneric", "sendEvents" => TRUE, diff --git a/gosa-plugins/systems/admin/systems/system-filter.tpl b/gosa-plugins/systems/admin/systems/system-filter.tpl index 32ada1500..c6d80b9d5 100644 --- a/gosa-plugins/systems/admin/systems/system-filter.tpl +++ b/gosa-plugins/systems/admin/systems/system-filter.tpl @@ -22,7 +22,7 @@ {if $USE_goFonHardware} {$PHONE} {t}Show phones{/t}
{/if} - {if $USE_FAKE_OC_winstation} + {if $USE_sambaSamAccount} {$WINSTATION} {t}Show windows based workstations{/t}
{/if} {if $USE_ieee802Device} diff --git a/gosa-plugins/systems/admin/systems/system-filter.xml b/gosa-plugins/systems/admin/systems/system-filter.xml index 4a452ccef..8b8bb099b 100644 --- a/gosa-plugins/systems/admin/systems/system-filter.xml +++ b/gosa-plugins/systems/admin/systems/system-filter.xml @@ -14,6 +14,7 @@ dn objectClass cn + uid description gotoMode FAIstate @@ -31,12 +32,13 @@ 60 - (cn=*$*) + (|(cn=*$*)(uid=*$*)) false SYSTEMS - (cn=*$NAME*) + (|(cn=*$NAME*)(uid=*$NAME*)) cn + uid 0.5 3 @@ -55,6 +57,7 @@ SYSTEMS (gotoLastUser=*USER*) cn + uid 0.5 3 @@ -105,7 +108,7 @@ WINSTATION true - (&(objectClass=sambaSamAccount)(cn=*\$)) + (&(objectClass=sambaSamAccount)(uid=*\$)) diff --git a/gosa-plugins/systems/admin/systems/system-list.xml b/gosa-plugins/systems/admin/systems/system-list.xml index ae16c7a2b..a65df630b 100644 --- a/gosa-plugins/systems/admin/systems/system-list.xml +++ b/gosa-plugins/systems/admin/systems/system-list.xml @@ -93,7 +93,7 @@ - FAKE_OC_winstation + sambaSamAccount winworkstation wingeneric plugins/systems/images/select_winstation.png