source: trunk/LATMOS-Accounts/man/man8/latmos-accounts-base-sql.pod @ 1522

Last change on this file since 1522 was 1522, checked in by nanardon, 9 years ago

Factorise code, add unemployed_expire parameters

File size: 3.6 KB
Line 
1# $Id$
2
3=head1 DESCRIPTION
4
5=head1 SPECIFIC SETUP PARAMTERS
6
7=head2 db_conn
8
9The C<libpq> connection parameters, eg a semin colon separated paramaters
10containing the server, the database name, user and password, etc...
11
12=head1 FEATURES
13
14=head2 Network managment
15
16Link::Accounts can build automatically some part of your DNS or DHCP
17configuration.
18
19To do this you have to create a C<netzone> object. Such object need a type:
20
21=over 4
22
23=item dns: to build a DNS zone for classic domain
24
25=item reverse: for reverse IP address (168.192.in-addr.arpa)
26
27=item dhcp: ISC dscpd configuration for fixed address
28
29=item puppet: puppet configuration
30
31=back
32
33The way it works is quite simple, each zone will make the code to write a file
34you can include in your server configuration. The match is done by looking the
35zone IP address masks and the host IPs.
36
37For example someone having a zone named C<private.mydomain.com> having masks
38C<192.168.5.0/24>, and having an host named C<foo> with IP C<192.168.5.3> and
39another host C<bar> with IP C<192.168.13.78>. The zone built will look likes:
40
41    foo IN A 192.168.5.3
42
43As you can see this DNS zone is not valid: the goal of such feature is to make
44the repetive work for us, not to manage the full zone (even such feature could
45be possible). The repetitive work is declaring the hundred computers our users
46have.
47
48The output will be happend to a template have the name of the zone suffixed by
49C<.in>. You can put in this template evering about the zone declaration (SOA,
50NS, TXT...).
51
52=head2 User endcircuit
53
54The C<endcircuit> attribute contain the deadline for people to make
55admnistrative task when starting to work.
56If set this attribute take precedence to C<expire> attribute for computed
57attributes (C<accountExpires> for Active Directory).
58
59=head2 User endEmployment
60
61This attribute compute the next day the user will leave the company according
62the employment object registered.
63
64The parameter C<employment_delay> give the number of days to ignore when a hole
65exists between two employment.
66
67=head2 User endStrictEmployment
68
69This attribute compute the next day the user will leave the company according
70the employment object registered.
71
72It does not take C<employment_delay> parameter into account.
73
74If no employment are found, if set the date given in C<unemployed_expire>
75database parameter is returned.
76
77=head2 User endLastEmployment
78
79This attribute return the very last end of all registered employment fr this
80user.
81
82=head2 User endCurrentEmployment
83
84The end of the employment matching current date.
85
86=head2 Group AutoMemberFilter
87
88Group objects contains users members by setting either C<members> or
89C<memberUID> attributes.
90
91Sometimes it can be usefull to have group automatically populated by arbitrary
92rules.
93
94This is possible by setting a filter in the C<autoMemberFilter> attribute,
95The filter format is the same the one used by L<la-search>, the attribute is
96multivaluable.
97
98So for example one can create an account automatically a group containing people
99having "Olivier" as first name:
100
101    autoMemberFilter: givenBame=Olivier
102
103A probably more usefull example is a group containing people from two others
104groups:
105
106    autoMemberFilter: memberOf=group1
107    autoMemberFilter: memberOf=group2
108
109The  C<members> or C<memberUID> attribute becomes read-only attribute once
110C<autoMemberFilter> attribute is set.
111
112=head2 Aliases AutoMemberFilter
113
114This attribute allow to create automatics dynamics aliases according filter
115rules exactly like L<Group AutoMemberFilter> works.
116
117The C<forward> attributes is automatically set with email address of selected
118user, user w/o email address are ignored.
Note: See TracBrowser for help on using the repository browser.