summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: bfd886a)
raw | patch | inline | side by side (parent: bfd886a)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 21 Jan 2010 15:41:06 +0000 (15:41 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 21 Jan 2010 15:41:06 +0000 (15:41 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@15238 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-plugins/goto/addons/goto/events/eventTargetSystems-filter.tpl | patch | blob | history | |
gosa-plugins/goto/addons/goto/events/eventTargetSystems-filter.xml | patch | blob | history |
diff --git a/gosa-plugins/goto/addons/goto/events/eventTargetSystems-filter.tpl b/gosa-plugins/goto/addons/goto/events/eventTargetSystems-filter.tpl
index 2f09c5868fdde0b2d8cb2146dcd3bd3a43e9f155..b3c1158822efad0992e5e47d5e9be8c5faff35a4 100644 (file)
{$SERVER} <LABEL for='SERVER'>{t}Show servers{/t}</LABEL><br>
{$WORKSTATION} <LABEL for='WORKSTATION'>{t}Show workstations{/t}</LABEL><br>
{$TERMINAL} <LABEL for='TERMINAL'>{t}Show terminals{/t}</LABEL><br>
+ {$BYIP} <LABEL for='TERMINAL'>{t}Filter by IP address range{/t}</LABEL><br>
<div style="border-top:1px solid #AAAAAA"></div>
{$SCOPE}
{$NAME}
</td>
</tr>
+ <tr>
+ <td>
+ <label for="IPSTART">
+ <img src="images/lists/search.png" align=middle> IP Start
+ </label>
+ </td>
+ <td>
+ {$IPSTART}
+ </td>
+ </tr>
+ <tr>
+ <td>
+ <label for="IPSTOP">
+ <img src="images/lists/search.png" align=middle> IP Stop
+ </label>
+ </td>
+ <td>
+ {$IPSTOP}
+ </td>
+ </tr>
</table>
<table summary="" width="100%" style="background:#EEEEEE;border-top:1px solid #B0B0B0;">
diff --git a/gosa-plugins/goto/addons/goto/events/eventTargetSystems-filter.xml b/gosa-plugins/goto/addons/goto/events/eventTargetSystems-filter.xml
index 2c635a4fbf71a7563532eb141d28c2e572e57a2a..609dde5d0f95f8dd792c744569a21f73ac1c942e 100644 (file)
<search>
<query>
- <backend>LDAP</backend>
- <filter>(&(|$SERVER $WORKSTATION $TERMINAL ) $NAME)</filter>
+ <backend>SystemByIp</backend>
+ <filter>(&(|$SERVER $WORKSTATION $TERMINAL ) $NAME) $IPSTART $IPSTOP $BYIP</filter>
<attribute>dn</attribute>
<attribute>objectClass</attribute>
<attribute>cn</attribute>
<attribute>description</attribute>
+ <attribute>macAddress</attribute>
+ <attribute>ipHostNumber</attribute>
</query>
<scope>auto</scope>
</search>
<set>(cn=*$*)</set>
<alphabet>true</alphabet>
<autocomplete>
- <backend>LDAP</backend>
+ <backend>SystemByIp</backend>
<filter>(cn=*$NAME*)</filter>
<attribute>cn</attribute>
<frequency>0.5</frequency>
</autocomplete>
</element>
+ <element>
+ <type>textfield</type>
+ <tag>IPSTART</tag>
+ <size>20</size>
+ <maxlength>60</maxlength>
+ <default>0.0.0.0</default>
+ <unset></unset>
+ <set>__IPSTART__=*$*__</set>
+ <alphabet>true</alphabet>
+ <autocomplete>
+ <backend>LDAP</backend>
+ <filter>__IPSTART__=*$IPSTART*__</filter>
+ <attribute>cn</attribute>
+ <frequency>0.5</frequency>
+ <characters>3</characters>
+ </autocomplete>
+ </element>
+
+ <element>
+ <type>textfield</type>
+ <tag>IPSTOP</tag>
+ <size>20</size>
+ <maxlength>60</maxlength>
+ <default>255.255.255.255</default>
+ <unset></unset>
+ <set>__IPSTOP__=*$*__</set>
+ <alphabet>true</alphabet>
+ <autocomplete>
+ <backend>LDAP</backend>
+ <filter>__IPSTOP__=*$IPSTOP*__</filter>
+ <attribute>cn</attribute>
+ <frequency>0.5</frequency>
+ <characters>3</characters>
+ </autocomplete>
+ </element>
+
<element>
<type>checkbox</type>
<tag>SERVER</tag>
<set>(objectClass=gotoTerminal)</set>
</element>
+ <element>
+ <type>checkbox</type>
+ <tag>BYIP</tag>
+ <default>false</default>
+ <set>__FilterByIP__</set>
+ <unset></unset>
+ </element>
+
</filterdef>