~ubuntu-branches/debian/squeeze/sympa/squeeze

« back to all changes in this revision

Viewing changes to doc/html/node20.html

  • Committer: Bazaar Package Importer
  • Author(s): Christian Perrier
  • Date: 2007-01-20 18:09:28 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20070120180928-0e42mbwg87mlo44y
Tags: 5.2.3-1.2
* Non-maintainer upload to re-fix l10n issues
* As debconf-updatepo was not run in previous versions, the French
  translation was outdated. Hence fix it.
* Remove several duplicate spaces in the debconf templates

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
2
2
 
3
 
<!--Converted with jLaTeX2HTML 2002 (1.62) JA patch-1.4
4
 
patched version by:  Kenshi Muto, Debian Project.
5
 
LaTeX2HTML 2002 (1.62),
 
3
<!--Converted with LaTeX2HTML 2002-2-1 (1.70)
6
4
original version by:  Nikos Drakos, CBLU, University of Leeds
7
5
* revised and updated by:  Marcus Hennecke, Ross Moore, Herb Swan
8
6
* with significant contributions from:
9
7
  Jens Lippmann, Marek Rouchal, Martin Wilck and others -->
10
8
<HTML>
11
9
<HEAD>
12
 
<TITLE>19. Using Sympa with LDAP</TITLE>
13
 
<META NAME="description" CONTENT="19. Using Sympa with LDAP">
 
10
<TITLE>19. Lists Families</TITLE>
 
11
<META NAME="description" CONTENT="19. Lists Families">
14
12
<META NAME="keywords" CONTENT="sympa">
15
13
<META NAME="resource-type" CONTENT="document">
16
14
<META NAME="distribution" CONTENT="global">
17
15
 
18
16
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
19
 
<META NAME="Generator" CONTENT="jLaTeX2HTML v2002 JA patch-1.4">
 
17
<META NAME="Generator" CONTENT="LaTeX2HTML v2002-2-1">
20
18
<META HTTP-EQUIV="Content-Style-Type" CONTENT="text/css">
21
19
 
22
20
<LINK REL="STYLESHEET" HREF="sympa.css">
29
27
 
30
28
<BODY TEXT="#000000" BGCOLOR="#ffffff">
31
29
<!--Navigation Panel-->
32
 
<A NAME="tex2html1186"
 
30
<A NAME="tex2html1310"
33
31
  HREF="node21.html">
34
32
<IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="next.png"></A> 
35
 
<A NAME="tex2html1180"
 
33
<A NAME="tex2html1304"
36
34
  HREF="sympa.html">
37
35
<IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="up.png"></A> 
38
 
<A NAME="tex2html1174"
 
36
<A NAME="tex2html1298"
39
37
  HREF="node19.html">
40
38
<IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="prev.png"></A> 
41
 
<A NAME="tex2html1182"
 
39
<A NAME="tex2html1306"
42
40
  HREF="node1.html">
43
41
<IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents" SRC="contents.png"></A> 
44
 
<A NAME="tex2html1184"
45
 
  HREF="node23.html">
 
42
<A NAME="tex2html1308"
 
43
  HREF="node30.html">
46
44
<IMG WIDTH="43" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="index" SRC="index.png"></A> 
47
45
<BR>
48
 
<B> Next:</B> <A NAME="tex2html1187"
49
 
  HREF="node21.html">20. Sympa with S/MIME and HTTPS</A>
50
 
<B> Up:</B> <A NAME="tex2html1181"
 
46
<B> Next:</B> <A NAME="tex2html1311"
 
47
  HREF="node21.html">20. List configuration parameters</A>
 
48
<B> Up:</B> <A NAME="tex2html1305"
51
49
  HREF="sympa.html">Sympa Mailing Lists Management Software version</A>
52
 
<B> Previous:</B> <A NAME="tex2html1175"
53
 
  HREF="node19.html">18. Antivirus</A>
54
 
 &nbsp <B>  <A NAME="tex2html1183"
 
50
<B> Previous:</B> <A NAME="tex2html1299"
 
51
  HREF="node19.html">18. List creation, edition and removal</A>
 
52
 &nbsp; <B>  <A NAME="tex2html1307"
55
53
  HREF="node1.html">Contents</A></B> 
56
 
 &nbsp <B>  <A NAME="tex2html1185"
57
 
  HREF="node23.html">Index</A></B> 
 
