Documentation update

This commit is contained in:
Xavier Guimard 2010-02-28 09:16:17 +00:00
parent 4634d58f36
commit d2c015c5a6
66 changed files with 717 additions and 1421 deletions

View File

@ -5,7 +5,7 @@
<html xmlns="http://www.w3.org/1999/xhtml" lang="fr" xml:lang="fr">
<head>
<meta name="generator" content=
"HTML Tidy for Linux/x86 (vers 7 December 2008), see www.w3.org" />
"HTML Tidy for Linux/x86 (vers 25 March 2009), see www.w3.org" />
<title>Lemonldap::NG documentation: 1-Overview-fr.html</title>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii" />

View File

@ -5,7 +5,7 @@
<html xmlns="http://www.w3.org/1999/xhtml" lang="fr" xml:lang="fr">
<head>
<meta name="generator" content=
"HTML Tidy for Linux/x86 (vers 7 December 2008), see www.w3.org" />
"HTML Tidy for Linux/x86 (vers 25 March 2009), see www.w3.org" />
<title>Lemonldap::NG documentation: 1-Overview.html</title>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii" />

View File

@ -5,7 +5,7 @@
<html xmlns="http://www.w3.org/1999/xhtml" lang="fr" xml:lang="fr">
<head>
<meta name="generator" content=
"HTML Tidy for Linux/x86 (vers 7 December 2008), see www.w3.org" />
"HTML Tidy for Linux/x86 (vers 25 March 2009), see www.w3.org" />
<title>Lemonldap::NG documentation: 2-FAQ-fr.html</title>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii" />

View File

@ -5,7 +5,7 @@
<html xmlns="http://www.w3.org/1999/xhtml" lang="fr" xml:lang="fr">
<head>
<meta name="generator" content=
"HTML Tidy for Linux/x86 (vers 7 December 2008), see www.w3.org" />
"HTML Tidy for Linux/x86 (vers 25 March 2009), see www.w3.org" />
<title>Lemonldap::NG documentation: 2-FAQ.html</title>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii" />

View File

@ -5,7 +5,7 @@
<html xmlns="http://www.w3.org/1999/xhtml" lang="fr" xml:lang="fr">
<head>
<meta name="generator" content=
"HTML Tidy for Linux/x86 (vers 7 December 2008), see www.w3.org" />
"HTML Tidy for Linux/x86 (vers 25 March 2009), see www.w3.org" />
<title>Lemonldap::NG documentation: 3-Table-of-contents-fr.html</title>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii" />
@ -121,6 +121,9 @@
<li><a href="#HErreurs">Erreurs</a></li>
<li><a href="#HFormations">Formations</a></li>
<li><a href="#HRapportsdetestsduCPAN">Rapports de tests du
CPAN</a></li>
</ul>
</li>
</ul><strong class="strong">Documentation applicable pour LemonLDAP::NG
@ -315,6 +318,10 @@
<li><span class="wikilink"><a href=
"4.9-Reset-password-by-mail.html">Envoi d'un nouveau mot de passe par
mail</a></span> (en)</li>
<li><span class="wikilink"><a href=
"/xwiki/bin/view/NG/CustomFuctions">Cr&eacute;er et utiliser des
fonctions personnalis&eacute;es</a></span> (en)</li>
</ul>
<h3 class="heading-1-1"><span id="HProtectiondesapplications">Protection
@ -536,6 +543,27 @@
"http://linagora.org/contrib/annuaires/formations/websso_lemonldap_ng">Le
WebSSO LemonLDAP::NG (LINAGORA)</a></span> (fr)</li>
</ul>
<h4 class="heading-1-1-1"><span id="HRapportsdetestsduCPAN">Rapports de
tests du CPAN</span></h4>
<ul class="star">
<li><span class="wikiexternallink"><a href=
"http://www.cpantesters.org/distro/L/Lemonldap-NG-Common.html">LemonLDAP::NG
Common</a></span></li>
<li><span class="wikiexternallink"><a href=
"http://www.cpantesters.org/distro/L/Lemonldap-NG-Handler.html">LemonLDAP::NG
Handler</a></span></li>
<li><span class="wikiexternallink"><a href=
"http://www.cpantesters.org/distro/L/Lemonldap-NG-Portal.html">LemonLDAP::NG
Portal</a></span></li>
<li><span class="wikiexternallink"><a href=
"http://www.cpantesters.org/distro/L/Lemonldap-NG-Manager.html">LemonLDAP::NG
Manager</a></span></li>
</ul>
</div>
<p class="footer"><a href="index.html">Index</a></p>

View File

@ -5,7 +5,7 @@
<html xmlns="http://www.w3.org/1999/xhtml" lang="fr" xml:lang="fr">
<head>
<meta name="generator" content=
"HTML Tidy for Linux/x86 (vers 7 December 2008), see www.w3.org" />
"HTML Tidy for Linux/x86 (vers 25 March 2009), see www.w3.org" />
<title>Lemonldap::NG documentation: 3-Table-of-contents.html</title>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii" />
@ -116,6 +116,8 @@
<li><a href="#HErrors">Errors</a></li>
<li><a href="#HTraining">Training</a></li>
<li><a href="#HCPANTesterReports">CPAN Tester Reports</a></li>
</ul>
</li>
</ul><strong class="strong">Documentation applicable for LemonLDAP::NG
@ -306,6 +308,10 @@
<li><span class="wikilink"><a href=
"4.9-Reset-password-by-mail.html">Reset password by mail</a></span>
(en)</li>
<li><span class="wikilink"><a href=
"/xwiki/bin/view/NG/CustomFuctions">Create and use custom
functions</a></span> (en)</li>
</ul>
<h3 class="heading-1-1"><span id="HApplicationprotection">Application
@ -519,6 +525,27 @@
"http://linagora.org/contrib/annuaires/formations/websso_lemonldap_ng">The
WebSSO LemonLDAP::NG (LINAGORA)</a></span> (fr)</li>
</ul>
<h4 class="heading-1-1-1"><span id="HCPANTesterReports">CPAN Tester
Reports</span></h4>
<ul class="star">
<li><span class="wikiexternallink"><a href=
"http://www.cpantesters.org/distro/L/Lemonldap-NG-Common.html">LemonLDAP::NG
Common</a></span></li>
<li><span class="wikiexternallink"><a href=
"http://www.cpantesters.org/distro/L/Lemonldap-NG-Handler.html">LemonLDAP::NG
Handler</a></span></li>
<li><span class="wikiexternallink"><a href=
"http://www.cpantesters.org/distro/L/Lemonldap-NG-Portal.html">LemonLDAP::NG
Portal</a></span></li>
<li><span class="wikiexternallink"><a href=
"http://www.cpantesters.org/distro/L/Lemonldap-NG-Manager.html">LemonLDAP::NG
Manager</a></span></li>
</ul>
</div>
<p class="footer"><a href="index.html">Index</a></p>

View File

@ -5,7 +5,7 @@
<html xmlns="http://www.w3.org/1999/xhtml" lang="fr" xml:lang="fr">
<head>
<meta name="generator" content=
"HTML Tidy for Linux/x86 (vers 7 December 2008), see www.w3.org" />
"HTML Tidy for Linux/x86 (vers 25 March 2009), see www.w3.org" />
<title>Lemonldap::NG documentation: 3.1-Install-prerequesites.html</title>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii" />

View File

@ -5,7 +5,7 @@
<html xmlns="http://www.w3.org/1999/xhtml" lang="fr" xml:lang="fr">
<head>
<meta name="generator" content=
"HTML Tidy for Linux/x86 (vers 7 December 2008), see www.w3.org" />
"HTML Tidy for Linux/x86 (vers 25 March 2009), see www.w3.org" />
<title>Lemonldap::NG documentation: 3.2-Install-from-tarball.html</title>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii" />
@ -208,6 +208,9 @@ $ sudo make install PARAM=VALUE PARAM=VALUE ...
<li>PREFIX: installation directory (default: /usr/local)</li>
<li>STORAGECONFFILE: location of default storage configuration file
(default: /usr/local/lemonldap-ng/etc/storage.conf)</li>
<li>CRONDIR: Cronfile directory (default:
$PREFIX/etc/lemonldap-ng/cron.d)</li>

View File

@ -5,7 +5,7 @@
<html xmlns="http://www.w3.org/1999/xhtml" lang="fr" xml:lang="fr">
<head>
<meta name="generator" content=
"HTML Tidy for Linux/x86 (vers 7 December 2008), see www.w3.org" />
"HTML Tidy for Linux/x86 (vers 25 March 2009), see www.w3.org" />
<title>Lemonldap::NG documentation:
3.3-Install-from-debian-packages.html</title>

View File

@ -5,7 +5,7 @@
<html xmlns="http://www.w3.org/1999/xhtml" lang="fr" xml:lang="fr">
<head>
<meta name="generator" content=
"HTML Tidy for Linux/x86 (vers 7 December 2008), see www.w3.org" />
"HTML Tidy for Linux/x86 (vers 25 March 2009), see www.w3.org" />
<title>Lemonldap::NG documentation:
3.3-Install-from-redhat-packages.html</title>

View File

@ -5,7 +5,7 @@
<html xmlns="http://www.w3.org/1999/xhtml" lang="fr" xml:lang="fr">
<head>
<meta name="generator" content=
"HTML Tidy for Linux/x86 (vers 7 December 2008), see www.w3.org" />
"HTML Tidy for Linux/x86 (vers 25 March 2009), see www.w3.org" />
<title>Lemonldap::NG documentation:
3.3-Install-from-suse-packages.html</title>

View File

