Commit 3a4eb388 authored by Yadd's avatar Yadd
Browse files

Update doc

parent 9f731e3f
...@@ -90,7 +90,7 @@ ...@@ -90,7 +90,7 @@
<form action="/start" accept-charset="utf-8" class="search" id="dw__search" method="get" role="search"><div class="no"><input type="hidden" name="do" value="search" /><input type="text" id="qsearch__in" accesskey="f" name="id" class="edit" title="[F]" /><input type="submit" value="Search" class="button" title="Search" /><div id="qsearch__out" class="ajax_qsearch JSpopup"></div></div></form> <form action="/start" accept-charset="utf-8" class="search" id="dw__search" method="get" role="search"><div class="no"><input type="hidden" name="do" value="search" /><input type="text" id="qsearch__in" accesskey="f" name="id" class="edit" title="[F]" /><input type="submit" value="Search" class="button" title="Search" /><div id="qsearch__out" class="ajax_qsearch JSpopup"></div></div></form>
<ul class="nav navbar-nav"> <ul class="nav navbar-nav">
<li><a href="/documentation/2.0/applications/img/icons.png?do=login&amp;sectok=2736f0d057a1684b484bf6a293e8c618" class="action login" rel="nofollow" title="Login"><i class="glyphicon glyphicon-log-in"></i> Login</a></li> </ul> <li><a href="/documentation/2.0/applications/img/icons.png?do=login&amp;sectok=99cb60cc3ff21b244ff3c7b965219f58" class="action login" rel="nofollow" title="Login"><i class="glyphicon glyphicon-log-in"></i> Login</a></li> </ul>
</div> </div>
...@@ -204,7 +204,7 @@ You&#039;ve followed a link to a topic that doesn&#039;t exist yet. If permissio ...@@ -204,7 +204,7 @@ You&#039;ve followed a link to a topic that doesn&#039;t exist yet. If permissio
</div><!-- /site --> </div><!-- /site -->
<div class="no"><img src="/lib/exe/indexer.php?id=documentation%3A2.0%3Aapplications%3Aimg%3Aicons.png&amp;1487766884" width="2" height="1" alt="" /></div> <div class="no"><img src="/lib/exe/indexer.php?id=documentation%3A2.0%3Aapplications%3Aimg%3Aicons.png&amp;1487916345" width="2" height="1" alt="" /></div>
<div id="screen__mode" class="no"> <div id="screen__mode" class="no">
<span class="visible-xs"></span> <span class="visible-xs"></span>
<span class="visible-sm"></span> <span class="visible-sm"></span>
......
...@@ -90,7 +90,7 @@ ...@@ -90,7 +90,7 @@
<form action="/start" accept-charset="utf-8" class="search" id="dw__search" method="get" role="search"><div class="no"><input type="hidden" name="do" value="search" /><input type="text" id="qsearch__in" accesskey="f" name="id" class="edit" title="[F]" /><input type="submit" value="Search" class="button" title="Search" /><div id="qsearch__out" class="ajax_qsearch JSpopup"></div></div></form> <form action="/start" accept-charset="utf-8" class="search" id="dw__search" method="get" role="search"><div class="no"><input type="hidden" name="do" value="search" /><input type="text" id="qsearch__in" accesskey="f" name="id" class="edit" title="[F]" /><input type="submit" value="Search" class="button" title="Search" /><div id="qsearch__out" class="ajax_qsearch JSpopup"></div></div></form>
<ul class="nav navbar-nav"> <ul class="nav navbar-nav">
<li><a href="/documentation/2.0/applications/img/loader.gif?do=login&amp;sectok=2736f0d057a1684b484bf6a293e8c618" class="action login" rel="nofollow" title="Login"><i class="glyphicon glyphicon-log-in"></i> Login</a></li> </ul> <li><a href="/documentation/2.0/applications/img/loader.gif?do=login&amp;sectok=99cb60cc3ff21b244ff3c7b965219f58" class="action login" rel="nofollow" title="Login"><i class="glyphicon glyphicon-log-in"></i> Login</a></li> </ul>
</div> </div>
...@@ -204,7 +204,7 @@ You&#039;ve followed a link to a topic that doesn&#039;t exist yet. If permissio ...@@ -204,7 +204,7 @@ You&#039;ve followed a link to a topic that doesn&#039;t exist yet. If permissio
</div><!-- /site --> </div><!-- /site -->
<div class="no"><img src="/lib/exe/indexer.php?id=documentation%3A2.0%3Aapplications%3Aimg%3Aloader.gif&amp;1487766883" width="2" height="1" alt="" /></div> <div class="no"><img src="/lib/exe/indexer.php?id=documentation%3A2.0%3Aapplications%3Aimg%3Aloader.gif&amp;1487916345" width="2" height="1" alt="" /></div>
<div id="screen__mode" class="no"> <div id="screen__mode" class="no">
<span class="visible-xs"></span> <span class="visible-xs"></span>
<span class="visible-sm"></span> <span class="visible-sm"></span>
......
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8" />
<title>documentation:2.0:authrest</title>
<meta name="generator" content="DokuWiki"/>
<meta name="robots" content="noindex,nofollow"/>
<meta name="keywords" content="documentation,2.0,authrest"/>
<link rel="search" type="application/opensearchdescription+xml" href="lib/exe/opensearch.html" title="LemonLDAP::NG"/>
<link rel="start" href="authrest.html"/>
<link rel="contents" href="authrest.html" title="Sitemap"/>
<link rel="stylesheet" type="text/css" href="lib/exe/css.php.t.bootstrap3.css"/>
<!-- //if:usedebianlibs
<link rel="stylesheet" type="text/css" href="/javascript/bootstrap/css/bootstrap.min.css" />
//elsif:useexternallibs
<link rel="stylesheet" type="text/css" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css"></script>
//elsif:cssminified
<link rel="stylesheet" type="text/css" href="/static/bwr/bootstrap/dist/css/bootstrap.min.css" />
//else -->
<link rel="stylesheet" type="text/css" href="/static/bwr/bootstrap/dist/css/bootstrap.css" />
<!-- //endif -->
<script type="text/javascript">/*<![CDATA[*/var NS='documentation:2.0';var JSINFO = {"id":"documentation:2.0:authrest","namespace":"documentation:2.0"};
/*!]]>*/</script>
<script type="text/javascript" charset="utf-8" src="lib/exe/js.php.t.bootstrap3.js"></script>
<!-- //if:usedebianlibs
<script type="text/javascript" src="/javascript/jquery/jquery.min.js"></script>
//elsif:useexternallibs
<script type="text/javascript" src="http://code.jquery.com/jquery-2.2.0.min.js"></script>
//elsif:jsminified
<script type="text/javascript" src="/static/bwr/jquery/dist/jquery.min.js"></script>
//else -->
<script type="text/javascript" src="/static/bwr/jquery/dist/jquery.js"></script>
<!-- //endif -->
<!-- //if:usedebianlibs
<script type="text/javascript" src="/javascript/jquery-ui/jquery-ui.min.js"></script>
//elsif:useexternallibs
<script type="text/javascript" src="http://code.jquery.com/ui/1.10.4/jquery-ui.min.js"></script>
//elsif:jsminified
<script type="text/javascript" src="/lib/scripts/jquery-ui.min.js"></script>
//else -->
<script type="text/javascript" src="/lib/scripts/jquery-ui.js"></script>
<!-- //endif -->
</head>
<body>
<div class="dokuwiki export container">
<!-- TOC START -->
<div id="dw__toc">
<h3 class="toggle">Table of Contents</h3>
<div>
<ul class="toc">
<li class="level1"><div class="li"><a href="#presentation">Presentation</a></div></li>
<li class="level1"><div class="li"><a href="#configuration">Configuration</a></div></li>
<li class="level1"><div class="li"><a href="#rest_dialog">REST Dialog</a></div></li>
</ul>
</div>
</div>
<!-- TOC END -->
<h1 class="sectionedit1" id="rest">REST</h1>
<div class="level1">
<div class="table sectionedit2"><table class="inline table table-bordered table-striped">
<thead>
<tr class="row0 roweven">
<th class="col0 centeralign"> Authentication </th><th class="col1 centeralign"> Users </th><th class="col2 centeralign"> Password </th>
</tr>
</thead>
<tr class="row1 rowodd">
<td class="col0 centeralign"></td><td class="col1 centeralign"></td><td class="col2 centeralign"></td>
</tr>
</table></div>
<!-- EDIT2 TABLE [21-90] -->
</div>
<!-- EDIT1 SECTION "REST" [1-91] -->
<h2 class="sectionedit3" id="presentation">Presentation</h2>
<div class="level2">
<p>
This backend can be used to delegate authentication to some webservices.
</p>
</div>
<!-- EDIT3 SECTION "Presentation" [92-191] -->
<h2 class="sectionedit4" id="configuration">Configuration</h2>
<div class="level2">
<p>
In Manager, go in <code>General Parameters</code> &gt; <code>Authentication modules</code> and choose REST for authentication, users and/or password modules.
</p>
<p>
Then you just have to set REST <abbr title="Uniform Resource Locator">URL</abbr> to provide wanted services:
</p>
<div class="table sectionedit5"><table class="inline table table-bordered table-striped">
<thead>
<tr class="row0 roweven">
<th class="col0 centeralign"> Module </th><th class="col1 centeralign"> Parameter </th>
</tr>
</thead>
<tr class="row1 rowodd">
<td class="col0 centeralign"> Authentication </td><td class="col1 centeralign"> Authentication <abbr title="Uniform Resource Locator">URL</abbr> </td>
</tr>
<tr class="row2 roweven">
<td class="col0 centeralign"> User database </td><td class="col1 centeralign"> User data <abbr title="Uniform Resource Locator">URL</abbr> </td>
</tr>
<tr class="row3 rowodd">
<td class="col0 centeralign"> Password </td><td class="col1 centeralign"> Password confirmation <abbr title="Uniform Resource Locator">URL</abbr> </td>
</tr>
<tr class="row4 roweven">
<td class="col0 centeralign"> Password </td><td class="col1 centeralign"> Password change <abbr title="Uniform Resource Locator">URL</abbr> </td>
</tr>
</table></div>
<!-- EDIT5 TABLE [420-612] -->
</div>
<!-- EDIT4 SECTION "Configuration" [192-613] -->
<h2 class="sectionedit6" id="rest_dialog">REST Dialog</h2>
<div class="level2">
<p>
REST web services just have to respond with a “result” key in a JSON file. Auth/UserDB can add a “info” array to will be copied is session data (without reading “Exported variables”).
</p>
<div class="table sectionedit7"><table class="inline table table-bordered table-striped">
<thead>
<tr class="row0 roweven">
<th class="col0 centeralign"> Parameter </th><th class="col1 centeralign"> Query </th><th class="col2 centeralign"> Response </th>
</tr>
</thead>
<tr class="row1 rowodd">
<td class="col0 centeralign"> Authentication <abbr title="Uniform Resource Locator">URL</abbr> </td><td class="col1"> JSON file: <code>{“user”:$user,“password”:$password}</code> </td><td class="col2"> JSON file: <code>{“result”:true/false,“info”:{…}}</code> </td>
</tr>
<tr class="row2 roweven">
<td class="col0 centeralign"> User data <abbr title="Uniform Resource Locator">URL</abbr> </td><td class="col1"> JSON file: <code>{“user”:$user}</code> </td><td class="col2"> JSON file: <code>{“result”:true/false,“info”:{“uid”:“dwho”,…}}</code> </td>
</tr>
<tr class="row3 rowodd">
<td class="col0 centeralign"> Password confirmation <abbr title="Uniform Resource Locator">URL</abbr> </td><td class="col1"> JSON file: <code>{“user”:$user,“password”:$password}</code> </td><td class="col2"> JSON file: <code>{“result”:true/false}</code> </td>
</tr>
<tr class="row4 roweven">
<td class="col0 centeralign"> Password change <abbr title="Uniform Resource Locator">URL</abbr> </td><td class="col1"> JSON file: <code>{“user”:$user,“password”:$password}</code> </td><td class="col2"> JSON file: <code>{“result”:true/false}</code> </td>
</tr>
</table></div>
<!-- EDIT7 TABLE [824-1351] --><div class="notetip">To have only one call, you can set only REST authentication, set datas in “info” key response and set Null as User Database.
</div>
</div>
<!-- EDIT6 SECTION "REST Dialog" [614-] --></div>
</body>
</html>
...@@ -90,7 +90,7 @@ ...@@ -90,7 +90,7 @@
<form action="/start" accept-charset="utf-8" class="search" id="dw__search" method="get" role="search"><div class="no"><input type="hidden" name="do" value="search" /><input type="text" id="qsearch__in" accesskey="f" name="id" class="edit" title="[F]" /><input type="submit" value="Search" class="button" title="Search" /><div id="qsearch__out" class="ajax_qsearch JSpopup"></div></div></form> <form action="/start" accept-charset="utf-8" class="search" id="dw__search" method="get" role="search"><div class="no"><input type="hidden" name="do" value="search" /><input type="text" id="qsearch__in" accesskey="f" name="id" class="edit" title="[F]" /><input type="submit" value="Search" class="button" title="Search" /><div id="qsearch__out" class="ajax_qsearch JSpopup"></div></div></form>
<ul class="nav navbar-nav"> <ul class="nav navbar-nav">
<li><a href="/bootswatch/3.3.4/flatly/bootstrap.min.css?do=login&amp;sectok=2736f0d057a1684b484bf6a293e8c618" class="action login" rel="nofollow" title="Login"><i class="glyphicon glyphicon-log-in"></i> Login</a></li> </ul> <li><a href="/bootswatch/3.3.4/flatly/bootstrap.min.css?do=login&amp;sectok=99cb60cc3ff21b244ff3c7b965219f58" class="action login" rel="nofollow" title="Login"><i class="glyphicon glyphicon-log-in"></i> Login</a></li> </ul>
</div> </div>
...@@ -204,7 +204,7 @@ You&#039;ve followed a link to a topic that doesn&#039;t exist yet. If permissio ...@@ -204,7 +204,7 @@ You&#039;ve followed a link to a topic that doesn&#039;t exist yet. If permissio
</div><!-- /site --> </div><!-- /site -->
<div class="no"><img src="/lib/exe/indexer.php?id=bootswatch%3A3.3.4%3Aflatly%3Abootstrap.min.css&amp;1487766885" width="2" height="1" alt="" /></div> <div class="no"><img src="/lib/exe/indexer.php?id=bootswatch%3A3.3.4%3Aflatly%3Abootstrap.min.css&amp;1487916346" width="2" height="1" alt="" /></div>
<div id="screen__mode" class="no"> <div id="screen__mode" class="no">
<span class="visible-xs"></span> <span class="visible-xs"></span>
<span class="visible-sm"></span> <span class="visible-sm"></span>
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
<meta charset="utf-8" /> <meta charset="utf-8" />
<title>documentation:2.0:confignginx</title> <title>documentation:2.0:confignginx</title>
<meta name="generator" content="DokuWiki"/> <meta name="generator" content="DokuWiki"/>
<meta name="robots" content="index,follow"/> <meta name="robots" content="noindex,nofollow"/>
<meta name="keywords" content="documentation,2.0,confignginx"/> <meta name="keywords" content="documentation,2.0,confignginx"/>
<link rel="search" type="application/opensearchdescription+xml" href="lib/exe/opensearch.html" title="LemonLDAP::NG"/> <link rel="search" type="application/opensearchdescription+xml" href="lib/exe/opensearch.html" title="LemonLDAP::NG"/>
<link rel="start" href="confignginx.html"/> <link rel="start" href="confignginx.html"/>
...@@ -74,11 +74,11 @@ ...@@ -74,11 +74,11 @@
<div class="level2"> <div class="level2">
<p> <p>
To use Nginx, you must install LemonLDAP::NG FastCGI server, which is not installed by default lemonldap-ng meta package. To use Nginx, you must install LemonLDAP::NG FastCGI server, which is not installed by default lemonldap-ng metapackage.
</p> </p>
</div> </div>
<!-- EDIT2 SECTION "FastCGI server" [43-193] --> <!-- EDIT2 SECTION "FastCGI server" [43-192] -->
<h3 class="sectionedit3" id="debianubuntu">Debian/Ubuntu</h3> <h3 class="sectionedit3" id="debianubuntu">Debian/Ubuntu</h3>
<div class="level3"> <div class="level3">
<pre class="code">apt install lemonldap-ng-fastcgi-server</pre> <pre class="code">apt install lemonldap-ng-fastcgi-server</pre>
...@@ -90,7 +90,7 @@ Enable and start the service : ...@@ -90,7 +90,7 @@ Enable and start the service :
systemctl start llng-fastcgi-server</pre> systemctl start llng-fastcgi-server</pre>
</div> </div>
<!-- EDIT3 SECTION "Debian/Ubuntu" [194-394] --> <!-- EDIT3 SECTION "Debian/Ubuntu" [193-393] -->
<h3 class="sectionedit4" id="red_hatcentos">Red Hat/CentOS</h3> <h3 class="sectionedit4" id="red_hatcentos">Red Hat/CentOS</h3>
<div class="level3"> <div class="level3">
<pre class="code">yum install lemonldap-ng-fastcgi-server</pre> <pre class="code">yum install lemonldap-ng-fastcgi-server</pre>
...@@ -102,7 +102,7 @@ Enable and start the service : ...@@ -102,7 +102,7 @@ Enable and start the service :
systemctl start llng-fastcgi-server</pre> systemctl start llng-fastcgi-server</pre>
</div> </div>
<!-- EDIT4 SECTION "Red Hat/CentOS" [395-596] --> <!-- EDIT4 SECTION "Red Hat/CentOS" [394-595] -->
<h2 class="sectionedit5" id="files">Files</h2> <h2 class="sectionedit5" id="files">Files</h2>
<div class="level2"> <div class="level2">
...@@ -115,7 +115,7 @@ You have to include them in Nginx main configuration. ...@@ -115,7 +115,7 @@ You have to include them in Nginx main configuration.
</p> </p>
</div> </div>
<!-- EDIT5 SECTION "Files" [597-819] --> <!-- EDIT5 SECTION "Files" [596-818] -->
<h3 class="sectionedit6" id="debianubuntu1">Debian/Ubuntu</h3> <h3 class="sectionedit6" id="debianubuntu1">Debian/Ubuntu</h3>
<div class="level3"> <div class="level3">
...@@ -136,7 +136,7 @@ ln -s /etc/nginx/sites-available/portal-nginx.conf /etc/nginx/sites-enabled/ ...@@ -136,7 +136,7 @@ ln -s /etc/nginx/sites-available/portal-nginx.conf /etc/nginx/sites-enabled/
ln -s /etc/nginx/sites-available/test-nginx.conf /etc/nginx/sites-enabled/</pre> ln -s /etc/nginx/sites-available/test-nginx.conf /etc/nginx/sites-enabled/</pre>
</div> </div>
<!-- EDIT6 SECTION "Debian/Ubuntu" [820-1578] --> <!-- EDIT6 SECTION "Debian/Ubuntu" [819-1577] -->
<h3 class="sectionedit7" id="red_hatcentos1">Red Hat/CentOS</h3> <h3 class="sectionedit7" id="red_hatcentos1">Red Hat/CentOS</h3>
<div class="level3"> <div class="level3">
...@@ -149,6 +149,6 @@ ln -s /etc/lemonldap-ng/portal-nginx.conf /etc/nginx/conf.d/ ...@@ -149,6 +149,6 @@ ln -s /etc/lemonldap-ng/portal-nginx.conf /etc/nginx/conf.d/
ln -s /etc/lemonldap-ng/test-nginx.conf /etc/nginx/conf.d/</pre> ln -s /etc/lemonldap-ng/test-nginx.conf /etc/nginx/conf.d/</pre>
</div> </div>
<!-- EDIT7 SECTION "Red Hat/CentOS" [1579-] --></div> <!-- EDIT7 SECTION "Red Hat/CentOS" [1578-] --></div>
</body> </body>
</html> </html>
...@@ -76,9 +76,10 @@ There is nothing to configure to use it except that: ...@@ -76,9 +76,10 @@ There is nothing to configure to use it except that:
<li class="level1"><div class="li"> you can set the loopback <abbr title="Uniform Resource Locator">URL</abbr> needed by the DevOps handler to get /rules.json. Default to <a href="http://127.0.0.1" class="urlextern" title="http://127.0.0.1" rel="nofollow">http://127.0.0.1</a>:&lt;server-port&gt;</div> <li class="level1"><div class="li"> you can set the loopback <abbr title="Uniform Resource Locator">URL</abbr> needed by the DevOps handler to get /rules.json. Default to <a href="http://127.0.0.1" class="urlextern" title="http://127.0.0.1" rel="nofollow">http://127.0.0.1</a>:&lt;server-port&gt;</div>
</li> </li>
</ul> </ul>
<div class="noteimportant">Note that DevOps handler will refuse to compile rules.json if <a href="safejail.html" class="wikilink1" title="documentation:2.0:safejail">Safe Jail</a> isn&#039;t enabled.
</div>
</div> </div>
<!-- EDIT1 SECTION "DevOps Handler" [1-867] --> <!-- EDIT1 SECTION "DevOps Handler" [1-991] -->
<h2 class="sectionedit2" id="configuration_example">Configuration example</h2> <h2 class="sectionedit2" id="configuration_example">Configuration example</h2>
<div class="level2"> <div class="level2">
...@@ -126,6 +127,6 @@ Here is a simple Nginx configuration file. It looks like a standard LLNG nginx c ...@@ -126,6 +127,6 @@ Here is a simple Nginx configuration file. It looks like a standard LLNG nginx c
</dd></dl> </dd></dl>
</div> </div>
<!-- EDIT2 SECTION "Configuration example" [868-] --></div> <!-- EDIT2 SECTION "Configuration example" [992-] --></div>
</body> </body>
</html> </html>
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
<meta charset="utf-8" /> <meta charset="utf-8" />
<title>documentation:2.0:performances</title> <title>documentation:2.0:performances</title>
<meta name="generator" content="DokuWiki"/> <meta name="generator" content="DokuWiki"/>
<meta name="robots" content="index,follow"/> <meta name="robots" content="noindex,nofollow"/>
<meta name="keywords" content="documentation,2.0,performances"/> <meta name="keywords" content="documentation,2.0,performances"/>
<link rel="search" type="application/opensearchdescription+xml" href="lib/exe/opensearch.html" title="LemonLDAP::NG"/> <link rel="search" type="application/opensearchdescription+xml" href="lib/exe/opensearch.html" title="LemonLDAP::NG"/>
<link rel="start" href="performances.html"/> <link rel="start" href="performances.html"/>
...@@ -59,8 +59,6 @@ ...@@ -59,8 +59,6 @@
<li class="level1"><div class="li"><a href="#portal_performances">Portal performances</a></div> <li class="level1"><div class="li"><a href="#portal_performances">Portal performances</a></div>
<ul class="toc"> <ul class="toc">
<li class="level2"><div class="li"><a href="#general_performances">General performances</a></div></li> <li class="level2"><div class="li"><a href="#general_performances">General performances</a></div></li>
<li class="level2"><div class="li"><a href="#configuration_access">Configuration access</a></div></li>
<li class="level2"><div class="li"><a href="#starting_performances">Starting performances</a></div></li>
<li class="level2"><div class="li"><a href="#apachesession_performances">Apache::Session performances</a></div> <li class="level2"><div class="li"><a href="#apachesession_performances">Apache::Session performances</a></div>
<ul class="toc"> <ul class="toc">
<li class="level3"><div class="li"><a href="#replace_mysql_by_apachesessionflex">Replace MySQL by Apache::Session::Flex</a></div></li> <li class="level3"><div class="li"><a href="#replace_mysql_by_apachesessionflex">Replace MySQL by Apache::Session::Flex</a></div></li>
...@@ -111,12 +109,16 @@ To bypass this, you can: ...@@ -111,12 +109,16 @@ To bypass this, you can:
<h2 class="sectionedit3" id="handler_performance">Handler performance</h2> <h2 class="sectionedit3" id="handler_performance">Handler performance</h2>
<div class="level2"> <div class="level2">
<p>
To increase handler performance, you can disable “Sessions activity timeout” To prevent it from writing to the session database.
</p>
<p> <p>
Handlers check rights and calculate headers for each HTTP hit. So to improve performances, avoid too complex rules by using the macro or the groups or local macros. Handlers check rights and calculate headers for each HTTP hit. So to improve performances, avoid too complex rules by using the macro or the groups or local macros.
</p> </p>
</div> </div>
<!-- EDIT3 SECTION "Handler performance" [659-856] --> <!-- EDIT3 SECTION "Handler performance" [659-986] -->
<h3 class="sectionedit4" id="macros_and_groups">Macros and groups</h3> <h3 class="sectionedit4" id="macros_and_groups">Macros and groups</h3>
<div class="level3"> <div class="level3">
...@@ -175,7 +177,7 @@ admin <span class="sy0">-&gt;</span> <span class="re0">$uid</span> <span class=" ...@@ -175,7 +177,7 @@ admin <span class="sy0">-&gt;</span> <span class="re0">$uid</span> <span class="
</div><div class="noteimportant">Macros and groups are computed in alphanumeric order, that is, in the order they are displayed in the manager. For example, macro “macro1” will be computed before macro “macro2”: so, expression of macro2 may involve value of macro1. As same for groups: a group rule may involve another, previously computed group. </div><div class="noteimportant">Macros and groups are computed in alphanumeric order, that is, in the order they are displayed in the manager. For example, macro “macro1” will be computed before macro “macro2”: so, expression of macro2 may involve value of macro1. As same for groups: a group rule may involve another, previously computed group.
</div> </div>
</div> </div>
<!-- EDIT4 SECTION "Macros and groups" [857-2819] --> <!-- EDIT4 SECTION "Macros and groups" [987-2949] -->
<h3 class="sectionedit5" id="local_macros">Local macros</h3> <h3 class="sectionedit5" id="local_macros">Local macros</h3>
<div class="level3"> <div class="level3">
...@@ -189,59 +191,32 @@ Display<span class="sy0">-</span>Name <span class="sy0">-&gt;</span> <span class ...@@ -189,59 +191,32 @@ Display<span class="sy0">-</span>Name <span class="sy0">-&gt;</span> <span class
<div class="notetip">Note that this feature is interesting only for the Lemonldap::NG systems protecting a high number of applications <div class="notetip">Note that this feature is interesting only for the Lemonldap::NG systems protecting a high number of applications
</div> </div>
</div> </div>
<!-- EDIT5 SECTION "Local macros" [2820-3481] --> <!-- EDIT5 SECTION "Local macros" [2950-3611] -->
<h2 class="sectionedit6" id="portal_performances">Portal performances</h2> <h2 class="sectionedit6" id="portal_performances">Portal performances</h2>
<div class="level2"> <div class="level2">
</div> </div>
<!-- EDIT6 SECTION "Portal performances" [3482-3514] --> <!-- EDIT6 SECTION "Portal performances" [3612-3644] -->
<h3 class="sectionedit7" id="general_performances">General performances</h3> <h3 class="sectionedit7" id="general_performances">General performances</h3>
<div class="level3"> <div class="level3">
<p> <p>
The portal is the biggest component of Lemonldap::NG. It is recommended to use ModPerl::Registry instead of using cgi-script as described in Apache configuration file example (portal-apache2.conf): The portal is the biggest component of Lemonldap::NG. Since version 2.0, it is run under FastCGI and rewritten using plugins, so performance is increased in comparison to earlier versions. You just have to disable unused plugins:
</p>
<pre class="code apache">&lt;<span class="kw3">Files</span> *.pl&gt;
<span class="kw1">SetHandler</span> perl-<span class="kw1">script</span>
PerlResponseHandler ModPerl::Registry
&lt;/<span class="kw3">Files</span>&gt;</pre>
<p>
You can also use a FastCGI server using index.fcgi given in portal examples.
</p> </p>
<ul>
<li class="level1"><div class="li"> disable unused issuer modules</div>
</li>
<li class="level1"><div class="li"> disable notifications if not used</div>
</li>
<li class="level1"><div class="li"></div>
</li>
</ul>
<div class="notetip">In production environment for network performance, prefer using minified versions of javascript and css libs: use <code>make install <strong>PROD=yes</strong></code>. This is done by default in RPM/DEB packages. <div class="notetip">In production environment for network performance, prefer using minified versions of javascript and css libs: use <code>make install <strong>PROD=yes</strong></code>. This is done by default in RPM/DEB packages.
</div> </div>
</div> </div>
<!-- EDIT7 SECTION "General performances" [3515-4145] --> <!-- EDIT7 SECTION "General performances" [3645-4198] -->
<h3 class="sectionedit8" id="configuration_access">Configuration access</h3> <h3 class="sectionedit8" id="apachesession_performances">Apache::Session performances</h3>
<div class="level3">
<p>
If you set <code>useLocalConf</code> to 1 in lemonldap-ng.ini (section [Portal]), the portal will use only a cached configuration. To refresh it, you have to set an handler on the same server to use the refresh mechanism or to restart the server after each configuration change.
</p>
</div>
<!-- EDIT8 SECTION "Configuration access" [4146-4448] -->
<h3 class="sectionedit9" id="starting_performances">Starting performances</h3>
<div class="level3">
<p>
To make the portal start faster when the server is relaunched, add those lines in Apache configuration file (as described in portal-apache2.conf):
</p>
<pre class="code apache">&lt;Perl&gt;
<span class="kw1">require</span> Lemonldap::NG::Portal::SharedConf;
Lemonldap::NG::Portal::SharedConf-&gt;compile(
qw(delete <span class="kw1">header</span> cache read_from_client cookie <span class="kw1">redirect</span> unescapeHTML));
<span class="co1"># Uncomment this line if you use Lemonldap::NG menu</span>
<span class="kw1">require</span> Lemonldap::NG::Portal::Menu;
<span class="co1"># Uncomment this line if you use portal SOAP capabilities</span>
<span class="kw1">require</span> SOAP::Lite;
&lt;/Perl&gt;</pre>
</div>
<!-- EDIT9 SECTION "Starting performances" [4449-5024] -->
<h3 class="sectionedit10" id="apachesession_performances">Apache::Session performances</h3>
<div class="level3"> <div class="level3">
<p> <p>
...@@ -291,8 +266,8 @@ Note that Apache::Session::Browseable::MySQL doesn&#039;t use MySQL locks. ...@@ -291,8 +266,8 @@ Note that Apache::Session::Browseable::MySQL doesn&#039;t use MySQL locks.
</div><div class="noteimportant">Some Apache::Session module are not fully usable by Lemonldap::NG such as Apache::Session::Memcached since this modules do not offer capability to browse sessions. They does not allow one to use sessions explorer neither manage one-off sessions. </div><div class="noteimportant">Some Apache::Session module are not fully usable by Lemonldap::NG such as Apache::Session::Memcached since this modules do not offer capability to browse sessions. They does not allow one to use sessions explorer neither manage one-off sessions.
</div> </div>
</div> </div>
<!-- EDIT10 SECTION "Apache::Session performances" [5025-7381] --> <!-- EDIT8 SECTION "Apache::Session performances" [4199-6555] -->
<h3 class="sectionedit11" id="ldap_performances">LDAP performances</h3> <h3 class="sectionedit9" id="ldap_performances">LDAP performances</h3>
<div class="level3"> <div class="level3">
<p> <p>
...@@ -328,13 +303,13 @@ Now ldapgroups contains “admin su” ...@@ -328,13 +303,13 @@ Now ldapgroups contains “admin su”
</div> </div>
</div> </div>
<!-- EDIT11 SECTION "LDAP performances" [7382-8511] --> <!-- EDIT9 SECTION "LDAP performances" [6556-7685] -->
<h2 class="sectionedit12" id="manager_performances">Manager performances</h2> <h2 class="sectionedit10" id="manager_performances">Manager performances</h2>
<div class="level2"> <div class="level2">
</div> </div>
<!-- EDIT12 SECTION "Manager performances" [8512-8545] --> <!-- EDIT10 SECTION "Manager performances" [7686-7719] -->
<h3 class="sectionedit13" id="disable_unused_modules">Disable unused modules</h3> <h3 class="sectionedit11" id="disable_unused_modules">Disable unused modules</h3>
<div class="level3"> <div class="level3">
<p> <p>
...@@ -344,8 +319,8 @@ In lemonldap-ng.ini, set only modules that you will use. By default, configurati ...@@ -344,8 +319,8 @@ In lemonldap-ng.ini, set only modules that you will use. By default, configurati
<span class="re1">enabledModules</span> <span class="sy0">=</span><span class="re2"> conf, sessions</span></pre> <span class="re1">enabledModules</span> <span class="sy0">=</span><span class="re2"> conf, sessions</span></pre>
</div> </div>
<!-- EDIT13 SECTION "Disable unused modules" [8546-8792] --> <!-- EDIT11 SECTION "Disable unused modules" [7720-7966] -->
<h3 class="sectionedit14" id="use_static_html_files">Use static HTML files</h3> <h3 class="sectionedit12" id="use_static_html_files">Use static HTML files</h3>
<div class="level3"> <div class="level3">
<p> <p>
...@@ -371,6 +346,6 @@ So manager <abbr title="HyperText Markup Language">HTML</abbr> templates will be ...@@ -371,6 +346,6 @@ So manager <abbr title="HyperText Markup Language">HTML</abbr> templates will be
</p> </p>
</div> </div>
<!-- EDIT14 SECTION "Use static HTML files" [8793-] --></div> <!-- EDIT12 SECTION "Use static HTML files" [7967-] --></div>
</body> </body>
</html> </html>
...@@ -90,7 +90,7 @@ ...@@ -90,7 +90,7 @@
<form action="/start" accept-charset="utf-8" class="search" id="dw__search" method="get" role="search"><div class="no"><input type="hidden" name="do" value="search" /><input type="text" id="qsearch__in" accesskey="f" name="id" class="edit" title="[F]" /><input type="submit" value="Search" class="button" title="Search" /><div id="qsearch__out" class="ajax_qsearch JSpopup"></div></div></form> <form action="/start" accept-charset="utf-8" class="search" id="dw__search" method="get" role="search"><div class="no"><input type="hidden" name="do" value="search" /><input type="text" id="qsearch__in" accesskey="f" name="id" class="edit" title="[F]" /><input type="submit" value="Search" class="button" title="Search" /><div id="qsearch__out" class="ajax_qsearch JSpopup"></div></div></form>
<ul class="nav navbar-nav">