54
 &nbsp; <B>  <A NAME="tex2html1309"
 
55
  HREF="node30.html">Index</A></B> 
58
56
<BR>
59
57
<BR>
60
58
<!--End of Navigation Panel-->
 
59
<!--Table of Child-Links-->
 
60
<A NAME="CHILD_LINKS"><STRONG>Subsections</STRONG></A>
 
61
 
 
62
<UL>
 
63
<LI><A NAME="tex2html1312"
 
64
  HREF="node20.html#SECTION002010000000000000000">19.1 Family concept</A>
 
65
<LI><A NAME="tex2html1313"
 
66
  HREF="node20.html#SECTION002020000000000000000">19.2 Using family</A>
 
67
<UL>
 
68
<LI><A NAME="tex2html1314"
 
69
  HREF="node20.html#SECTION002021000000000000000">19.2.1 Definition</A>
 
70
<LI><A NAME="tex2html1315"
 
71
  HREF="node20.html#SECTION002022000000000000000">19.2.2 Instantiation</A>
 
72
<LI><A NAME="tex2html1316"
 
73
  HREF="node20.html#SECTION002023000000000000000">19.2.3 Modification</A>
 
74
<LI><A NAME="tex2html1317"
 
75
  HREF="node20.html#SECTION002024000000000000000">19.2.4 Closure</A>
 
76
<LI><A NAME="tex2html1318"
 
77
  HREF="node20.html#SECTION002025000000000000000">19.2.5 Adding one list</A>
 
78
<LI><A NAME="tex2html1319"
 
79
  HREF="node20.html#SECTION002026000000000000000">19.2.6 Removing one list</A>
 
80
<LI><A NAME="tex2html1320"
 
81
  HREF="node20.html#SECTION002027000000000000000">19.2.7 Modifying one list</A>
 
82
<LI><A NAME="tex2html1321"
 
83
  HREF="node20.html#SECTION002028000000000000000">19.2.8 List parameters edition in a family context</A>
 
84
</UL></UL>
 
85
<!--End of Table of Child-Links-->
 
86
<HR>
61
87
 
62
88
<H1><A NAME="SECTION002000000000000000000"></A>
63
 
<A NAME="ldap"></A>
64
 
<BR>
65
 
19. Using <I>Sympa</I> with LDAP
66
 
</H1>
67
 
 
68
 
<P>
69
 
<A NAME="8251"></A>LDAP is a client-server protocol for accessing a directory service. Sympa
70
 
provide various features based on access to one or more LDAP directories :
71
 
 
72
 
<P>
73
 
 
74
 
<UL>
75
 
<LI>authentication using LDAP directory instead of sympa internal storage of password
76
 
<BR>
77
 
see&nbsp;<A HREF="node10.html#auth-conf">9.5</A>, page&nbsp;<A HREF="node10.html#auth-conf"><IMG  ALIGN="BOTTOM" BORDER="1" ALT="[*]" SRC="crossref.png"></A>
78
 
 
79
 
<P>
80
 
</LI>
81
 
<LI>named filters used in authorization scenario condition
82
 
<BR>
83
 
see&nbsp;<A HREF="node11.html#named-filters">10.2</A>, page&nbsp;<A HREF="node11.html#named-filters"><IMG  ALIGN="BOTTOM" BORDER="1" ALT="[*]" SRC="crossref.png"></A>
84
 
 
85
 
<P>
86
 
</LI>
87
 
<LI>LDAP extraction of list subscribers (see&nbsp;<A HREF="node16.html#par-user-data-source">15.2.1</A>)
88
 
<BR>
89
 
<P>
90
 
</LI>
91
 
</UL>
92
 
 
93
 
<P>
94
 
 
95
 
<BR><HR>
 
89
    <A NAME="lists-families"></A>    <A NAME="2721"></A>
 
90
<BR>
 
91
19. Lists Families
 
92
</H1>
 
93
 
 
94
<P>
 
95
A list can have from three parameters to many tens of them. Some listmasters need to create 
 
96
a set of lists that have the same profile. In order to simplify the apprehension of these parameters, 
 
97
list families define a lists typology.
 
98
Families provide a new level for defaults : in the past, defaults in Sympa were global and 
 
99
most sites using Sympa needed multiple defaults for different group of lists.
 
100
Moreover families allow listmaster to delegate a part of configuration list to owners, in a controlled way 
 
101
according to family properties.
 
102
Distribution will provide defaults families.
 