@ -1,188 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="fr" xml:lang="fr">
<head>
<meta name="generator" content=
"HTML Tidy for Linux/x86 (vers 7 December 2008), see www.w3.org" />
<title>Lemonldap::NG documentation:
3.4-Install-of-MySQL-storage.html</title>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii" />
<style type="text/css">
/*<![CDATA[*/
body{
background: #ddd;
font-family: sans-serif;
font-size: 11pt;
padding: 0 50px;
}
div.main-content{
padding: 10px;
background: #fff;
border: 2px #ccc solid;
}
a{
text-decoration: none;
}
p.footer{
text-align: center;
margin: 5px 0 0 0;
}
.heading-1{
text-align: center;
color: orange;
font-variant: small-caps;
font-size: 20pt;
}
.heading-1-1{
color: orange;
font-size: 14pt;
border-bottom: 2px #ccc solid;
}
pre{
background: #eee;
border: 2px #ccc solid;
padding: 5px;
border-left: 10px #ccc solid;
}
ul.star li{
list-style-type: square;
}
/*]]>*/
</style>
</head>
<body>
<div class="main-content">
<h2 class="heading-1"><span id="HUseofMySQLforconfigurationstorage">Use of
MySQL for configuration storage</span></h2>
<p class="paragraph"></p>
<ul>
<li>
<a href="#HMySQLconfiguration">MySQL configuration</a>
<ul>
<li><a href="#HDatabasecreation">Database creation</a></li>
<li><a href="#HConfigurationtable">Configuration table</a></li>
</ul>
</li>
<li>
<a href="#HLemonLDAP3A3ANGconfiguration">LemonLDAP::NG
configuration</a>
<ul>
<li><a href="#HDefaultconfiguration">Default configuration</a></li>
<li><a href=
"#HOverrideconfigStorageforLemonLDAP3A3ANGmodules">Override
configStorage for LemonLDAP::NG modules</a></li>
</ul>
</li>
</ul>
<h3 class="heading-1-1"><span id="HMySQLconfiguration">MySQL
configuration</span></h3>
<p class="paragraph"></p><strong class="strong">Remark</strong>: we advice
to create a specific user/password in MySQL for LemonLDAP::NG, with rights
on ist database.
<h4 class="heading-1-1-1"><span id="HDatabasecreation">Database
creation</span></h4><br />
<br />
For example, create the database "lemonldap-ng" :<br />
<br />
<div class="code">
<pre>
# mysqladmin create lemonldap-ng
</pre>
</div>
<h4 class="heading-1-1-1"><span id="HConfigurationtable">Configuration
table</span></h4><br />
<br />
To store configuration, use this table creation instruction:<br />
<br />
<div class="code">
<pre>
CREATE TABLE lmConfig (
cfgNum <span class="java-object">int</span> not <span class=
"java-keyword">null</span> primary key,
locationRules text,
exportedHeaders text,
globalStorage text,
globalStorageOptions text,
macros text,
groups text,
portal text,
domain text,
ldapServer text,
ldapPort <span class="java-object">int</span>,
ldapBase text,
securedCookie <span class="java-object">int</span>,
cookieName text,
authentication text,
exportedVars text,
managerDn text,
managerPassword text,
whatToTrace text,
timeout <span class="java-object">int</span>
);
</pre>
</div>
<h3 class="heading-1-1"><span id=
"HLemonLDAP3A3ANGconfiguration">LemonLDAP::NG configuration</span></h3>
<h4 class="heading-1-1-1"><span id="HDefaultconfiguration">Default
configuration</span></h4>
<p class="paragraph"></p>You can set this directly in <strong class=
"strong">storage.conf</strong>:
<p class="paragraph"></p>
<div class="code">
<pre>
type = DBI
dbiChain = DBI:mysql:database=lemonldap-ng;host=1.2.3.4
dbiUser = lemonldap
dbiPassword = password
dbiTable = lmConfig
</pre>
</div>
<h4 class="heading-1-1-1"><span id=
"HOverrideconfigStorageforLemonLDAP3A3ANGmodules">Override configStorage
for LemonLDAP::NG modules</span></h4>
<p class="paragraph"></p>Edit for example <strong class=
"strong">portal/index.pl</strong> or <strong class=
"strong">handler/MyHandler.pm</strong>:
<div class="code">
<pre>
configStorage =&gt; {
type =&gt; <span class="java-quote">"DBI"</span>,
dbiChain =&gt; <span class="java-quote">"dbi:mysql:..."</span>,
dbiUser =&gt; <span class="java-quote">"lemonldap"</span>,
dbiPassword =&gt; <span class="java-quote">"password"</span>,
dbiTable =&gt; <span class="java-quote">"lmConfig"</span>,
},
</pre>
</div>
<p class="paragraph"></p>
</div>
<p class="footer"><a href="index.html">Index</a></p>
</body>
</html>

View File

@ -5,7 +5,7 @@
<html xmlns="http://www.w3.org/1999/xhtml" lang="fr" xml:lang="fr">
<head>
<meta name="generator" content=
"HTML Tidy for Linux/x86 (vers 7 December 2008), see www.w3.org" />
"HTML Tidy for Linux/x86 (vers 25 March 2009), see www.w3.org" />
<title>Lemonldap::NG documentation: 4.1-Configuration-overview.html</title>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii" />

View File

