Debian Codegraph @

docs/devel/login.htm

raw symbols SCIP
1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2 <html lang="en">
3 <head>
4 <meta content="text/html; charset=ISO-8859-15"
5 http-equiv="content-type">
6 <title>Login</title>
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>
10 <body>
11 <h1 style="text-align: center;">Login<br>
12 </h1>
13 <div style="text-align: center;"><br>
14 </div>
15 <div style="text-align: center;"><br>
16 <div style="text-align: left;">The <span style="font-style: italic;">login</span>
17 page is the first page the user sees when opening LAM. It manages LDAP
18 authentication and checks the environment of the user.<br>
19 <br>
20 <br>
21 <h2>login.php</h2>
22 The login page offers authentication, language selection and profile
23 selection. There are also some environment checks.<br>
24 <br>
25 <h3>Authentication</h3>
26 The list of possible users is loaded from the current active profile.
27 Only the RDN value is offered for selection by the user.<br>
28 When the user submits his password then a new <span
29 style="font-style: italic;">Ldap</span> object is created and LAM
30 tries to connect to the LDAP server.<br>
31 If the connection was successful the user is forwarded to the main
32 frame (main.php). The session variable <span
33 style="font-weight: bold; font-style: italic;">$_SESSION['loggedIn']</span>
34 is set to <span style="font-style: italic;">true</span>. This informs
35 the other PHP scripts that a valid user is connected (e.g. the user is
36 allowed to create account profiles).<br>
37 <br>
38 <h3>Language selection</h3>
39 The list of possible languages is read from <span
40 style="font-weight: bold;">config/language</span>. The current active
41 profile defines the preselected language and the language of the login
42 page itself.<br>
43 <br>
44 <h3>Profile selection<br>
45 </h3>
46 The user can change the active configuration profile at login. A list
47 of possible profiles is retrieved by <span
48 style="font-weight: bold; font-style: italic;">getConfigProfiles()</span>.<br>
49 If the profile is changed then the login replaces the config object in <span
50 style="font-weight: bold; font-style: italic;">$_SESSION['config']</span>
51 by a new one. Then the main login page is loaded and uses the new
52 values.<br>
53 <br>
54 <h3>Environment checks</h3>
55 LAM checks if all needed PHP extensions are installed.<br>
56 <ul>
57 <li><span style="font-weight: bold;">LDAP:</span> PHP needs LDAP
58 support</li>
59 <li><span style="font-weight: bold;">Gettext:</span> needed for
60 translation<br>
61 </li>
62 </ul>
63 <br>
64 <br>
65 <br>
66 </div>
67 </div>
68 </body>
69 </html>