103
 
 
104
<P>
 
105
 
 
106
<H1><A NAME="SECTION002010000000000000000"></A>
 
107
     <A NAME="family-concept"></A>
 
108
<BR>
 
109
19.1 Family concept
 
110
</H1>
 
111
 
 
112
<P>
 
113
A family provides a model for all of its lists. It is specified by the following characteristics :
 
114
 
 
115
<P>
 
116
 
 
117
<UL>
 
118
<LI>a list creation template providing a common profile for each list configuration file.
 
119
</LI>
 
120
<LI>an degree of independence between the lists and the family : list parameters edition rights and 
 
121
constraints on these parameters can be <I>free</I> (no constraint), <I>controlled</I> (a set of 
 
122
available values is defined for these parameters) or <I>fixed</I> (the value for the parameter is imposed by 
 
123
the family). That prevents lists from diverging from the original and it allows list owner customizations in 
 
124
a controlled way. 
 
125
</LI>
 
126
<LI>a filiation kept between lists and family all along the list life : family modifications 
 
127
are applied on lists while keeping listowners customizations.
 
128
 
 
129
<P>
 
130
</LI>
 
131
</UL>
 
132
 
 
133
<P>
 
134
Here is a list of operation performed on a family : 
 
135
 
 
136
<P>
 
137
 
 
138
<UL>
 
139
<LI>definition : definition of the list creation template, the degree of independence and family customizations.
 
140
</LI>
 
141
<LI>instantiation : lists creation or modifications of existing lists while respecting family properties.
 
142
          The set of data defining the lists is an XML document. 
 
143
</LI>
 
144
<LI>modification : modification of family properties. The modification is effective at the next instantiation time, that have consequences on every list.
 
145
</LI>
 
146
<LI>closure : closure of each list.
 
147
</LI>
 
148
<LI>adding one list to a family.
 
149
</LI>
 
150
<LI>closing one family list.
 
151
</LI>
 
152
<LI>modifying one family list.
 
153
 
 
154
<P>
 
155
</LI>
 
156
</UL>
 
157
 
 
158
<P>
 
159
 
 
160
<H1><A NAME="SECTION002020000000000000000"></A>
 
161
    <A NAME="using-family"></A>
 
162
<BR>
 
163
19.2 Using family
 
164
</H1>
 
165
 
 
166
<P>
 
167
 
 
168
<H2><A NAME="SECTION002021000000000000000">
 
169
19.2.1 Definition</A>
 
170
</H2>
 
171
Families can be defined at the robot level, at  the site level or on the distribution level
 
172
 (where default families are provided).
 
173
So, you have to create a sub directory named after the family's name in a <A NAME="10356"></A><TT>families</TT> directory  : 
 
174
 
 
175
<P>
 
176
<I>Examples:</I> <PRE>
 
177
/home/sympa/etc/families/my_family
 
178
/home/sympa/etc/my_robot/families/my_family
 
179
</PRE>
 
180
In this directory you must provide these files :
 
181
 
 
182
<UL>
 
183
<LI><A NAME="10359"></A><TT>config.tt2</TT> (mandatory)
 
184
</LI>
 
185
<LI><A NAME="10362"></A><TT>param_constraint.conf</TT> (mandatory)
 
186
</LI>
 
187
<LI><A NAME="10365"></A><TT>edit_list.conf</TT>
 
188
</LI>
 
189
<LI>customizable files
 
190
</LI>
 
191
</UL>
 
192
 
 
193
<P>
 
194
 
 
195
<H3><A NAME="SECTION002021100000000000000"></A>
 
196
   <A NAME="using-family-config-tpl"></A>
 
197
<BR>
 
198
19.2.1.1 config.tt2
 
199
</H3>
 
200
      This is a list creation template, this file is mandatory. It provides default values for parameters. 
 
201
      This file is an almost complete list configuration, with a number of missing fields 
 
202
      (such as owner e-mail) to be replaced by data obtained at the time of family instantiation.
 
203
      It is easy to create new list templates by modifying existing ones. See <A HREF="node18.html#list-tpl">17.8</A>, page&nbsp;<A HREF="node18.html#list-tpl"><IMG  ALIGN="BOTTOM" BORDER="1" ALT="[*]" SRC="crossref.png"></A>
 