@ -5,7 +5,7 @@
<html xmlns="http://www.w3.org/1999/xhtml" lang="fr" xml:lang="fr">
<head>
<meta name="generator" content=
"HTML Tidy for Linux/x86 (vers 7 December 2008), see www.w3.org" />
"HTML Tidy for Linux/x86 (vers 25 March 2009), see www.w3.org" />
<title>Lemonldap::NG documentation:
4.1-Configuration-parameter-list.html</title>
@ -78,6 +78,9 @@
<li><a href="#HSMTP28resetpasswordbymail29">SMTP (reset password by
mail)</a></li>
<li><a href="#HTemplatescustomization">Templates
customization</a></li>
</ul>
</li>
@ -86,15 +89,22 @@
configuration (Portal only)</a>
<ul>
<li><a href="#HCommon-1">Common</a></li>
<li><a href="#HLDAP">LDAP</a></li>
<li><a href="#HDBI">DBI</a></li>
<li><a href="#HSSL">SSL</a></li>
<li><a href="#HCAS">CAS</a></li>
<li><a href="#HRemote">Remote</a></li>
<li><a href="#HLibertyAlliance">Liberty Alliance</a></li>
<li><a href="#HLibertyAlliance28willbereplacedbySAMLin09529">Liberty
Alliance (will be replaced by SAML in 0.9.5)</a></li>
<li><a href="#HTwitter">Twitter</a></li>
</ul>
</li>
</ul>
@ -128,13 +138,47 @@ keyname =&gt; 'value',
</pre>
</div><br />
<br />
The key name can also be seen when you access directly to the
configuration backend (for example with an LDAP browser if you choose the
<span class="wikilink"><a href="4.3-LDAP-configuration-backend.html">LDAP
configuration backend</a></span>).<br />
<strong class="strong">WARNING</strong>: if you modify these files,
updates will potentially erase your local modifications. You can choose to
copy the provided .pl file and override configuration in the new file, not
known from package, so not erased on updates.<br />
<br />
When a key name contains one or more /, it means that it's multi-level
hash map. For example level1Key / level2Key will be used as:
For example to fork the portal page:
<div class="code">
<pre>
# cp portal/index.pl portal/indexcustom.pl
</pre>
</div><br />
<br />
And adapt apache configuration to server your file instead of default
file:
<div class="code">
<pre>
# vi /etc/lemonldap-ng/apache2.conf
</pre>
</div><br />
<br />
<div class="code">
<pre>
&lt;VirtualHost *&gt;
ServerName auth.example.com<br /><br /> DocumentRoot /usr/local/lemonldap-ng/htdocs/portal/
DirectoryIndex indexcustom.pl<br /><br /> # Other configuration parameters
&lt;/VirtualHost&gt;
</pre>
</div>
<p class="paragraph"></p>The key name can also be seen when you access
directly to the configuration backend (for example with an LDAP browser if
you choose the <span class="wikilink"><a href=
"4.3-LDAP-configuration-backend.html">LDAP configuration
backend</a></span>).
<p class="paragraph"></p>When a key name contains one or more /, it means
that it's multi-level hash map. For example level1Key / level2Key will be
used as:
<div class="code">
<pre>
@ -348,6 +392,26 @@ level1Key =&gt; { level2Key =&gt; 'value' },
<td>&nbsp;</td>
</tr>
<tr class="table-even">
<td>Issuer backend</td>
<td>issuerDB</td>
<td>0.9.5</td>
<td>No</td>
<td>X</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
</table>
<h4 class="heading-1-1-1"><span id="HCommon">Common</span></h4><br />
@ -555,6 +619,26 @@ level1Key =&gt; { level2Key =&gt; 'value' },
</tr>
<tr class="table-even">
<td>Cookie expiration</td>
<td>cookieExpiration</td>
<td>0.9.5</td>
<td>No</td>
<td>X</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
<tr class="table-odd">
<td>Attributes from user backend</td>
<td>exportedVars</td>
@ -574,7 +658,7 @@ level1Key =&gt; { level2Key =&gt; 'value' },
<td>&nbsp;</td>
</tr>
<tr class="table-odd">
<tr class="table-even">
<td>Local groups</td>
<td>groups</td>
@ -594,7 +678,7 @@ level1Key =&gt; { level2Key =&gt; 'value' },
<td>&nbsp;</td>
</tr>
<tr class="table-even">
<tr class="table-odd">
<td>Macros</td>
<td>macros</td>
@ -614,7 +698,7 @@ level1Key =&gt; { level2Key =&gt; 'value' },
<td>&nbsp;</td>
</tr>
<tr class="table-odd">
<tr class="table-even">
<td>Session lifetime for cronjob</td>
<td>timeout</td>
@ -634,7 +718,7 @@ level1Key =&gt; { level2Key =&gt; 'value' },
<td>&nbsp;</td>
</tr>
<tr class="table-even">
<tr class="table-odd">
<td>Syslog facility</td>
<td>syslog</td>
@ -654,7 +738,7 @@ level1Key =&gt; { level2Key =&gt; 'value' },
<td>&nbsp;</td>
</tr>
<tr class="table-odd">
<tr class="table-even">
<td>SOAP activation</td>
<td>Soap</td>
@ -674,7 +758,7 @@ level1Key =&gt; { level2Key =&gt; 'value' },
<td>&nbsp;</td>
</tr>
<tr class="table-even">
<tr class="table-odd">
<td>Attributes exported in SOAP</td>
<td>exportedAttr</td>
@ -694,7 +778,7 @@ level1Key =&gt; { level2Key =&gt; 'value' },
<td>&nbsp;</td>
</tr>
<tr class="table-odd">
<tr class="table-even">
<td>Store password in session</td>
<td>storePassword</td>
@ -714,7 +798,7 @@ level1Key =&gt; { level2Key =&gt; 'value' },
<td>&nbsp;</td>
</tr>
<tr class="table-even">
<tr class="table-odd">
<td>Notification activation</td>
<td>notification</td>
@ -734,7 +818,7 @@ level1Key =&gt; { level2Key =&gt; 'value' },
<td>&nbsp;</td>
</tr>
<tr class="table-odd">
<tr class="table-even">
<td>Trusted domains</td>
<td>trustedDomains</td>
@ -754,6 +838,26 @@ level1Key =&gt; { level2Key =&gt; 'value' },
<td>&nbsp;</td>
</tr>
<tr class="table-odd">
<td>Rule for session granting</td>
<td>grantSessionRule</td>
<td>0.9.5</td>
<td>No</td>
<td>X</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
<tr class="table-even">
<td>Portal object in Menu</td>
@ -1221,26 +1325,6 @@ level1Key =&gt; { level2Key =&gt; 'value' },
</tr>
<tr class="table-odd">
<td>Mail subject</td>
<td>mailSubject</td>
<td>0.9.4</td>
<td>No</td>
<td>X</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
<tr class="table-even">
<td>Regexp for random password</td>
<td>randomPasswordRegexp</td>
@ -1260,8 +1344,28 @@ level1Key =&gt; { level2Key =&gt; 'value' },
<td>&nbsp;</td>
</tr>
<tr class="table-even">
<td>Subject for password mail</td>
<td>mailSubject</td>
<td>0.9.4</td>
<td>No</td>
<td>X</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
<tr class="table-odd">
<td>Body of the mail</td>
<td>Body for password mail</td>
<td>mailBody</td>
@ -1279,12 +1383,266 @@ level1Key =&gt; { level2Key =&gt; 'value' },
<td>&nbsp;</td>
</tr>
<tr class="table-even">
<td>Subject for confirmation mail</td>
<td>mailConfirmSubject</td>
<td>0.9.5</td>
<td>No</td>
<td>X</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
<tr class="table-odd">
<td>Body for confirmation mail</td>
<td>mailConfirmBody</td>
<td>0.9.5</td>
<td>No</td>
<td>X</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
<tr class="table-even">
<td>URL for mail reset</td>
<td>mailUrl</td>
<td>0.9.5</td>
<td>No</td>
<td>X</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
</table><br />
<br />
<strong class="strong">Note</strong>: setting mailBody and mailConfirmBody
will disable the use of default HTML templates.
<h4 class="heading-1-1-1"><span id="HTemplatescustomization">Templates
customization</span></h4><br />
<br />
<table class="wiki-table" cellpadding="0" cellspacing="0" border="0">
<tr>
<th>Full name</th>
<th>Key name</th>
<th>Version</th>
<th>GUI</th>
<th>Portal</th>
</tr>
<tr class="table-odd">
<td>Skin name</td>
<td>portalSkin</td>
<td>0.9.5</td>
<td>No</td>
<td>X</td>
</tr>
<tr class="table-even">
<td>Display logout module</td>
<td>portalDisplayLogout</td>
<td>0.9.5</td>
<td>No</td>
<td>X</td>
</tr>
<tr class="table-odd">
<td>Display reset password form</td>
<td>portalDisplayResetPassword</td>
<td>0.9.5</td>
<td>No</td>
<td>X</td>
</tr>
<tr class="table-even">
<td>Display change password module</td>
<td>portalDisplayChangePassword</td>
<td>0.9.5</td>
<td>No</td>
<td>X</td>
</tr>
<tr class="table-odd">
<td>Display applications list</td>
<td>portalDisplayAppslist</td>
<td>0.9.5</td>
<td>No</td>
<td>X</td>
</tr>
<tr class="table-even">
<td>Allow form autocompletion</td>
<td>portalAutocomplete</td>
<td>0.9.5</td>
<td>No</td>
<td>X</td>
</tr>
<tr class="table-odd">
<td>Require old password (change)</td>
<td>portalRequireOldPassword</td>
<td>0.9.5</td>
<td>No</td>
<td>X</td>
</tr>
<tr class="table-even">
<td>User name session field</td>
<td>portalUserAttr</td>
<td>0.9.5</td>
<td>No</td>
<td>X</td>
</tr>
<tr class="table-odd">
<td>Open links in new window</td>
<td>portalOpenLinkInNewWindow</td>
<td>0.9.5</td>
<td>No</td>
<td>X</td>
</tr>
</table>
<h3 class="heading-1-1"><span id=
"HAuthenticationconfiguration28Portalonly29">Authentication configuration
(Portal only)</span></h3>
<h4 class="heading-1-1-1"><span id="HCommon">Common</span></h4><br />
<br />
<table class="wiki-table" cellpadding="0" cellspacing="0" border="0">
<tr>
<th>Full name</th>
<th>Key name</th>
<th>Version</th>
<th>GUI</th>
</tr>
<tr class="table-odd">
<td>Delete other session</td>
<td>singleSession</td>
<td>0.9.5</td>
<td>No</td>
</tr>
<tr class="table-even">
<td>Delete other session if IP deffer</td>
<td>singleIP</td>
<td>0.9.5</td>
<td>No</td>
</tr>
<tr class="table-odd">
<td>Do not allow several users for 1 IP</td>
<td>singleUserByIP</td>
<td>0.9.5</td>
<td>No</td>
</tr>
<tr class="table-even">
<td>Display other sessions</td>
<td>notifyOther</td>
<td>0.9.5</td>
<td>No</td>
</tr>
<tr class="table-odd">
<td>Display deleted sessions</td>
<td>notifyDeleted</td>
<td>0.9.5</td>
<td>No</td>
</tr>
</table>
<h4 class="heading-1-1-1"><span id="HLDAP">LDAP</span></h4><br />
<br />
@ -1300,7 +1658,7 @@ level1Key =&gt; { level2Key =&gt; 'value' },
</tr>
<tr class="table-odd">
<td>Server</td>
<td>LDAP server or Net::LDAP connexion string</td>
<td>ldapServer</td>
@ -1310,7 +1668,7 @@ level1Key =&gt; { level2Key =&gt; 'value' },
</tr>
<tr class="table-even">
<td>Port</td>
<td>LDAP Port</td>
<td>ldapPort</td>
@ -1320,7 +1678,7 @@ level1Key =&gt; { level2Key =&gt; 'value' },
</tr>
<tr class="table-odd">
<td>Search base</td>
<td>LDAP search base</td>
<td>ldapBase</td>
@ -1450,6 +1808,131 @@ level1Key =&gt; { level2Key =&gt; 'value' },
</tr>
</table>
<h4 class="heading-1-1-1"><span id="HDBI">DBI</span></h4><br />
<br />
<table class="wiki-table" cellpadding="0" cellspacing="0" border="0">
<tr>
<th>Full name</th>
<th>Key name</th>
<th>Version</th>
</tr>
<tr class="table-odd">
<td>Connection chain</td>
<td>dbiAuthChain</td>
<td>0.9.5</td>
</tr>
<tr class="table-even">
<td>Connection user</td>
<td>dbiAuthUser</td>
<td>0.9.5</td>
</tr>
<tr class="table-odd">
<td>Connection password</td>
<td>dbiAuthPassword</td>
<td>0.9.5</td>
</tr>
<tr class="table-even">
<td>Authentication table</td>
<td>dbiAuthTable</td>
<td>0.9.5</td>
</tr>
<tr class="table-odd">
<td>Login column</td>
<td>dbiAuthLoginCol</td>
<td>0.9.5</td>
</tr>
<tr class="table-even">
<td>Password column</td>
<td>dbiAuthPasswordCol</td>
<td>0.9.5</td>
</tr>
<tr class="table-odd">
<td>Password hash</td>
<td>dbiAuthPasswordHash</td>
<td>0.9.5</td>
</tr>
<tr class="table-even">
<td>UserDB connection chain</td>
<td>dbiUserChain</td>
<td>0.9.5</td>
</tr>
<tr class="table-odd">
<td>UserDB connection user</td>
<td>dbiUserUser</td>
<td>0.9.5</td>
</tr>
<tr class="table-even">
<td>UserDB connection password</td>
<td>dbiUserPassword</td>
<td>0.9.5</td>
</tr>
<tr class="table-odd">
<td>UserDB table</td>
<td>dbiUserTable</td>
<td>0.9.5</td>
</tr>
<tr class="table-even">
<td>Mail column</td>
<td>dbiPasswordMailCol</td>
<td>0.9.5</td>
</tr>
<tr class="table-odd">
<td>Pivot from auth table</td>
<td>authPivot</td>
<td>0.9.5</td>
</tr>
<tr class="table-even">
<td>Pivot from user table</td>
<td>userPivot</td>
<td>0.9.5</td>
</tr>
</table>
<h4 class="heading-1-1-1"><span id="HSSL">SSL</span></h4><br />
<br />
@ -1595,8 +2078,9 @@ level1Key =&gt; { level2Key =&gt; 'value' },
</tr>
</table>
<h4 class="heading-1-1-1"><span id="HLibertyAlliance">Liberty
Alliance</span></h4><br />
<h4 class="heading-1-1-1"><span id=
"HLibertyAlliance28willbereplacedbySAMLin09529">Liberty Alliance (will be
replaced by SAML in 0.9.5)</span></h4><br />
<br />
<table class="wiki-table" cellpadding="0" cellspacing="0" border="0">
@ -1699,8 +2183,42 @@ level1Key =&gt; { level2Key =&gt; 'value' },
<td>No</td>
</tr>
</table><br />
</table>
<h4 class="heading-1-1-1"><span id="HTwitter">Twitter</span></h4><br />
<br />
<table class="wiki-table" cellpadding="0" cellspacing="0" border="0">
<tr>
<th>Full name</th>
<th>Key name</th>
<th>Version</th>
<th>GUI</th>
</tr>
<tr class="table-odd">
<td>twitter application key</td>
<td>twitterKey</td>
<td>0.9.5</td>
<td>No*</td>
</tr>
<tr class="table-even">
<td>twitter application secret</td>
<td>twitterSecret</td>
<td>0.9.5</td>
<td>No*</td>
</tr>
</table>
</div>
<p class="footer"><a href="index.html">Index</a></p>

View File

