File: acl.xml

package info (click to toggle)
otrs2-doc 20100124-1
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 11,184 kB
  • ctags: 1
  • sloc: xml: 21,123; sh: 126; makefile: 12
file content (228 lines) | stat: -rw-r--r-- 7,127 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
<?xml version='1.0' encoding='ISO-8859-1'?>
<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
  "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd">
<!-- $Id: acl.xml,v 1.2 2007/04/20 13:09:44 cs Exp $ -->

<chapter id="acl">
<title>Access Control Lists (ACLs)</title>

<para>
Seit OTRS 2.0 knnen Access Control Lists (ACLs) verwendet werden, um den
Zugriff auf Tickets, Module, Queues, usw. zu steuern bzw. um in bestimmten
Situationen Aktionen auf Tickets (schlieen, verschieben, usw.) zu
beeinflussen. ACLs knnen als Ergnzung zum bestehenden Berechtigungssystem
der

<link linkend="adminarea-roles">
Rollen
</link>

und

<link linkend="adminarea-groups">
Gruppen
</link>

verwendet werden, mit ACLs lassen sich , basierend auf Ticket-Attributen,
rudimentre Workflows innerhalb des Systems abbilden.
</para>

<para>
ACLs knnen noch nicht ber das

<link linkend="adminarea-sysconfig">
SysConfig-Interface
</link>

erstellt werden, sie mssen direkt in die Datei
<filename>Kernel/Config.pm</filename> eingetragen werden. Im folgenden
einige Beispiele:
</para>

<para>
<example id='acl-move'>
<title>ACL, die das Verschieben von Tickets in eine Queue nur bei einer
Ticket-Prioritt von 5 erlaubt</title>

<programlisting>
    # ticket acl
    $Self-&gt;{TicketAcl}-&gt;{'ACL-Name-2'} = {
        # match properties
        Properties =&gt; {
            # current ticket match properties
            Ticket =&gt; {
                Queue =&gt; ['Raw'],
                Priority =&gt; ['5 very high'],
            }
        },
        # return possible options (white list)
        Possible =&gt; {
            # possible ticket options (white list)
            Ticket =&gt; {
                Queue =&gt; ['Alert'],
            },
        },
    };
</programlisting>
</example>
</para>

<para>
<example id="acl-close">
<title>ACL, die das Schlieen von
Tickets in der raw Queue verbietet und den Schlieen-Schalter ausblendet</title>

<programlisting>
    $Self-&gt;{TicketAcl}-&gt;{'ACL-Name-1'} = {
        # match properties
        Properties =&gt; {
            # current ticket match properties
            Ticket =&gt; {
                Queue =&gt; ['Raw'],
            }
        },
        # return possible options (white list)
        Possible =&gt; {
            # possible ticket options (white list)
            Ticket =&gt; {
                State =&gt; ['new', 'open', 'pending reminder'],
            },
            # possible action options
            Action =&gt; {
                AgentTicketLock =&gt; 1,
                AgentTicketZoom =&gt; 1,
                AgentTicketClose =&gt; 0,
                AgentTicketPending =&gt; 1,
                AgentTicketNote =&gt; 1,
                AgentTicketHistory =&gt; 1,
                AgentTicketPriority =&gt; 1,
                AgentTicketFreeText =&gt; 1,
                AgentTicketHistory =&gt; 1,
                AgentTicketCompose =&gt; 1,
                AgentTicketBounce =&gt; 1,
                AgentTicketTicketPrint =&gt; 1,
                AgentTicketForward =&gt; 1,
                AgentTicketTicketLink =&gt; 1,
                AgentTicketPrint =&gt; 1,
                AgentTicketPhone =&gt; 1,
                AgentTicketCustomer =&gt; 1,
                AgentTicketOwner =&gt; 1,
            },
        },
    };
</programlisting>
</example>
</para>

<para>
<example id="acl-state">
<title>ACL, die den Status fr alle Agenten entfernt und Ihn nur noch fr
eine Gruppe zur Verfgung stellt</title>

<programlisting>
    $Self-&gt;{TicketAcl}-&gt;{'ACL-Name-5'} = {
        # match properties
        Properties =&gt; {
            # current ticket match properties (match always)
        },
        # return possible options
        PossibleNot =&gt; {
            # possible ticket options
            Ticket =&gt; {
                State =&gt; ['closed successful'],
            },
        },
    };
</programlisting>
</example>
</para>

<para>
Im folgenden eine Liste aller Parameter, die fr ACLs verwendet werden knnen:
</para>

<para>
<programlisting>
    # ticket acl
    $Self-&gt;{TicketAcl}-&gt;{'ACL-Name-Test'} = {
        # match properties
        Properties =&gt; {
            # current action match properties
            Frontend =&gt; {
                Action =&gt; ['AgentTicketPhone', 'AgentTicketEmail'],
            },
            # current user match properties
            User =&gt; {
                Group_rw =&gt; [
                    'hotline',
                ],
            },
            # current user match properties
            Ticket =&gt; {
                Queue =&gt; ['Raw'],
                State =&gt; ['new', 'open'],
                Priority =&gt; ['some priority'],
                Lock =&gt; ['lock'],
                CustomerID =&gt; ['some id'],
                CustomerUserID =&gt; ['some id'],
                TicketFreeKey1 =&gt; ['some key'],
                TicketFreeKey2 =&gt; ['some key'],
                # ...
                TicketFreeKey8 =&gt; ['some key'],
                TicketFreeText1 =&gt; ['some value'],
                TicketFreeText2 =&gt; ['some value'],
                # ...
                TicketFreeText8 =&gt; ['some value'],
            }
        },
        # return possible options (white list)
        Possible =&gt; {
            # possible ticket options (white list)
            Ticket =&gt; {
                Queue =&gt; ['Hotline', 'Koordination'],
                State =&gt; => ['some state'],
                Priority =&gt; ['5 very high'],
                TicketFreeKey1 =&gt; ['some key'],
                TicketFreeKey2 =&gt; ['some key'],
                # ...
                TicketFreeKey8 =&gt; ['some key'],
                TicketFreeText1 =&gt; ['some value'],
                TicketFreeText2 =&gt; ['some value'],
                # ...
                TicketFreeText8 =&gt; ['some value'],
            },
            # possible action options (white list)
            Action =&gt; {
                AgentTicketLock =&gt; 1,
                AgentTicketZoom =&gt; 1,
                AgentTicketClose =&gt; 1,
                AgentTicketPending =&gt; 0,
                AgentTicketNote =&gt; 1,
                AgentTicketHistory =&gt; 0,
                AgentTicketPriority =&gt; 1,
                AgentTicketFreeText =&gt; 0,
                AgentTicketHistory =&gt; 1,
                AgentTicketCompose =&gt; 1,
                AgentTicketBounce =&gt; 1,
                AgentTicketTicketPrint =&gt; 0,
                AgentTicketForward =&gt; 1,
                AgentTicketTicketLink =&gt; 1,
                AgentTicketPrint =&gt; 1,
                AgentTicketPhone =&gt; 1,
                AgentTicketCustomer =&gt; 1,
                AgentTicketOwner =&gt; 0,
            },
        },
        # remove options (black list)
        PossibleNot =&gt; {
            # possible ticket options (black list)
            Ticket =&gt; {
                Queue =&gt; ['Hotline', 'Koordination'],
                State =&gt; ['closed', 'removed'],
            },
        },
    };
</programlisting>
</para>

</chapter>