204
      and <A HREF="node17.html#tpl-format">16.1</A>, page&nbsp;<A HREF="node17.html#tpl-format"><IMG  ALIGN="BOTTOM" BORDER="1" ALT="[*]" SRC="crossref.png"></A>.
 
205
<BR>
 
206
<P>
 
207
<I>Example:</I> <PRE>
 
208
subject [% subject %]
 
209
 
 
210
status [% status %]
 
211
 
 
212
[% IF topic %]
 
213
topics [% topic %]
 
214
 
 
215
[% END %]
 
216
visibility noconceal
 
217
 
 
218
send privateoreditorkey
 
219
 
 
220
web_archive
 
221
  access public
 
222
 
 
223
subscribe open_notify
 
224
 
 
225
shared_doc
 
226
  d_edit [% shared_edit %]
 
227
  d_read [% shared_read %]
 
228
 
 
229
lang [% language %]
 
230
 
 
231
[% FOREACH o = owner %]
 
232
owner
 
233
  email [% o.email %]
 
234
  profile privileged
 
235
  [% IF o.gecos %] 
 
236
  gecos [% o.gecos %]
 
237
  [% END %]
 
238
 
 
239
[% END %]
 
240
[% IF moderator %]
 
241
   [% FOREACH m = moderator %]
 
242
editor
 
243
  email [% m.email %]
 
244
 
 
245
   [% END %]
 
246
[% END %]
 
247
 
 
248
[% IF sql %]
 
249
include_sql_query
 
250
  db_type [% sql.type %]
 
251
  host [% sql.host %]
 
252
  user [% sql.user %]
 
253
  passwd [% sql.pwd %]
 
254
  db_name [% sql.name %]
 
255
  sql_query [% sql.query %]
 
256
    
 
257
[% END %]
 
258
ttl 360
 
259
</PRE>
 
260
 
 
261
<P>
 
262
 
 
263
<H3><A NAME="SECTION002021200000000000000"></A>
 
264
     <A NAME="2757"></A>
 
265
<BR>
 
266
19.2.1.2 param_constraint.conf
 
267
</H3>
 
268
         This file is obligatory. It defines constraints on parameters. There are three kind of constraints :
 
269
         
 
270
<UL>
 
271
<LI><I>free</I> parameters : no constraint on these parameters, 
 
272
                  they are not written in the <A NAME="10368"></A><TT>param_constraint.conf</TT> file.
 
273
</LI>
 
274
<LI><I>controlled</I> parameters : these parameters must select their values 
 
275
                  in a set of available values indicated in the <A NAME="10371"></A><TT>param_constraint.conf</TT> file.
 
276
</LI>
 
277
<LI><I>fixed</I> parameters : these parameters must have the imposed value indicated
 
278
                  in the <A NAME="10374"></A><TT>param_constraint.conf</TT> file.
 
279
 
 
280
<P>
 
281
</LI>
 
282
</UL>
 
283
         The parameters constraints will be checked at every list loading.
 
284
 
 
285
<P>
 
286
<B>WARNING</B> : Some parameters cannot be constrained, they are : <A NAME="10377"></A><TT>msg_topic.keywords</TT> 
 
287
(see&nbsp;<A HREF="node21.html#par-msg-topic">20.4.13</A>, page&nbsp;<A HREF="node21.html#par-msg-topic"><IMG  ALIGN="BOTTOM" BORDER="1" ALT="[*]" SRC="crossref.png"></A>),<A NAME="10380"></A><TT>owner_include.source_parameter</TT> 
 
288
(see&nbsp;<A HREF="node21.html#par-owner-include">20.1.6</A>, page&nbsp;<A HREF="node21.html#par-owner-include"><IMG  ALIGN="BOTTOM" BORDER="1" ALT="[*]" SRC="crossref.png"></A>), <A NAME="10383"></A><TT>editor_include.source_parameter</TT> (see&nbsp;<A HREF="node21.html#par-editor-include">20.1.2</A>, page&nbsp;<A HREF="node21.html#par-editor-include"><IMG  ALIGN="BOTTOM" BORDER="1" ALT="[*]" SRC="crossref.png"></A>). About <A NAME="10386"></A><TT>digest</TT> parameter (see&nbsp;<A HREF="node21.html#par-digest">20.4.9</A>, page&nbsp;<A HREF="node21.html#par-digest"><IMG  ALIGN="BOTTOM" BORDER="1" ALT="[*]" SRC="crossref.png"></A>) , just days can be constrained.
 