@ -1,324 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="fr" xml:lang="fr">
<head>
<meta name="generator" content=
"HTML Tidy for Linux/x86 (vers 7 December 2008), see www.w3.org" />
<title>Lemonldap::NG documentation: 4.1-Configure-portal-menu.html</title>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii" />
<style type="text/css">
/*<![CDATA[*/
body{
background: #ddd;
font-family: sans-serif;
font-size: 11pt;
padding: 0 50px;
}
div.main-content{
padding: 10px;
background: #fff;
border: 2px #ccc solid;
}
a{
text-decoration: none;
}
p.footer{
text-align: center;
margin: 5px 0 0 0;
}
.heading-1{
text-align: center;
color: orange;
font-variant: small-caps;
font-size: 20pt;
}
.heading-1-1{
color: orange;
font-size: 14pt;
border-bottom: 2px #ccc solid;
}
pre{
background: #eee;
border: 2px #ccc solid;
padding: 5px;
border-left: 10px #ccc solid;
}
ul.star li{
list-style-type: square;
}
/*]]>*/
</style>
</head>
<body>
<div class="main-content">
<h2 class="heading-1"><span id="HEnhancedmenu">Enhanced menu</span></h2>
<p class="paragraph"></p>
<ul>
<li><a href="#HPresentation">Presentation</a></li>
<li><a href="#HActivatethemenuintheportal">Activate the menu in the
portal</a></li>
<li><a href="#HSetthevisibilityofeachmodules">Set the visibility of each
modules</a></li>
<li>
<a href="#HConfigureapplicationslist">Configure applications list</a>
<ul>
<li><a href="#HDTD">DTD</a></li>
<li><a href="#HParametersdefinition">Parameters definition</a></li>
<li><a href="#HSampleXMLfile">Sample XML file</a></li>
</ul>
</li>
</ul><strong class="strong">Documentation applicable for LemonLDAP::NG
&gt;= 0.9.3</strong>
<h3 class="heading-1-1"><span id="HPresentation">Presentation</span></h3>
<p class="paragraph"></p>Menu is a new Portal module providing these
functionalities:
<ul class="star">
<li>Display an application list to the connected user, with possibility
to hide applications he did not have access to.</li>
<li>Provide a simple "change password" form that respect Password Policy
LDAP draft.</li>
<li>Logout with confirmation.</li>
</ul>
<h3 class="heading-1-1"><span id="HActivatethemenuintheportal">Activate
the menu in the portal</span></h3>
<p class="paragraph"></p>With a 0.9.3 fresh installation, the default
portal/index.pl enables the menu. For the others, add this to the perl
code:
<p class="paragraph"></p>
<div class="code">
<pre>
<span class=
"java-keyword">if</span> ( $portal-&gt;process() ) {<br /><br /> # HTML::Template object creation
my $template = HTML::Template-&gt;<span class="java-keyword">new</span>(
filename =&gt; <span class=
"java-quote">"$skin_dir/$skin/menu.tpl"</span>,
die_on_bad_params =&gt; 0,
cache =&gt; 0,
filter =&gt; sub { $portal-&gt;translate_template(@_) }
);<br /><br /> # Menu creation
use Lemonldap::NG::Portal::Menu;
my $menu = Lemonldap::NG::Portal::Menu-&gt;<span class=
"java-keyword">new</span>(
{
portalObject =&gt; $portal,
apps =&gt; {
xmlfile =&gt; <span class="java-quote">"$appsxmlfile"</span>,
imgpath =&gt; <span class="java-quote">"$appsimgpath"</span>,
},
modules =&gt; {
appslist =&gt; 1,
password =&gt; USER_CAN_CHANGE_PASSWORD,
logout =&gt; DISPLAY_LOGOUT,
},
# CUSTOM FUNCTION : <span class=
"java-keyword">if</span> you want to create customFunctions in rules, declare them here
#customFunctions =&gt; 'function1 function2',
}
);<br /><br /> $template-&gt;param( AUTH_USER =&gt; $portal-&gt;{sessionInfo}-&gt;{$user_attr} );
$template-&gt;param( AUTOCOMPLETE =&gt; AUTOCOMPLETE );
$template-&gt;param( SKIN =&gt; $skin )
$template-&gt;param( AUTH_ERROR =&gt; $menu-&gt;error );
$template-&gt;param( AUTH_ERROR_TYPE =&gt; $menu-&gt;error_type );
$template-&gt;param( DISPLAY_APPSLIST =&gt; $menu-&gt;displayModule(<span class="java-quote">"appslist"</span>) );
$template-&gt;param( DISPLAY_PASSWORD =&gt; $menu-&gt;displayModule(<span class="java-quote">"password"</span>) );
$template-&gt;param( DISPLAY_LOGOUT =&gt; $menu-&gt;displayModule(<span class="java-quote">"logout"</span>) );
$template-&gt;param( DISPLAY_TAB =&gt; $menu-&gt;displayTab );
$template-&gt;param( LOGOUT_URL =&gt; <span class=
"java-quote">"$ENV{SCRIPT_NAME}?logout=1"</span> );
$template-&gt;param( REQUIRE_OLDPASSWORD =&gt; REQUIRE_OLDPASSWORD );
<span class=
"java-keyword">if</span> ( $menu-&gt;displayModule(<span class="java-quote">"appslist"</span>) ) {
$template-&gt;param( APPSLIST_MENU =&gt; $menu-&gt;appslistMenu );
$template-&gt;param( APPSLIST_DESC =&gt; $menu-&gt;appslistDescription );
}<br /><br /> print $portal-&gt;header('text/html; charset=utf8');
print $template-&gt;output;
}
</pre>
</div>
<h3 class="heading-1-1"><span id="HSetthevisibilityofeachmodules">Set the
visibility of each modules</span></h3>
<p class="paragraph"></p>In the source code of the portal, you have :
<p class="paragraph"></p>
<div class="code">
<pre>
modules =&gt; {
appslist =&gt; 1,
password =&gt; USER_CAN_CHANGE_PASSWORD,
logout =&gt; DISPLAY_LOGOUT,
},
</pre>
</div>
<p class="paragraph"></p>"1" means the module is always displayed, and "0"
means never. But you can adapt it to the user profile, for example display
the password modification form only to user with employeeType equal to
"internal" :
<p class="paragraph"></p>
<div class="code">
<pre>
modules =&gt; {
appslist =&gt; 1,
password =&gt; '$employeeType =~ /binternalb/',
logout =&gt; DISPLAY_LOGOUT,
},
</pre>
</div>
<h3 class="heading-1-1"><span id="HConfigureapplicationslist">Configure
applications list</span></h3>
<h4 class="heading-1-1-1"><span id="HDTD">DTD</span></h4>
<p class="paragraph"></p>The XML applications list must respect this DTD:
<p class="paragraph"></p>
<div class="code">
<pre>
&lt;!ELEMENT menu (category*) &gt;<br /><br />&lt;!ELEMENT category (application*, category*) &gt;
&lt;!ATTLIST category name CDATA #REQUIRED &gt;<br /><br />&lt;!ELEMENT application (name, uri?, description?, logo?, screenshot?, display?) &gt;
&lt;!ATTLIST application id ID #REQUIRED &gt;<br /><br />&lt;!ELEMENT name ( #PCDATA ) &gt;
&lt;!ELEMENT uri ( #PCDATA ) &gt;
&lt;!ELEMENT description ( #PCDATA ) &gt;
&lt;!ELEMENT logo ( #PCDATA ) &gt;
&lt;!ELEMENT screenshot ( #PCDATA ) &gt;
&lt;!ELEMENT display ( #PCDATA ) &gt;
</pre>
</div>
<h4 class="heading-1-1-1"><span id="HParametersdefinition">Parameters
definition</span></h4>
<ul class="star">
<li>Category:
<ul class="star">
<li>Name of the category (required)</li>
</ul>
</li>
<li>Application:
<ul class="star">
<li>ID: unique id of the application inside XML file
(required).</li>
<li>Name: friendly name of the applications (required).</li>
<li>URI: full URI of the application, with http(s)://, and path,
page, etc.</li>
<li>Description: description of the application.</li>
<li>Logo: file name of the logo.</li>
<li>Screenshot: file name of the screenshot.</li>
<li>Display:
<ul class="star">
<li>"auto": display application only if the user has access to
it.</li>
<li>"on": always display.</li>
<li>"off": never display.</li>
</ul>
</li>
</ul>
</li>
</ul>The menu must contains at least one category. Each category can
contain applications and categories. An application cannot contain a
category. An application must be inside a category.
<h4 class="heading-1-1-1"><span id="HSampleXMLfile">Sample XML
file</span></h4>
<p class="paragraph"></p>Now you can configure your applications list, in
/etc/lemonldap-ng/apps-list.xml. For example:
<p class="paragraph"></p>
<div class="code">
<pre>
&lt;?xml version=<span class="java-quote">"1.0"</span> encoding=<span class=
"java-quote">"utf-8"</span> standalone=<span class=
"java-quote">"no"</span>?&gt;
&lt;!DOCTYPE menu SYSTEM <span class="java-quote">"apps-list.dtd"</span>&gt;
&lt;menu&gt;
&lt;category name=<span class="java-quote">"Business"</span>&gt;
&lt;application id=<span class="java-quote">"aaa"</span>&gt;
&lt;name&gt;AAA&lt;/name&gt;
&lt;uri&gt;<span class="nobr"><a href=
"http://test.ow2.org/aaa&amp;#60;/uri&amp;#62;">http://test.ow2.org/aaa&lt;/uri&gt;</a></span>
&lt;description&gt;AAA description&lt;/description&gt;
&lt;logo&gt;aaa-logo.gif&lt;/logo&gt;
&lt;display&gt;auto&lt;/display&gt;
&lt;/application&gt;
&lt;application id=<span class="java-quote">"bbb"</span>&gt;
&lt;name&gt;BBB&lt;/name&gt;
&lt;uri&gt;<span class="nobr"><a href=
"http://test.ow2.org/bbb/login.">http://test.ow2.org/bbb/login.</a></span><span class="java-keyword">do</span>&lt;/uri&gt;
&lt;description&gt;BBB description&lt;/description&gt;
&lt;logo&gt;bbb-logo.gif&lt;/logo&gt;
&lt;display&gt;on&lt;/display&gt;
&lt;/application&gt;
&lt;/category&gt;
&lt;category name=<span class="java-quote">"Technical"</span>&gt;
&lt;category name=<span class="java-quote">"Directories"</span>&gt;
&lt;application id=<span class="java-quote">"pla"</span>&gt;
&lt;name&gt;phpLDAPAdmin&lt;/name&gt;
&lt;uri&gt;<span class="nobr"><a href=
"http://phpldapadmin.ow2.org&amp;#60;/uri&amp;#62;">http://phpldapadmin.ow2.org&lt;/uri&gt;</a></span>
&lt;description&gt;LDAP directory administration&lt;/description&gt;
&lt;logo&gt;pla-logo.gif&lt;/logo&gt;
&lt;display&gt;auto&lt;/display&gt;
&lt;/application&gt;
&lt;/category&gt;
&lt;category name=<span class=
"java-quote">"Application servers"</span>&gt;
&lt;application id=<span class="java-quote">"probe"</span>&gt;
&lt;name&gt;Probe&lt;/name&gt;
&lt;uri&gt;<span class="nobr"><a href=
"http://probe.ow2.org&amp;#60;/uri&amp;#62;">http://probe.ow2.org&lt;/uri&gt;</a></span>
&lt;description&gt;Tomcat stats&lt;/description&gt;
&lt;logo&gt;probe-logo.gif&lt;/logo&gt;
&lt;display&gt;auto&lt;/display&gt;
&lt;/application&gt;
&lt;/category&gt;
&lt;/category&gt;
&lt;/menu&gt;
</pre>
</div>
</div>
<p class="footer"><a href="index.html">Index</a></p>
</body>
</html>

View File

@ -1,340 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="fr" xml:lang="fr">
<head>
<meta name="generator" content=
"HTML Tidy for Linux/x86 (vers 7 December 2008), see www.w3.org" />
<title>Lemonldap::NG documentation:
4.1-HTML-templates-customization.html</title>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii" />
<style type="text/css">
/*<![CDATA[*/
body{
background: #ddd;
font-family: sans-serif;
font-size: 11pt;
padding: 0 50px;
}
div.main-content{
padding: 10px;
background: #fff;
border: 2px #ccc solid;
}
a{
text-decoration: none;
}
p.footer{
text-align: center;
margin: 5px 0 0 0;
}
.heading-1{
text-align: center;
color: orange;
font-variant: small-caps;
font-size: 20pt;
}
.heading-1-1{
color: orange;
font-size: 14pt;
border-bottom: 2px #ccc solid;
}
pre{
background: #eee;
border: 2px #ccc solid;
padding: 5px;
border-left: 10px #ccc solid;
}
ul.star li{
list-style-type: square;
}
/*]]>*/
</style>
</head>
<body>
<div class="main-content">
<h2 class="heading-1"><span id="HPortalHTMLtemplatesdesign">Portal HTML
templates design</span></h2>
<p class="paragraph"></p>
<ul>
<li><a href=
"#HLemonLDAP3A3ANGskinsandHTML3A3ATemplatePerlmodule">LemonLDAP::NG
skins and HTML::Template Perl module</a></li>
<li><a href="#HTemplatesconfiguration">Templates configuration</a></li>
<li>
<a href="#HTemplatesvariablesprovidedbyportal2Findexpl">Templates
variables provided by portal/index.pl</a>
<ul>
<li><a href="#HCommonvariables">Common variables</a></li>
<li><a href="#Hlogintplspecificvariables">login.tpl specific
variables</a></li>
<li><a href="#Hmenutplspecificvariables">menu.tpl specific
variables</a></li>
<li><a href="#Hnotificationtplspecificvariables">notification.tpl
specific variables</a></li>
</ul>
</li>
<li><a href="#HTemplatestructure">Template structure</a></li>
<li>
<a href="#HInternationalization28i18n29">Internationalization
(i18n)</a>
<ul>
<li><a href="#HExampleofmonolingualtemplate">Example of mono-lingual
template</a></li>
<li><a href="#HExampleofmultilingualtemplate">Example of
multi-lingual template</a></li>
</ul>
</li>
</ul><strong class="strong">Documentation applicable for LemonLDAP::NG
&gt;= 0.9.3</strong>
<h3 class="heading-1-1"><span id=
"HLemonLDAP3A3ANGskinsandHTML3A3ATemplatePerlmodule">LemonLDAP::NG skins
and HTML::Template Perl module</span></h3>
<p class="paragraph"></p>LemonLDAP::NG templates are designed for
<span class="wikiexternallink"><a href=
"http://search.cpan.org/~samtregar/HTML-Template-2.9/">HTML::Templates
Perl module</a></span>.
<p class="paragraph"></p>LemonLDAP::NG portal use "skins", located in the
skins/ directory of the portal. Each skin is a particular directory, for
example skins/pastel/ for the provided skin.
<p class="paragraph"></p>Here is the list of required template files:
<ul class="star">
<li>login.tpl: template for the login page.</li>
<li>menu.tpl: template for the menu page.</li>
<li>error.tpl: template for the error page.</li>
<li>header.tpl: common header (included in above templates).</li>
<li>footer.tpl: common footer (included in above templates).</li>
<li>notification.tpl: template to display notifications.</li>
<li>password.tpl: template for the password modification tab.</li>
</ul>Each template include a CSS file, named "styles.css".
<p class="paragraph"></p>Icons and javascripts are in skins/common/.
<p class="paragraph"></p>To create your own skin, just copy the default
skin to another directory (eg.: skins/myskin/) and edit templates and CSS
files. Advanced customization can be done by editing the portal/index.pl.
<h3 class="heading-1-1"><span id="HTemplatesconfiguration">Templates
configuration</span></h3>
<p class="paragraph"></p>In portal/index.pl, you can find some
configuration variables:
<ul class="star">
<li>XWiki.MySkin: name of the skin (ex: "pastel")</li>
<li>$skin_dir: full system path to skins</li>
<li>$appsxmlfile: application XML file (<span class="wikilink"><a href=
"4.1-Configure-portal-menu.html">learn more</a></span>)</li>
<li>$appsimgpath: web path to application logos</li>
<li>$user_attr: session attribute to display as connected user (ex:
"uid")</li>
<li>USER_CAN_CHANGE_PASSWORD: constant to enable the password
modification tab</li>
<li>REQUIRE_OLDPASSWORD: constant to display the "old password"
field</li>
<li>DISPLAY_LOGOUT: constant to display the logout tab</li>
<li>AUTOCOMPLETE: constant to set the autocomplete tag in forms (default
to "on").</li>
<li>DISPLAY_RESETPASSWORD: constant to display the "reset password"
form.</li>
</ul>And in Menu constructor, you can use condition for tab display
(<span class="wikilink"><a href="4.1-Configure-portal-menu.html">learn
more</a></span>)
<h3 class="heading-1-1"><span id=
"HTemplatesvariablesprovidedbyportal2Findexpl">Templates variables
provided by portal/index.pl</span></h3>
<p class="paragraph"></p>When you edit/create a template file, you can use
some variables provided by the portal script. Of course, you can add
variables by editing the portal/index.pl.
<h4 class="heading-1-1-1"><span id="HCommonvariables">Common
variables</span></h4>
<ul class="star">
<li>AUTH_ERROR: error text returned by the portal.</li>
<li>AUTH_ERROR_TYPE: type of the error:
<ul class="star">
<li>positive: the action was successful;</li>
<li>negative: a problem occured;</li>
<li>warning: not a fatal error, need user action.</li>
</ul>
</li>
<li>REQUIRE_OLDPASSWORD: boolean to display "old password" field</li>
<li>DISPLAY_PASSWORD: boolean to display the password tab</li>
<li>AUTOCOMPLETE: "on" or "off" to enable/disable autocomplete in
forms</li>
<li>SKIN: name of the skin</li>
</ul>
<h4 class="heading-1-1-1"><span id="Hlogintplspecificvariables">login.tpl
specific variables</span></h4>
<ul class="star">
<li>AUTH_URL: URL submitted for redirection</li>
<li>DISPLAY_FORM: set to 1 if a form can be displayed</li>
<li>LOGIN: submitted login</li>
<li>DISPLAY_RESETPASSWORD: boolean to display the "reset password"
form</li>
</ul>
<h4 class="heading-1-1-1"><span id="Hmenutplspecificvariables">menu.tpl
specific variables</span></h4>
<ul class="star">
<li>LOGOUT_URL: URL for logout</li>
<li>DISPLAY_APPSLIST: boolean to display the appslist tab</li>
<li>DISPLAY_LOGOUT: boolean to display the logout tab</li>
<li>DISPLAY_TAB: name of the pre-selected tab</li>
<li>APPSLIST_MENU: html code of appslist menu div</li>
<li>APPSLIST_DESC: html code of appslist description divs</li>
<li>AUTH_USER: identity of connected user</li>
</ul>
<h4 class="heading-1-1-1"><span id=
"Hnotificationtplspecificvariables">notification.tpl specific
variables</span></h4>
<ul class="star">
<li>NOTIFICATION: content of notifications (HTML code)</li>
</ul>
<h3 class="heading-1-1"><span id="HTemplatestructure">Template
structure</span></h3>
<p class="paragraph"></p>The default LemonLDAP::NG template follow this
structure:
<ul class="star">
<li>html
<ul class="star">
<li>body
<ul class="star">
<li>div id=page
<ul class="star">
<li>div id=header</li>
<li>(html content)</li>
<li>div id=footer</li>
</ul>
</li>
</ul>
</li>
</ul>
</li>
</ul>
<h3 class="heading-1-1"><span id=
"HInternationalization28i18n29">Internationalization (i18n)</span></h3>
<p class="paragraph"></p>LemonLDAP::NG portal is able to display an HTML
template according to the user's browser language.
<p class="paragraph"></p>In order to work, you have to set inside the
template the translations of all displayed text. Error message translation
is already done inside LemonLDAP::NG Portal module.
<h4 class="heading-1-1-1"><span id="HExampleofmonolingualtemplate">Example
of mono-lingual template</span></h4>
<p class="paragraph"></p>
<div class="code">
<pre>
&lt;p&gt;&lt;label&gt;Login&lt;/label&gt;
&lt;input name=<span class="java-quote">"user"</span> type=<span class=
"java-quote">"text"</span> size=<span class="java-quote">"30"</span> /&gt;
&lt;/p&gt;
</pre>
</div>
<p class="paragraph"></p>The string "Login" is set in the template and
will not be translated.
<h4 class="heading-1-1-1"><span id=
"HExampleofmultilingualtemplate">Example of multi-lingual
template</span></h4>
<p class="paragraph"></p>
<div class="code">
<pre>
&lt;p&gt;&lt;label&gt;&lt;lang en=<span class=
"java-quote">"Login"</span> fr=<span class=
"java-quote">"Identifiant"</span> /&gt;&lt;/label&gt;
&lt;input name=<span class="java-quote">"user"</span> type=<span class=
"java-quote">"text"</span> size=<span class="java-quote">"30"</span> /&gt;
&lt;/p&gt;
</pre>
</div>
<p class="paragraph"></p>The markup &lt;lang&gt; will be catched by
LemonLDAP::NG and only the wanted translation will be displayed. If the
user's language has no corresponding translation, the first translation is
selected. So you can set your default language by choosing the first
translation ("en" in the above example).
<p class="paragraph"></p><strong class="strong">Warning:</strong> don't
forget the quotes and the trailing slash of the markup!
</div>
<p class="footer"><a href="index.html">Index</a></p>
</body>
</html>

View File

@ -5,7 +5,7 @@
<html xmlns="http://www.w3.org/1999/xhtml" lang="fr" xml:lang="fr">
<head>
<meta name="generator" content=
"HTML Tidy for Linux/x86 (vers 7 December 2008), see www.w3.org" />
"HTML Tidy for Linux/x86 (vers 25 March 2009), see www.w3.org" />
<title>Lemonldap::NG documentation: 4.1-RBAC-model.html</title>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii" />
@ -221,7 +221,16 @@ Auth-Roles =&gt; $bbbRoles
</div><br />
<br />
Now the protected application can read in the header HTTP_AUTH_ROLES the
role of the user.
role of the user.<br />
<br />
<strong class="strong">Note</strong>: if you have more than one role for
an application, you can join those roles with a separator (ex: ||):
<div class="code">
<pre>
aaaRole =&gt; join(' || ', (map {/uid=(.*),ou=aaa.*/} (grep{/ou=aaa/} split(';',$ssoRoles)))
</pre>
</div>
</div>
<p class="footer"><a href="index.html">Index</a></p>

View File

@ -1,183 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="fr" xml:lang="fr">
<head>
<meta name="generator" content=
"HTML Tidy for Linux/x86 (vers 7 December 2008), see www.w3.org" />
<title>Lemonldap::NG documentation:
4.2-Configure-password-policy.html</title>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii" />
<style type="text/css">
/*<![CDATA[*/
body{
background: #ddd;
font-family: sans-serif;
font-size: 11pt;
padding: 0 50px;
}
div.main-content{
padding: 10px;
background: #fff;
border: 2px #ccc solid;
}
a{
text-decoration: none;
}
p.footer{
text-align: center;
margin: 5px 0 0 0;
}
.heading-1{
text-align: center;
color: orange;
font-variant: small-caps;
font-size: 20pt;
}
.heading-1-1{
color: orange;
font-size: 14pt;
border-bottom: 2px #ccc solid;
}
pre{
background: #eee;
border: 2px #ccc solid;
padding: 5px;
border-left: 10px #ccc solid;
}
ul.star li{
list-style-type: square;
}
/*]]>*/
</style>
</head>
<body>
<div class="main-content">
<h2 class="heading-1"><span id="HUsingPasswordPolicy">Using Password
Policy</span></h2>
<p class="paragraph"></p>
<ul>
<li><a href="#HThePasswordPolicyStandard">The Password Policy
Standard</a></li>
<li>
<a href="#HPrerequisites">Prerequisites</a>
<ul>
<li><a href="#HCompliantLDAPserver">Compliant LDAP server</a></li>
<li><a href="#HPerlNet3A3ALDAPmodule">Perl Net::LDAP module</a></li>
</ul>
</li>
<li><a href="#HPasswordPolicyinLemonLDAP3A3ANG">Password Policy in
LemonLDAP::NG</a></li>
<li><a href="#HSeealso">See also</a></li>
</ul><strong class="strong">Documentation applicable for LemonLDAP::NG
&gt;= 0.9.1</strong>
<h3 class="heading-1-1"><span id="HThePasswordPolicyStandard">The Password
Policy Standard</span></h3>
<p class="paragraph"></p>Password Policy is still now a draft of an LDAPv3
extension and can be read here: <span class="wikiexternallink"><a href=
"https://opends.dev.java.net/public/standards/draft-behera-ldap-password-policy.txt">
https://opends.dev.java.net/public/standards/draft-behera-ldap-password-policy.txt</a></span>
(en). Some LDAP servers implements it, like OpenLDAP and its ppolicy
overlay.
<h3 class="heading-1-1"><span id=
"HPrerequisites">Prerequisites</span></h3>
<h4 class="heading-1-1-1"><span id="HCompliantLDAPserver">Compliant LDAP
server</span></h4>
<p class="paragraph"></p>Your LDAP server must provide the LDAP Password
Policy Control (OID: 1.3.6.1.4.1.42.2.27.8.5.1).
<p class="paragraph"></p>Documentation on how to set ppolicy in OpenLDAP
can be found here: <span class="wikiexternallink"><a href=
"http://www.linagora.org/contrib/annuaires/documentations/overlay_ppolicy_openldap">
http://www.linagora.org/contrib/annuaires/documentations/overlay_ppolicy_openldap</a></span>
(fr).
<h4 class="heading-1-1-1"><span id="HPerlNet3A3ALDAPmodule">Perl Net::LDAP
module</span></h4>
<p class="paragraph"></p>The Net::LDAP::Control::PasswordPolicy is
available since Perl-LDAP 0.36. But some bugs relative to this modules wer
found, so we advice to take at leaste 0.39. Please update your Perl
installation if you want to deal with Password Policy in LemonLDAP::NG:
<span class="wikiexternallink"><a href=
"http://ldap.perl.org/">http://ldap.perl.org/</a></span> (en).
<h3 class="heading-1-1"><span id=
"HPasswordPolicyinLemonLDAP3A3ANG">Password Policy in
LemonLDAP::NG</span></h3>
<p class="paragraph"></p>The Password Policy functionality is available
since LemonLDAP::NG 0.9.1. It allows to display on the portal page 2 new
error messages:
<ul class="star">
<li>Your account is locked</li>
<li>Your password has expired</li>
</ul>Since LemonLDAP:NG 0.9.3, password policy is also used in menu, with
the password changement form. It handles the following errors:
<ul class="star">
<li>Password too short</li>
<li>Password in history</li>
<li>Password too young</li>
</ul>LemonLDAP::NG also notify the user for:
<ul class="star">
<li>Password expiration time</li>
<li>Password graces used</li>
</ul>Since LemonLDAP:NG 0.9.4, password policy can be used to force
password change is the password was reset (attribute pwdReset: TRUE in
user entry).
<p class="paragraph"></p>To activate Password Policy, you have to set a
new parameter inside you portal perl script (e.g. portal/index.pl), like:
<p class="paragraph"></p>
<div class="code">
<pre>
#!/usr/bin/perl<br /><br />use Lemonldap::NG::Portal::SharedConf;<br /><br />my $portal = Lemonldap::NG::Portal::SharedConf-&gt;<span class="java-keyword">new</span>(
{
configStorage =&gt; {
type =&gt; 'File',
dirName =&gt; '/<span class="java-keyword">var</span>/lib/config',
},
<b class="bold">ldapPpolicyControl =&gt; 1</b>,
}
);
</pre>
</div>
<h3 class="heading-1-1"><span id="HSeealso">See also</span></h3>
<ul class="star">
<li><span class="wikilink"><a href="/xwiki/bin/view/NG/AuthLDAP">Auth
LDAP</a></span></li>
<li><span class="wikilink"><a href=
"/xwiki/bin/view/NG/PasswordDBLDAP">Password DBLDAP</a></span></li>
</ul>
</div>
<p class="footer"><a href="index.html">Index</a></p>
</body>
</html>

View File

@ -5,7 +5,7 @@
<html xmlns="http://www.w3.org/1999/xhtml" lang="fr" xml:lang="fr">
<head>
<meta name="generator" content=
"HTML Tidy for Linux/x86 (vers 7 December 2008), see www.w3.org" />
"HTML Tidy for Linux/x86 (vers 25 March 2009), see www.w3.org" />
<title>Lemonldap::NG documentation: 4.2-Configure-portal-menu.html</title>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii" />

View File

@ -5,7 +5,7 @@
<html xmlns="http://www.w3.org/1999/xhtml" lang="fr" xml:lang="fr">
<head>
<meta name="generator" content=
"HTML Tidy for Linux/x86 (vers 7 December 2008), see www.w3.org" />
"HTML Tidy for Linux/x86 (vers 25 March 2009), see www.w3.org" />
<title>Lemonldap::NG documentation:
4.2-HTML-templates-customization.html</title>

View File

@ -1,59 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="fr" xml:lang="fr">
<head>
<meta name="generator" content=
"HTML Tidy for Linux/x86 (vers 7 December 2008), see www.w3.org" />
<title>Lemonldap::NG documentation: 4.3-Configure-SOAP-fr.html</title>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii" />
<style type="text/css">
/*<![CDATA[*/
body{
background: #ddd;
font-family: sans-serif;
font-size: 11pt;
padding: 0 50px;
}
div.main-content{
padding: 10px;
background: #fff;
border: 2px #ccc solid;
}
a{
text-decoration: none;
}
p.footer{
text-align: center;
margin: 5px 0 0 0;
}
.heading-1{
text-align: center;
color: orange;
font-variant: small-caps;
font-size: 20pt;
}
.heading-1-1{
color: orange;
font-size: 14pt;
border-bottom: 2px #ccc solid;
}
pre{
background: #eee;
border: 2px #ccc solid;
padding: 5px;
border-left: 10px #ccc solid;
}
ul.star li{
list-style-type: square;
}
/*]]>*/
</style>
</head>
<body>
<p class="footer"><a href="index.html">Index</a></p>
</body>
</html>

View File

@ -5,7 +5,7 @@
<html xmlns="http://www.w3.org/1999/xhtml" lang="fr" xml:lang="fr">
<head>
<meta name="generator" content=
"HTML Tidy for Linux/x86 (vers 7 December 2008), see www.w3.org" />
"HTML Tidy for Linux/x86 (vers 25 March 2009), see www.w3.org" />
<title>Lemonldap::NG documentation:
4.3-File-configuration-backend.html</title>

View File

@ -5,7 +5,7 @@
<html xmlns="http://www.w3.org/1999/xhtml" lang="fr" xml:lang="fr">
<head>
<meta name="generator" content=
"HTML Tidy for Linux/x86 (vers 7 December 2008), see www.w3.org" />
"HTML Tidy for Linux/x86 (vers 25 March 2009), see www.w3.org" />
<title>Lemonldap::NG documentation:
4.3-LDAP-configuration-backend.html</title>

View File

@ -5,7 +5,7 @@
<html xmlns="http://www.w3.org/1999/xhtml" lang="fr" xml:lang="fr">
<head>
<meta name="generator" content=
"HTML Tidy for Linux/x86 (vers 7 December 2008), see www.w3.org" />
"HTML Tidy for Linux/x86 (vers 25 March 2009), see www.w3.org" />
<title>Lemonldap::NG documentation:
4.3-MySQL-configuration-backend.html</title>

View File

@ -5,7 +5,7 @@
<html xmlns="http://www.w3.org/1999/xhtml" lang="fr" xml:lang="fr">
<head>
<meta name="generator" content=
"HTML Tidy for Linux/x86 (vers 7 December 2008), see www.w3.org" />
"HTML Tidy for Linux/x86 (vers 25 March 2009), see www.w3.org" />
<title>Lemonldap::NG documentation:
4.3-SOAP-configuration-backend.html</title>

View File

@ -5,7 +5,7 @@
<html xmlns="http://www.w3.org/1999/xhtml" lang="fr" xml:lang="fr">
<head>
<meta name="generator" content=
"HTML Tidy for Linux/x86 (vers 7 December 2008), see www.w3.org" />
"HTML Tidy for Linux/x86 (vers 25 March 2009), see www.w3.org" />
<title>Lemonldap::NG documentation: 4.4-File-session-backend.html</title>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii" />

View File

@ -5,7 +5,7 @@
<html xmlns="http://www.w3.org/1999/xhtml" lang="fr" xml:lang="fr">
<head>
<meta name="generator" content=
"HTML Tidy for Linux/x86 (vers 7 December 2008), see www.w3.org" />
"HTML Tidy for Linux/x86 (vers 25 March 2009), see www.w3.org" />
<title>Lemonldap::NG documentation: 4.4-LDAP-session-backend.html</title>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii" />

View File

@ -5,7 +5,7 @@
<html xmlns="http://www.w3.org/1999/xhtml" lang="fr" xml:lang="fr">
<head>
<meta name="generator" content=
"HTML Tidy for Linux/x86 (vers 7 December 2008), see www.w3.org" />
"HTML Tidy for Linux/x86 (vers 25 March 2009), see www.w3.org" />
<title>Lemonldap::NG documentation: 4.4-MySQL-session-backend.html</title>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii" />

View File

@ -5,7 +5,7 @@
<html xmlns="http://www.w3.org/1999/xhtml" lang="fr" xml:lang="fr">
<head>
<meta name="generator" content=
"HTML Tidy for Linux/x86 (vers 7 December 2008), see www.w3.org" />
"HTML Tidy for Linux/x86 (vers 25 March 2009), see www.w3.org" />
<title>Lemonldap::NG documentation: 4.4-SOAP-session-backend.html</title>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii" />
@ -99,7 +99,7 @@
<div class="code">
<pre>
SOAP =&gt; 1,
Soap =&gt; 1,
</pre>
</div><br />
<br />

View File

@ -5,7 +5,7 @@
<html xmlns="http://www.w3.org/1999/xhtml" lang="fr" xml:lang="fr">
<head>
<meta name="generator" content=
"HTML Tidy for Linux/x86 (vers 7 December 2008), see www.w3.org" />
"HTML Tidy for Linux/x86 (vers 25 March 2009), see www.w3.org" />
<title>Lemonldap::NG documentation:
4.5-Apache-and-Kerberos-authentication-backend.html</title>

View File

@ -5,7 +5,7 @@
<html xmlns="http://www.w3.org/1999/xhtml" lang="fr" xml:lang="fr">
<head>
<meta name="generator" content=
"HTML Tidy for Linux/x86 (vers 7 December 2008), see www.w3.org" />
"HTML Tidy for Linux/x86 (vers 25 March 2009), see www.w3.org" />
<title>Lemonldap::NG documentation:
4.5-CAS-authentication-backend.html</title>

View File

@ -1,215 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="fr" xml:lang="fr">
<head>
<meta name="generator" content=
"HTML Tidy for Linux/x86 (vers 7 December 2008), see www.w3.org" />
<title>Lemonldap::NG documentation: 4.5-Chain-portals.html</title>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii" />
<style type="text/css">
/*<![CDATA[*/
body{
background: #ddd;
font-family: sans-serif;
font-size: 11pt;
padding: 0 50px;
}
div.main-content{
padding: 10px;
background: #fff;
border: 2px #ccc solid;
}
a{
text-decoration: none;
}
p.footer{
text-align: center;
margin: 5px 0 0 0;
}
.heading-1{
text-align: center;
color: orange;
font-variant: small-caps;
font-size: 20pt;
}
.heading-1-1{
color: orange;
font-size: 14pt;
border-bottom: 2px #ccc solid;
}
pre{
background: #eee;
border: 2px #ccc solid;
padding: 5px;
border-left: 10px #ccc solid;
}
ul.star li{
list-style-type: square;
}
/*]]>*/
</style>
</head>
<body>
<div class="main-content">
<h2 class="heading-1"><span id="HChainingLemonpdap3A3ANGportals">Chaining
Lemonpdap::NG portals</span></h2>
<p class="paragraph"></p>Since version 0.9.4, Lemonldap::NG is able to
delegate authentication to a remote portal. This can be use to share
authentication without sharing session database to some handlers.
<p class="paragraph"></p>
<ul>
<li>
<a href="#HPrinciple">Principle</a>
<ul>
<li><a href="#Hkinematic">kinematic</a></li>
</ul>
</li>
<li>
<a href="#HConfiguration">Configuration</a>
<ul>
<li><a href="#HMainLemonldap3A3ANGstructure">Main Lemonldap::NG
structure</a></li>
<li><a href="#HSecondaryLemonldap3A3ANGstructure">Secondary
Lemonldap::NG structure</a></li>
</ul>
</li>
<li><a href="#HExample3Ainteroperabilitybetween2organizations">Example :
interoperability between 2 organizations</a></li>
</ul>
<h3 class="heading-1-1"><span id="HPrinciple">Principle</span></h3>
<ul class="star">
<li>The main portal is configured to use CDA (cross-domain
authentication: set just "CDA =&gt; 1" in the portal). The secondary
portal is declared in the manager of the main Lemonldap::NG structure
(else user will be rejected).</li>
<li>The portal of the secondary Lemonldap::NG structure is configured to
delegate authentication to a remote portal. A request to the main
session database is done to be sure that the session exists&nbsp;:</li>
<li>If "exportedAttr" is set, only those attributes are copied in the
session database of the secondary Lemonldap::NG structure. Else, all
datas are copied in the session database.</li>
</ul>
<h4 class="heading-1-1-1"><span id="Hkinematic">kinematic</span></h4>
<p class="paragraph"></p><img src="remote-principle.png" alt=
"remote-principle.png" />
<ol>
<li>User tries to access to an application in the secondary
Lemonldap::NG structure without having a session in this area</li>
<li>Redirection to the portal of the secondary area (transparent)</li>
<li>Redirection to the portal of the main area and normal authentication
(if not done before)</li>
<li>Redirection to the portal of the secondary area (transparent)</li>
<li>Secondary portal check if remote session is available. It can be
done via direct access to the session database or using <span class=
"wikilink"><a href="4.3-Configure-SOAP-fr.htmlSessionStorage">SOAP
access</a></span>. Then it creates the session (with attribute
filter)</li>
<li>User can now access to the protected application</li>
</ol>Note that if the user is already authenticated on the first portal,
all redirections are transparents.
<h3 class="heading-1-1"><span id=
"HConfiguration">Configuration</span></h3>
<h4 class="heading-1-1-1"><span id="HMainLemonldap3A3ANGstructure">Main
Lemonldap::NG structure</span></h4>
<ul class="star">
<li>Portal : set "CDA =&gt; 1",</li>
<li>Manager : declare the secondary portal in protected sites.</li>
</ul>
<h4 class="heading-1-1-1"><span id=
"HSecondaryLemonldap3A3ANGstructure">Secondary Lemonldap::NG
structure</span></h4>
<p class="paragraph"></p>Configure the portal to use the remote
Lemonldap::NG structure. Example
<div class="code">
<pre>
my $p = Lemonldap::NG::Portal-&gt;<span class="java-keyword">new</span>( {
authentication =&gt; 'Remote',
userDB =&gt; 'Remote',
remotePortal =&gt; 'https://remote/',
remoteGlobalStorage =&gt; 'Lemonldap::NG::Common::Apache::Session::SOAP',
remoteGlobalStorageOptions =&gt; {
proxy =&gt; 'https://remote/index.pl/sessions',
ns =&gt; 'https://remote/Lemonldap/NG/Common/CGI/SOAPService',
},
# Optional: restrict exported attributes in the secondary area
exportedAttr =&gt; 'uid cn mail',
... as usual ...
});
</pre>
</div>
<h3 class="heading-1-1"><span id=
"HExample3Ainteroperabilitybetween2organizations">Example :
interoperability between 2 organizations</span></h3>
<p class="paragraph"></p>Using this, we can do a very simple
interoperability system between 2 organizations using both Lemonldap::NG :
<ul class="star">
<li>each area has 2 portals :
<ul class="star">
<li>1 normal</li>
<li>1 type Remote that delegates authentication to the second
organization (just an other file on the same server)</li>
</ul>
</li>
<li>The normal portal has a link included in the authentication form
pointing to the remote portal for the users of the other
organization</li>
</ul>So on each main portal, internal users can access normaly, and users
issued from the other organization have just to click on the link&nbsp;:
<p class="paragraph"></p><img src="remote-interoperability.png" alt=
"remote-interoperability.png" />
<ol>
<li>1 user try to access to the portal</li>
<li>external users click to be redirected to the remote type portal</li>
<li>after redirection, normal authentication in the remote portal</li>
<li>redirection to the remote type portal</li>
<li>validation of the session : external user have now a local
session</li>
</ol>
</div>
<p class="footer"><a href="index.html">Index</a></p>
</body>
</html>

View File

@ -5,7 +5,7 @@
<html xmlns="http://www.w3.org/1999/xhtml" lang="fr" xml:lang="fr">
<head>
<meta name="generator" content=
"HTML Tidy for Linux/x86 (vers 7 December 2008), see www.w3.org" />
"HTML Tidy for Linux/x86 (vers 25 March 2009), see www.w3.org" />
<title>Lemonldap::NG documentation:
4.5-LDAP-authentication-backend.html</title>

View File

@ -5,7 +5,7 @@
<html xmlns="http://www.w3.org/1999/xhtml" lang="fr" xml:lang="fr">
<head>
<meta name="generator" content=
"HTML Tidy for Linux/x86 (vers 7 December 2008), see www.w3.org" />
"HTML Tidy for Linux/x86 (vers 25 March 2009), see www.w3.org" />
<title>Lemonldap::NG documentation:
4.5-Liberty-Alliance-authentication-backend-fr.html</title>

View File

@ -5,7 +5,7 @@
<html xmlns="http://www.w3.org/1999/xhtml" lang="fr" xml:lang="fr">
<head>
<meta name="generator" content=
"HTML Tidy for Linux/x86 (vers 7 December 2008), see www.w3.org" />
"HTML Tidy for Linux/x86 (vers 25 March 2009), see www.w3.org" />
<title>Lemonldap::NG documentation:
4.5-Multiple-authentication-backend.html</title>

View File

@ -5,7 +5,7 @@
<html xmlns="http://www.w3.org/1999/xhtml" lang="fr" xml:lang="fr">
<head>
<meta name="generator" content=
"HTML Tidy for Linux/x86 (vers 7 December 2008), see www.w3.org" />
"HTML Tidy for Linux/x86 (vers 25 March 2009), see www.w3.org" />
<title>Lemonldap::NG documentation:
4.5-Proxy-authentication-module.html</title>
@ -115,8 +115,8 @@ Soap =&gt; 1,
&lt;/Directory&gt;
</pre>
</div>
<p class="footer"><a href="index.html">Index</a></p>
</div>
<p class="footer"><a href="index.html">Index</a></p>
</body>
</html>

View File

@ -5,7 +5,7 @@
<html xmlns="http://www.w3.org/1999/xhtml" lang="fr" xml:lang="fr">
<head>
<meta name="generator" content=
"HTML Tidy for Linux/x86 (vers 7 December 2008), see www.w3.org" />
"HTML Tidy for Linux/x86 (vers 25 March 2009), see www.w3.org" />
<title>Lemonldap::NG documentation:
4.5-Remote-authentication-backend.html</title>

View File

@ -5,7 +5,7 @@
<html xmlns="http://www.w3.org/1999/xhtml" lang="fr" xml:lang="fr">
<head>
<meta name="generator" content=
"HTML Tidy for Linux/x86 (vers 7 December 2008), see www.w3.org" />
"HTML Tidy for Linux/x86 (vers 25 March 2009), see www.w3.org" />
<title>Lemonldap::NG documentation:
4.5-SAML-authentication-backend.html</title>

View File

@ -5,7 +5,7 @@
<html xmlns="http://www.w3.org/1999/xhtml" lang="fr" xml:lang="fr">
<head>
<meta name="generator" content=
"HTML Tidy for Linux/x86 (vers 7 December 2008), see www.w3.org" />
"HTML Tidy for Linux/x86 (vers 25 March 2009), see www.w3.org" />
<title>Lemonldap::NG documentation:
4.5-SSL-authentication-backend.html</title>
@ -155,6 +155,7 @@ SSLEngine On
SSLVerifyClient optional
SSLVerifyDepth 1
SSLOptions +StdEnvVars
SSLUserName SSL_CLIENT_S_DN_CN
</pre>
</div>
@ -176,13 +177,15 @@ SSLRequire =&gt; 0,
<li>authentication: the authentication method, here SSL (can be LDAP,
Apache, etc.)</li>
<li>SSLVar: field of the certificate to use in mapping</li>
<li>SSLVar: field of the certificate affected to $user internal
variable</li>
<li>SSLLDAPField: attribute in LDAP directory to use in mapping</li>
<li>SSLRequire: if true, do not display authentication form if SSL
certificate authentication fails (false by defautl).</li>
</ul>
</ul><strong class="strong">Note</strong>: SSLLDAPField is not required if
you do not use userDBLDAP.
</div>
<p class="footer"><a href="index.html">Index</a></p>

View File

@ -5,7 +5,7 @@
<html xmlns="http://www.w3.org/1999/xhtml" lang="fr" xml:lang="fr">
<head>
<meta name="generator" content=
"HTML Tidy for Linux/x86 (vers 7 December 2008), see www.w3.org" />
"HTML Tidy for Linux/x86 (vers 25 March 2009), see www.w3.org" />
<title>Lemonldap::NG documentation: 4.6-LDAP-user-backend.html</title>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii" />
@ -127,7 +127,7 @@ ldapGroupBase =&gt; 'ou=groups,dc=example,dc=com',
ldapGroupObjectClass =&gt; 'groupOfUniqueNames',
ldapGroupAttributeName =&gt; 'uniqueMember',
ldapGroupAttributeNameUser =&gt; 'dn',
ldapGroupAttributeNameSearch =&gt; '[<span class="java-quote">"cn"</span>]',
ldapGroupAttributeNameSearch =&gt; ['cn'],
</pre>
</div>
@ -151,7 +151,7 @@ ldapGroupBase =&gt; 'ou=groups,dc=example,dc=com',
ldapGroupObjectClass =&gt; 'group',
ldapGroupAttributeName =&gt; 'member',
ldapGroupAttributeNameUser =&gt; 'dn',
ldapGroupAttributeNameSearch =&gt; '[<span class="java-quote">"cn"</span>]',
ldapGroupAttributeNameSearch =&gt; ['cn'],
</pre>
</div>

View File

@ -5,7 +5,7 @@
<html xmlns="http://www.w3.org/1999/xhtml" lang="fr" xml:lang="fr">
<head>
<meta name="generator" content=
"HTML Tidy for Linux/x86 (vers 7 December 2008), see www.w3.org" />
"HTML Tidy for Linux/x86 (vers 25 March 2009), see www.w3.org" />
<title>Lemonldap::NG documentation: 4.6-Multiple-user-backend.html</title>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii" />

View File

@ -5,7 +5,7 @@
<html xmlns="http://www.w3.org/1999/xhtml" lang="fr" xml:lang="fr">
<head>
<meta name="generator" content=
"HTML Tidy for Linux/x86 (vers 7 December 2008), see www.w3.org" />
"HTML Tidy for Linux/x86 (vers 25 March 2009), see www.w3.org" />
<title>Lemonldap::NG documentation: 4.6-Null-user-backend.html</title>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii" />

View File

@ -5,7 +5,7 @@
<html xmlns="http://www.w3.org/1999/xhtml" lang="fr" xml:lang="fr">
<head>
<meta name="generator" content=
"HTML Tidy for Linux/x86 (vers 7 December 2008), see www.w3.org" />
"HTML Tidy for Linux/x86 (vers 25 March 2009), see www.w3.org" />
<title>Lemonldap::NG documentation: 4.6-SAML-user-backend.html</title>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii" />

View File

@ -5,7 +5,7 @@
<html xmlns="http://www.w3.org/1999/xhtml" lang="fr" xml:lang="fr">
<head>
<meta name="generator" content=
"HTML Tidy for Linux/x86 (vers 7 December 2008), see www.w3.org" />
"HTML Tidy for Linux/x86 (vers 25 March 2009), see www.w3.org" />
<title>Lemonldap::NG documentation: 4.7-LDAP-password-backend.html</title>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii" />

View File

@ -5,7 +5,7 @@
<html xmlns="http://www.w3.org/1999/xhtml" lang="fr" xml:lang="fr">
<head>
<meta name="generator" content=
"HTML Tidy for Linux/x86 (vers 7 December 2008), see www.w3.org" />
"HTML Tidy for Linux/x86 (vers 25 March 2009), see www.w3.org" />
<title>Lemonldap::NG documentation: 4.8-Configure-LDAP-schema.html</title>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii" />

View File

@ -5,7 +5,7 @@
<html xmlns="http://www.w3.org/1999/xhtml" lang="fr" xml:lang="fr">
<head>
<meta name="generator" content=
"HTML Tidy for Linux/x86 (vers 7 December 2008), see www.w3.org" />
"HTML Tidy for Linux/x86 (vers 25 March 2009), see www.w3.org" />
<title>Lemonldap::NG documentation:
4.8-Configure-password-policy.html</title>

View File

@ -5,7 +5,7 @@
<html xmlns="http://www.w3.org/1999/xhtml" lang="fr" xml:lang="fr">
<head>
<meta name="generator" content=
"HTML Tidy for Linux/x86 (vers 7 December 2008), see www.w3.org" />
"HTML Tidy for Linux/x86 (vers 25 March 2009), see www.w3.org" />
<title>Lemonldap::NG documentation:
4.9-Cross-domain-authentication.html</title>

View File

@ -5,7 +5,7 @@
<html xmlns="http://www.w3.org/1999/xhtml" lang="fr" xml:lang="fr">
<head>
<meta name="generator" content=
"HTML Tidy for Linux/x86 (vers 7 December 2008), see www.w3.org" />
"HTML Tidy for Linux/x86 (vers 25 March 2009), see www.w3.org" />
<title>Lemonldap::NG documentation: 4.9-Notification-system.html</title>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii" />

View File

@ -5,7 +5,7 @@
<html xmlns="http://www.w3.org/1999/xhtml" lang="fr" xml:lang="fr">
<head>
<meta name="generator" content=
"HTML Tidy for Linux/x86 (vers 7 December 2008), see www.w3.org" />
"HTML Tidy for Linux/x86 (vers 25 March 2009), see www.w3.org" />
<title>Lemonldap::NG documentation: 4.9-Reset-password-by-mail.html</title>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii" />

View File

@ -5,7 +5,7 @@
<html xmlns="http://www.w3.org/1999/xhtml" lang="fr" xml:lang="fr">
<head>
<meta name="generator" content=
"HTML Tidy for Linux/x86 (vers 7 December 2008), see www.w3.org" />
"HTML Tidy for Linux/x86 (vers 25 March 2009), see www.w3.org" />
<title>Lemonldap::NG documentation:
4.9-Several-independant-portals.html</title>
@ -117,6 +117,23 @@
</pre>
</div>
<p class="paragraph"></p>You can also use $vhost inside portal URL, for
example:
<p class="paragraph"></p>
<div class="code">
<pre>
<b class="bold">PACKAGE</b>-&gt;init(
{
# Dynamic portal
portal =&gt; ' <span class=
"java-quote">"http://"</span>.$vhost.<span class=
"java-quote">"/portal/"</span> ',
});
</pre>
</div>
<p class="paragraph"></p><strong class="strong">Note</strong>: $vhost will
be replaced by $apacheRequest-&gt;hostname for each HTTP request.
@ -159,7 +176,7 @@ my $portal_url = <span class=
<h3 class="heading-1-1"><span id="HApacheconfiguration">Apache
configuration</span></h3><br />
<br />
You will have to configure 2 wirtual hosts for the portals, and set a
You will have to configure 2 virtual hosts for the portals, and set a
specific ErrorDocument for protected applications. Do this in
etc/apache2.conf:<br />
<br />

View File

@ -5,7 +5,7 @@
<html xmlns="http://www.w3.org/1999/xhtml" lang="fr" xml:lang="fr">
<head>
<meta name="generator" content=
"HTML Tidy for Linux/x86 (vers 7 December 2008), see www.w3.org" />
"HTML Tidy for Linux/x86 (vers 25 March 2009), see www.w3.org" />
<title>Lemonldap::NG documentation: 5-Appli-Bugzilla.html</title>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii" />

View File

@ -5,7 +5,7 @@
<html xmlns="http://www.w3.org/1999/xhtml" lang="fr" xml:lang="fr">
<head>
<meta name="generator" content=
"HTML Tidy for Linux/x86 (vers 7 December 2008), see www.w3.org" />
"HTML Tidy for Linux/x86 (vers 25 March 2009), see www.w3.org" />
<title>Lemonldap::NG documentation: 5-Appli-Dokuwiki.html</title>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii" />

View File

@ -5,7 +5,7 @@
<html xmlns="http://www.w3.org/1999/xhtml" lang="fr" xml:lang="fr">
<head>
<meta name="generator" content=
"HTML Tidy for Linux/x86 (vers 7 December 2008), see www.w3.org" />
"HTML Tidy for Linux/x86 (vers 25 March 2009), see www.w3.org" />
<title>Lemonldap::NG documentation: 5-Appli-GLPI.html</title>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii" />

View File

@ -5,7 +5,7 @@
<html xmlns="http://www.w3.org/1999/xhtml" lang="fr" xml:lang="fr">
<head>
<meta name="generator" content=
"HTML Tidy for Linux/x86 (vers 7 December 2008), see www.w3.org" />
"HTML Tidy for Linux/x86 (vers 25 March 2009), see www.w3.org" />
<title>Lemonldap::NG documentation: 5-Appli-GRR.html</title>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii" />

View File

@ -5,7 +5,7 @@
<html xmlns="http://www.w3.org/1999/xhtml" lang="fr" xml:lang="fr">
<head>
<meta name="generator" content=
"HTML Tidy for Linux/x86 (vers 7 December 2008), see www.w3.org" />
"HTML Tidy for Linux/x86 (vers 25 March 2009), see www.w3.org" />
<title>Lemonldap::NG documentation:
5-Appli-HTTP-Basic-Authentication.html</title>

View File

@ -5,7 +5,7 @@
<html xmlns="http://www.w3.org/1999/xhtml" lang="fr" xml:lang="fr">
<head>
<meta name="generator" content=
"HTML Tidy for Linux/x86 (vers 7 December 2008), see www.w3.org" />
"HTML Tidy for Linux/x86 (vers 25 March 2009), see www.w3.org" />
<title>Lemonldap::NG documentation: 5-Appli-Sympa.html</title>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii" />

View File

@ -5,7 +5,7 @@
<html xmlns="http://www.w3.org/1999/xhtml" lang="fr" xml:lang="fr">
<head>
<meta name="generator" content=
"HTML Tidy for Linux/x86 (vers 7 December 2008), see www.w3.org" />
"HTML Tidy for Linux/x86 (vers 25 March 2009), see www.w3.org" />
<title>Lemonldap::NG documentation: 5-Appli-Tomcat-Valve.html</title>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii" />

View File

@ -5,7 +5,7 @@
<html xmlns="http://www.w3.org/1999/xhtml" lang="fr" xml:lang="fr">
<head>
<meta name="generator" content=
"HTML Tidy for Linux/x86 (vers 7 December 2008), see www.w3.org" />
"HTML Tidy for Linux/x86 (vers 25 March 2009), see www.w3.org" />
<title>Lemonldap::NG documentation: 5-Appli-phpLDAPadmin.html</title>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii" />

View File

@ -5,7 +5,7 @@
<html xmlns="http://www.w3.org/1999/xhtml" lang="fr" xml:lang="fr">
<head>
<meta name="generator" content=
"HTML Tidy for Linux/x86 (vers 7 December 2008), see www.w3.org" />
"HTML Tidy for Linux/x86 (vers 25 March 2009), see www.w3.org" />
<title>Lemonldap::NG documentation: 5-Appli-self-made.html</title>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii" />

View File

@ -5,7 +5,7 @@
<html xmlns="http://www.w3.org/1999/xhtml" lang="fr" xml:lang="fr">
<head>
<meta name="generator" content=
"HTML Tidy for Linux/x86 (vers 7 December 2008), see www.w3.org" />
"HTML Tidy for Linux/x86 (vers 25 March 2009), see www.w3.org" />
<title>Lemonldap::NG documentation: 6-Accounting.html</title>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii" />

View File

@ -5,7 +5,7 @@
<html xmlns="http://www.w3.org/1999/xhtml" lang="fr" xml:lang="fr">
<head>
<meta name="generator" content=
"HTML Tidy for Linux/x86 (vers 7 December 2008), see www.w3.org" />
"HTML Tidy for Linux/x86 (vers 25 March 2009), see www.w3.org" />
<title>Lemonldap::NG documentation: 6-Contacts.html</title>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii" />

View File

@ -5,7 +5,7 @@
<html xmlns="http://www.w3.org/1999/xhtml" lang="fr" xml:lang="fr">
<head>
<meta name="generator" content=
"HTML Tidy for Linux/x86 (vers 7 December 2008), see www.w3.org" />
"HTML Tidy for Linux/x86 (vers 25 March 2009), see www.w3.org" />
<title>Lemonldap::NG documentation: 6-Errors-fr.html</title>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii" />

View File

@ -5,7 +5,7 @@
<html xmlns="http://www.w3.org/1999/xhtml" lang="fr" xml:lang="fr">
<head>
<meta name="generator" content=
"HTML Tidy for Linux/x86 (vers 7 December 2008), see www.w3.org" />
"HTML Tidy for Linux/x86 (vers 25 March 2009), see www.w3.org" />
<title>Lemonldap::NG documentation: 6-Errors.html</title>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii" />

View File

@ -5,7 +5,7 @@
<html xmlns="http://www.w3.org/1999/xhtml" lang="fr" xml:lang="fr">
<head>
<meta name="generator" content=
"HTML Tidy for Linux/x86 (vers 7 December 2008), see www.w3.org" />
"HTML Tidy for Linux/x86 (vers 25 March 2009), see www.w3.org" />
<title>Lemonldap::NG documentation: 6-References.html</title>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii" />

View File

@ -5,7 +5,7 @@
<html xmlns="http://www.w3.org/1999/xhtml" lang="fr" xml:lang="fr">
<head>
<meta name="generator" content=
"HTML Tidy for Linux/x86 (vers 7 December 2008), see www.w3.org" />
"HTML Tidy for Linux/x86 (vers 25 March 2009), see www.w3.org" />
<title>Lemonldap::NG documentation: 6-Roadmap.html</title>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii" />

View File

@ -147,7 +147,7 @@ while ( my ( $url, $file ) = each %$docs ) {
$div += @t;
@t = ( $_ =~ /<\/div/i );
$div -= @t;
$ind-- unless ($div);
#$ind-- unless ($div);
s/\r//g;
utf8::decode($_);