Debian Codegraph @

docs/devel/lists.htm

raw symbols SCIP
1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2 <html lang="en"><head>
3
4
5 <meta content="text/html; charset=ISO-8859-15" http-equiv="content-type"><title>LAM - Account lists</title>
6
7 <link rel="stylesheet" type="text/css" href="style/layout.css">
8 <link rel="shortcut icon" type="image/x-icon" href="images/favicon.ico">
9 </head><body>
10 <h1 style="text-align: center;">Account lists</h1>
11 <br>
12 <div style="text-align: center;"><img style="width: 496px; height: 177px;" alt="Account lists" src="images/lam_lists.png"><br>
13 </div>
14 <br>
15 <br>
16 <br>
17 The account lists are all built after the same schema. They provide a
18 list of found accounts which can be restricted by LDAP filters and the
19 LDAP OU (Organizational Unit).<br>
20 <br>
21 The list of LDAP attributes and thus table columns is taken from the
22 configuration profile (<span style="font-weight: bold; font-style: italic;">get_...listAttributes()</span>
23 in config.inc). Each account list has a separate list of attributes.<br>
24 Only these attributes are given the LDAP search as attribute parameter.<br>
25 There is also a predefined description list for the attributes in
26 lists.inc. The user may use other values by setting them in the
27 configuration profile.<br>
28 <br>
29 The number of accounts per page is limited by a list option. There will be links at the beginning and end of the
30 list if more accounts were found.<br>
31 <br>
32 Several common helper functions for sorting and some page elements
33 reside in lists.inc.<br>
34 <br>
35 <h2>1. Getting accounts from LDAP</h2>
36 Each account list has its own LDAP suffix which is saved in the
37 configuration profile. This is used as search base.<br>
38 The account modules provide an LDAP filter (<span style="font-weight: bold; font-style: italic;">get_ldap_filter()</span>
39 in modules.inc) to get only accounts of a special type.<br>
40 <br>
41 This list can be further reduced if the user provides an additional
42 LDAP filter with the filter boxes or selects another LDAP OU with the
43 drop-down-box.<br>
44 <br>
45 <h2>2. Caching LDAP accounts</h2>
46 The lists usually do not ask the LDAP server for an account list every
47 time the user changes the page. The accounts are cached in the session.<br>
48 <br>
49 A new LDAP search is done if the user:<br>
50 <ul>
51 <li>changes to another account list or tool</li>
52 <li>adds/modifies an account</li>
53 <li>selects the "refresh" button</li>
54 <li>adds additional LDAP filters or changes the LDAP OU<br>
55 </li>
56 </ul>
57 <br>
58 It is <span style="font-style: italic;">not</span> done if the user:<br>
59 <ul>
60 <li>changes the list pages if there are more accounts than what can
61 be shown</li>
62 <li>sorts the list</li>
63 </ul>
64 <br>
65 <h2>3. Adding/Editing accounts</h2>
66 There are buttons at the end of the page to add/delete accounts. Adding
67 accounts is done by account/edit.php and deleting by delete.php.<br>
68 <br>
69 The user can use the link in each account row to modify (in
70 accounts/edit.php) the account. This can also be done by double
71 clicking the row if Java Script is enabled.<br>
72 <br>
73 <br>
74 <h2>4. Export to PDF</h2>
75 The user can generate PDF files for the accounts. This is done by the <span style="font-style: italic; font-weight: bold;">createModulePDF()</span>
76 function from pdf.inc.<br>
77 <br>
78 <br>
79 <h2>5. Special abilities of some lists</h2>
80 <h3>5.1. The user list</h3>
81 If the attribute <span style="font-style: italic;">gidNumber</span> is
82 shown as table column then there will be an additional checkbox to
83 translate the GID to the group name.<br>
84 This checkbox is hidden if <span style="font-style: italic;">gidNumber</span>
85 is not part of the attribute list.<br>
86 <br>
87 <h3>5.2. The group list</h3>
88 If the attribute memberUID is shown as table column then all values of
89 this attribute are shown as links.<br>
90 These links redirect to userlink.php which tries to find the given user
91 and redirects to account/edit.php for account modifying.<br>
92 <br>
93 <br>
94 <br>
95 </body></html>