289
 
 
290
<P>
 
291
<I>Example:</I> <PRE>
 
292
lang                fr,us                       
 
293
archive.period      days,week,month     
 
294
visibility          conceal,noconceal   
 
295
shared_doc.d_read   public              
 
296
shared_doc.d_edit   editor
 
297
</PRE>
 
298
 
 
299
<P>
 
300
 
 
301
<H3><A NAME="SECTION002021300000000000000">
 
302
19.2.1.3 edit_list.conf</A>
 
303
</H3>
 
304
        This is an optional file. It defines which parameters/files are editable by
 
305
        owners. See <A HREF="node19.html#list-edition">18.4.4</A>, page&nbsp;<A HREF="node19.html#list-edition"><IMG  ALIGN="BOTTOM" BORDER="1" ALT="[*]" SRC="crossref.png"></A>.
 
306
        If the family does not have this file, <I>Sympa</I> will look for 
 
307
        the one defined on robot level, server site level or distribution level. 
 
308
        (This file already exists without family context)
 
309
<BR>
 
310
Notes that by default parameter family_name is not writable, you should not change 
 
311
        this edition right.
 
312
 
 
313
<P>
 
314
 
 
315
<H3><A NAME="SECTION002021400000000000000">
 
316
19.2.1.4 customizable files</A>
 
317
</H3>
 
318
        Families provides a new level of customization for scenarios (see <A HREF="node14.html#scenarios">13</A>, 
 
319
        page&nbsp;<A HREF="node14.html#scenarios"><IMG  ALIGN="BOTTOM" BORDER="1" ALT="[*]" SRC="crossref.png"></A>), templates for service messages (see <A HREF="node17.html#site-tpl">16.2</A>, 
 
320
        page&nbsp;<A HREF="node17.html#site-tpl"><IMG  ALIGN="BOTTOM" BORDER="1" ALT="[*]" SRC="crossref.png"></A>) and templates for web pages (see <A HREF="node17.html#web-tpl">16.3</A> , 
 
321
        page&nbsp;<A HREF="node17.html#web-tpl"><IMG  ALIGN="BOTTOM" BORDER="1" ALT="[*]" SRC="crossref.png"></A>). <I>Sympa</I> looks for these files in the following 
 
322
        level order: list, family, robot, server site or distribution. 
 
323
 
 
324
<P>
 
325
 
 
326
<H2><A NAME="SECTION002022000000000000000"></A>
 
327
<A NAME="family-instantiation"></A>
 
328
<BR>
 
329
19.2.2 Instantiation
 
330
</H2>
 
331
 
 
332
<P>
 
333
Instantiation permits to generate lists.You must provide an XML file that is 
 
334
composed of lists description, the root element is <I>family</I> and is only 
 
335
composed of <I>list</I> elements. List elements are described in section 
 
336
<A HREF="node19.html#xml-file-format">18.1.2</A>, page&nbsp;<A HREF="node19.html#xml-file-format"><IMG  ALIGN="BOTTOM" BORDER="1" ALT="[*]" SRC="crossref.png"></A>. Each list is described 
 
337
by the set of values for affectation list parameters.
 
338
 
 
339
<P>
 
340
Here is an sample command to instantiate a family :<PRE>
 
341
sympa.pl --instantiate\_family my_family --robot \samplerobot --input\_file /path/to/my\_file.xml
 
342
</PRE>
 
343
This means lists that belong to family <A NAME="10389"></A><TT>my_family</TT> will be created under the robot 
 
344
<A NAME="10392"></A><TT>my_robot</TT> and these lists are described in the file <A NAME="10395"></A><TT>my_file.xml</TT>. Sympa will split this file 
 
345
into several xml files describing lists. Each list XML file is put in each list directory.
 
346
<BR>
 
347
<P>
 
348
<I>Example:</I> <PRE>
 
349
&lt;?xml version="1.0" ?&gt;
 
350
&lt;family&gt;
 
351
  &lt;list&gt;
 
352
    &lt;listname&gt;liste1&lt;/listname&gt;
 
353
    &lt;subject&gt;a list example&lt;/subject&gt;
 
354
    &lt;description/&gt;
 
355
    &lt;status&gt;open&lt;/status&gt;
 
356
    &lt;shared_edit&gt;editor&lt;/shared_edit&gt;
 
357
    &lt;shared_read&gt;private&lt;/shared_read&gt;
 
358
    &lt;language&gt;fr&lt;/language&gt;
 
359
    &lt;owner multiple="1"&gt; 
 
360
      &lt;email&gt;serge.aumont@cru.fr&lt;/email&gt; 
 
361
      &lt;gecos&gt;C.R.U.&lt;/gecos&gt;
 
362
    &lt;/owner&gt;
 
363
    &lt;owner multiple="1"&gt; 
 
364
      &lt;email&gt;olivier.salaun@cru.fr&lt;/email&gt;
 
365
    &lt;/owner&gt;
 
366
    &lt;owner_include multiple="1"&gt;
 
367
      &lt;source&gt;my_file&lt;/source&gt;
 
368
    &lt;/owner_include&gt;
 
369
    &lt;sql&gt; 
 
370
      &lt;type&gt;oracle&lt;/type&gt;
 
371
      &lt;host&gt;sqlserv.admin.univ-x.fr&lt;/host&gt;
 
372
      &lt;user&gt;stdutilisateur&lt;/user&gt;
 
373
      &lt;pwd&gt;monsecret&lt;/pwd&gt;
 
374
      &lt;name&gt;les_etudiants&lt;/name&gt;
 
375
      &lt;query&gt;SELECT DISTINCT email FROM etudiant&lt;/query&gt;
 
376
    &lt;/sql&gt;
 
377
  &lt;/list&gt;
 
378
  &lt;list&gt;
 
379
    &lt;listname&gt;liste2&lt;/listname&gt;
 
380
    &lt;subject&gt;a list example&lt;/subject&gt;
 
381
    &lt;description/&gt;
 
382
    &lt;status&gt;open&lt;/status&gt;
 
383
    &lt;shared_edit&gt;editor&lt;/shared_edit&gt;
 
384
    &lt;shared_read&gt;private&lt;/shared_read&gt;
 
385
    &lt;language&gt;fr&lt;/language&gt;
 
386
    &lt;owner multiple="1"&gt; 
 
387
      &lt;email&gt;serge.aumont@cru.fr&lt;/email&gt; 
 
388
      &lt;gecos&gt;C.R.U.&lt;/gecos&gt;
 
389
    &lt;/owner&gt;
 
390
    &lt;owner multiple="1"&gt; 
 
391
      &lt;email&gt;olivier.salaun@cru.fr&lt;/email&gt;
 
392
    &lt;/owner&gt;
 
393
    &lt;owner_include multiple="1"&gt;
 
394
      &lt;source&gt;my_file&lt;/source&gt;
 
395
    &lt;/owner_include&gt;
 
396
    &lt;sql&gt; 
 
397
      &lt;type&gt;oracle&lt;/type&gt;
 
398
      &lt;host&gt;sqlserv.admin.univ-x.fr&lt;/host&gt;
 
399
      &lt;user&gt;stdutilisateur&lt;/user&gt;
 
400
      &lt;pwd&gt;monsecret&lt;/pwd&gt;
 
401
      &lt;name&gt;les_etudiants&lt;/name&gt;
 
402
      &lt;query&gt;SELECT DISTINCT email FROM etudiant&lt;/query&gt;
 
403
    &lt;/sql&gt;
 
404
  &lt;/list&gt;
 
405
   ...
 
406
&lt;/family&gt;
 
407
</PRE>
 
408
 
 
409
<P>
 
410
Each instantiation describes lists. Compared to the previous instantiation, there are three cases :
 
411
 
 
412
<UL>
 
413
<LI>lists creation : new lists described by the new instantiation
 
414
</LI>
 
415
<LI>lists modification : lists already existing but possibly changed because of changed parameters values in
 
416
        the XML file or because of changed family's properties.
 
417
</LI>
 
418
<LI>lists removal : lists nomore described by the new instantiation. In this case, the listmaster must 
 
419
        valid his choice on command line. If the list is removed, it is set in status <A NAME="10398"></A><TT>family_closed</TT>, or if the 
 
420
        list is recovered, the list XML file from the previous instantiation is got back to go on as a list modification then.
 
421
 
 
422
<P>
 
423
</LI>
 
424
</UL>
 
425
 
 
426
<P>
 
427
After list creation or modification, parameters constraints are checked :
 
428
 
 
429
<UL>
 
430
<LI><I>fixed</I> parameter : the value must be the one imposed.
 
431
</LI>
 
432
<LI><I>controlled</I> parameter : the value must be one of the set of available values.
 
433
</LI>
 
434
<LI><I>free</I> parameter : there is no checking.
 
435
 
 
436
<P>
 
437
</LI>
 
438
</UL>
 
439
 
 
440
<P>
 
441
diagram
 
442
 
 
443
<P>
 
444
In case of modification (see diagram), allowed customizations can be preserved :
 
445
 
 
446
<UL>
 
447
<LI>(1) : for every modified parameters (via Web interface), noted in the <A NAME="10401"></A><TT>config_changes</TT> 
 
448
    file, values can be collected in the old list configuration file, according to new family properties :
 
449
    
 
450
<UL>
 
451
<LI><I>fixed</I> parameter : the value is not collected.
 
452
</LI>
 
453
<LI><I>controlled</I> parameter : the value is collected only if constraints are respected.
 
454
</LI>
 
455
<LI><I>free</I> parameter : the value is collected.
 
456
    
 
457
</LI>
 
458
</UL>
 
459
</LI>
 
460
<LI>(2) : a new list configuration file is made with the new family properties
 
461
</LI>
 
462
<LI>(3) : collected values are set in the new list configuration file.
 
463
 
 
464
<P>
 
465
</LI>
 
466
</UL>
 
467
 
 
468
<P>
 
469
Notes : 
 
470
 
 
471
<UL>
 
472
<LI>For each list problem (as family file error, error parameter constraint, error instanciation ...),
 
473
    the list is set in status <A NAME="10404"></A><TT>error_config</TT> and the listmaster is notified. He will have to do necessary to put list in use.
 
474
</LI>
 
475
<LI>For each list closing in family context, the list is set in status <A NAME="10407"></A><TT>family_closed</TT> and the owner is notified.
 
476
</LI>
 
477
<LI>For each overwritten list customization, the owner is notified. 
 
478
</LI>
 
479
</UL>
 
480
 
 
481
<P>
 
482
 
 
483
<H2><A NAME="SECTION002023000000000000000">
 
484
19.2.3 Modification</A>
 
485
</H2>
 
486
To modify a family, you have to edit family files manually. The modification will be effective while the next instanciation.
 
487
<BR><B>WARNING</B>: The family modification must be done just before an instantiation. If it is not, alive lists wouldn't respect 
 
488
new family properties and they would be set in status error_config immediately.
 
489
 
 
490
<P>
 
491
 
 
492
<H2><A NAME="SECTION002024000000000000000">
 
493
19.2.4 Closure</A>
 
494
</H2>
 
495
 
 
496
<P>
 
497
<A NAME="family-closure"></A>
 
498
<P>
 
499
Closes every list (installed under the indicated robot) 
 
500
 of this family : lists status are set to <A NAME="10410"></A><TT>family_closed</TT>, aliases are 
 
501
 removed and subscribers are removed from DB. (a dump is created in the list 
 
502
 directory to allow restoration of the list).
 
503
 
 
504
<P>
 
505
Here is a sample command to close a family :
 
506
 <PRE>
 
507
 sympa.pl --close_family my_family --robot \samplerobot
 
508
</PRE> 
 
509
 
 
510
<P>
 
511
 
 
512
<H2><A NAME="SECTION002025000000000000000">
 
513
19.2.5 Adding one list</A>
 
514
</H2>
 
515
 
 
516
<P>
 
517
<A NAME="family-add-list"></A>
 
518
<P>
 
519
Adds a list to the family without instantiate all the family. The list is created
 
520
 as if it was created during an instantiation, under the indicated robot. The XML file
 
521
 describes the list and the root element is <A NAME="10413"></A><TT>&lt;list&gt;</TT>. List elements are described in section 
 
522
 <A HREF="node19.html#list-creation-sympa">18.3</A>, page&nbsp;<A HREF="node19.html#list-creation-sympa"><IMG  ALIGN="BOTTOM" BORDER="1" ALT="[*]" SRC="crossref.png"></A>.
 
523
 
 
524
<P>
 
525
Here is a sample command to add a list to a family :
 
526
 <PRE>
 
527
 sympa.pl --add\_list my\_family --robot \samplerobot  --input\_file /path/to/my\_file.xml
 
528
</PRE> 
 
529
 
 
530
<P>
 
531
 
 
532
<H2><A NAME="SECTION002026000000000000000">
 
533
19.2.6 Removing one list</A>
 
534
</H2>
 
535
 
 
536
<P>
 
537
Closes the list  installed under the indicated robot : the list status is set to
 
538
  <A NAME="10416"></A><TT>family_closed</TT>, aliases are 
 
539
 removed and subscribers are removed from DB. (a dump is created in the list 
 
540
 directory to allow restoring the list).
 
541
 
 
542
<P>
 
543
Here is a sample command to close a list family (same as an orphan list) :
 
544
 <PRE>
 
545
 sympa.pl --close_list my_list@\samplerobot
 
546
</PRE> 
 
547
 
 
548
<P>
 
549
 
 
550
<H2><A NAME="SECTION002027000000000000000"></A>
 
551
 <A NAME="family-modify-list"></A>
 
552
<BR>
 
553
19.2.7 Modifying one list
 
554
</H2>
 
555
 
 
556
<P>
 
557
Modifies a family list without instantiating the whole family. The list (installed under the indicated robot) 
 
558
 is modified as if it was modified during an instantiation. The XML file
 
559
 describes the list and the root element is <A NAME="10419"></A><TT>&lt;list&gt;</TT>. List elements are described in section 
 
560
 <A HREF="node19.html#list-creation-sympa">18.3</A>, page&nbsp;<A HREF="node19.html#list-creation-sympa"><IMG  ALIGN="BOTTOM" BORDER="1" ALT="[*]" SRC="crossref.png"></A>.
 
561
 
 
562
<P>
 
563
Here is a sample command to modify a list to a family :
 
564
 <PRE>
 
565
 sympa.pl --modify\_list my\_family --robot \samplerobot --input\_file /path/to/my\_file.xml
 
566
</PRE> 
 
567
 
 
568
<P>
 
569
 
 
570
<H2><A NAME="SECTION002028000000000000000"></A>
 
571
    <A NAME="list-param-edit-family"></A>
 
572
<BR>
 
573
19.2.8 List parameters edition in a family context
 
574
</H2>
 
575
According to file <A NAME="10422"></A><TT>edit_list.conf</TT>, edition rights are controlled.  
 
576
See <A HREF="node19.html#list-edition">18.4.4</A>, page&nbsp;<A HREF="node19.html#list-edition"><IMG  ALIGN="BOTTOM" BORDER="1" ALT="[*]" SRC="crossref.png"></A>. But in a family context, constraints parameters are 
 
577
added to edition right as it is summarized in this array :
 
578
<BR>
 
579
<P>
 
580
array
 
581
<BR>
 
582
<P>
 
583
Note : In order to preserve list customization for instantiation, every modified parameter (via the Web interface) is noted in the <A NAME="10425"></A><TT>config_changes</TT> file. 
 
584
 
 
585
<P>
 
586
 
 
587
<HR>
 
588
<!--Navigation Panel-->
 
589
<A NAME="tex2html1310"
 
590
  HREF="node21.html">
 
591
<IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="next.png"></A> 
 
592
<A NAME="tex2html1304"
 
593
  HREF="sympa.html">
 
594
<IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="up.png"></A> 
 
595
<A NAME="tex2html1298"
 
596
  HREF="node19.html">
 
597
<IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="prev.png"></A> 
 
598
<A NAME="tex2html1306"
 
599
  HREF="node1.html">
 
600
<IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents" SRC="contents.png"></A> 
 
601
<A NAME="tex2html1308"
 
602
  HREF="node30.html">
 
603
<IMG WIDTH="43" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="index" SRC="index.png"></A> 
 
604
<BR>
 
605
<B> Next:</B> <A NAME="tex2html1311"
 
606
  HREF="node21.html">20. List configuration parameters</A>
 
607
<B> Up:</B> <A NAME="tex2html1305"
 
608
  HREF="sympa.html">Sympa Mailing Lists Management Software version</A>
 
609
<B> Previous:</B> <A NAME="tex2html1299"
 
610
  HREF="node19.html">18. List creation, edition and removal</A>
 
611
 &nbsp; <B>  <A NAME="tex2html1307"
 
612
  HREF="node1.html">Contents</A></B> 
 
613
 &nbsp; <B>  <A NAME="tex2html1309"
 
614
  HREF="node30.html">Index</A></B> 
 
615
<!--End of Navigation Panel-->
96
616
<ADDRESS>
97
617
root
98
 
2004-09-10
 
618
2006-10-20
99
619
</ADDRESS>
100
620
</BODY>
101
621
</HTML>