<?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.1-Install-prerequesites.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= "HPrerequisitesanddependencies">Prerequisites and dependencies</span></h2> <p class="paragraph"></p> <ul> <li><a href="#HApache">Apache</a></li> <li> <a href="#HPerl">Perl</a> <ul> <li><a href="#HCore">Core</a></li> <li> <a href="#HSpecificfunctionalities">Specific functionalities</a> <ul> <li><a href="#HResetpasswordbymail">Reset password by mail</a></li> <li><a href="#HSAML2orLibertyAlliance">SAML2 or Liberty Alliance</a></li> <li><a href="#HCAS">CAS</a></li> <li><a href="#HOpenID">OpenID</a></li> <li><a href="#HTwitter">Twitter</a></li> <li><a href="#HPODunittests">POD unit tests</a></li> </ul> </li> </ul> </li> <li><a href="#HOther">Other</a></li> <li> <a href="#HInstalldependenciesonyoursystem">Install dependencies on your system</a> <ul> <li><a href="#HAPTGET">APT-GET</a></li> <li><a href="#HYUM">YUM</a></li> </ul> </li> <li><a href= "#HLinkbetweenLemonLDAP3A3ANGversionsandCPANmodulesversions">Link between LemonLDAP::NG versions and CPAN modules versions</a></li> </ul> <h3 class="heading-1-1"><span id="HApache">Apache</span></h3> <p class="paragraph"></p>To use Lemonldap::NG, you have to run a LDAP server and of course an Apache server compiled with mod-perl (version 1.3 or 2.x). Generaly, the version of Apache proposed with your Linux distribution match, but some distributions used an experimental version of mod_perl with Apache2 (mod_perl-1.99) which does not work with Lemonldap::NG. With such distributions (like Debian-3.1), you have to use Apache-1.3 or to use a mod_perl backport (www.backports.org package for Debian works fine). <p class="paragraph"></p>For Apache2, you can use both mpm-worker and mpm-prefork. Mpm-worker works faster and Lemonldap::NG use the thread system for best performance. If you have to use mpm-prefork (for example if you use PHP), Lemonldap::NG will work anyway. <p class="paragraph"></p>You can use Lemonldap::NG in an heterogene world: the authentication portal and the manager can work in any version of Apache 1.3 or more even if mod_perl is not compiled, with ModPerl::Registry or not… Only the handler (site protector) need mod_perl. The different handlers can run on different servers with different versions of Apache/mod_perl. <h3 class="heading-1-1"><span id="HPerl">Perl</span></h3> <h4 class="heading-1-1-1"><span id="HCore">Core</span></h4> <ul class="star"> <li>Apache::Session</li> <li>Net::LDAP</li> <li>MIME::Base64</li> <li>CGI</li> <li>LWP::UserAgent</li> <li>Cache::Cache</li> <li>DBI</li> <li>XML::Simple</li> <li>CGI::Session</li> <li>Regexp::Assemble</li> <li>XML::LibXML</li> <li>Crypt::Rijndael</li> <li>IO::String</li> <li>XML::LibXSLT</li> <li>HTML::Template</li> <li>SOAP::Lite</li> <li>Config::IniFiles</li> <li>JSON</li> </ul> <h4 class="heading-1-1-1"><span id="HSpecificfunctionalities">Specific functionalities</span></h4> <h5 class="heading-1-1-1-1"><span id="HResetpasswordbymail">Reset password by mail</span></h5> <ul class="star"> <li>String::Random</li> <li>MIME::Lite</li> <li>Email::Date::Format</li> </ul> <h5 class="heading-1-1-1-1"><span id="HSAML2orLibertyAlliance">SAML2 or Liberty Alliance</span></h5> <ul class="star"> <li>Lasso (see <span class="wikiexternallink"><a href= "http://lasso.entrouvert.org/">http://lasso.entrouvert.org/</a></span>)</li> <li>Crypt::OpenSSL::RSA</li> </ul> <h5 class="heading-1-1-1-1"><span id="HCAS">CAS</span></h5> <ul class="star"> <li>CAS (see <span class="wikiexternallink"><a href= "http://sourcesup.cru.fr/projects/perlcas/">http://sourcesup.cru.fr/projects/perlcas/</a></span>)</li> </ul> <h5 class="heading-1-1-1-1"><span id="HOpenID">OpenID</span></h5> <ul class="star"> <li>Net::OpenID::Consumer</li> <li>Net::OpenID::Server</li> </ul> <h5 class="heading-1-1-1-1"><span id="HTwitter">Twitter</span></h5> <ul class="star"> <li>Net::Twitter</li> </ul> <h5 class="heading-1-1-1-1"><span id="HPODunittests">POD unit tests</span></h5> <ul class="star"> <li>Test::POD</li> </ul> <h3 class="heading-1-1"><span id="HOther">Other</span></h3> <ul class="star"> <li>Jquery is included in tarball and RPMs, but is a dependency on Debian</li> </ul> <h3 class="heading-1-1"><span id= "HInstalldependenciesonyoursystem">Install dependencies on your system</span></h3> <h4 class="heading-1-1-1"><span id="HAPTGET">APT-GET</span></h4><br /> <br /> <div class="code"> <pre> # apt-get install apache2 libapache2-mod-perl2 libapache-session-perl libnet-ldap-perl libcache-cache-perl libdbi-perl perl-modules libwww-perl libcache-cache-perl libxml-simple-perl libsoap-lite-perl libhtml-template-perl libregexp-assemble-perl libjs-jquery libxml-libxml-perl libcrypt-rijndael-perl libio-string-perl libxml-libxslt-perl libconfig-inifiles-perl libjson-perl libstring-random-perl libemail-date-format-perl libmime-lite-perl libcrypt-openssl-rsa-perl </pre> </div> <h4 class="heading-1-1-1"><span id="HYUM">YUM</span></h4><br /> <br /> Some Perl dependencies are hosted in <span class= "wikiexternallink"><a href="https://rpmrepo.org/">RPMForge</a></span> repository, you can activate this repository: <span class= "wikiexternallink"><a href= "https://rpmrepo.org/RPMforge/Using">https://rpmrepo.org/RPMforge/Using</a></span><br /> <br /> <div class="code"> <pre> # yum install httpd mod_perl perl-Apache-Session perl-LDAP perl-XML-SAX perl-XML-NamespaceSupport perl-HTML-Template perl-Regexp-Assemble perl-Error perl-IPC-ShareLite perl-Cache-Cache perl-FreezeThaw perl-XML-Simple perl-version perl-CGI-Session perl-DBD-Pg perl-XML-LibXML-Common perl-BSD-Resource perl-XML-LibXML perl-Crypt-Rijndael perl-IO-<span class="java-object">String</span> perl-XML-LibXSLT perl-SOAP-Lite perl-Config-IniFiles perl-JSON </pre> </div> <h3 class="heading-1-1"><span id= "HLinkbetweenLemonLDAP3A3ANGversionsandCPANmodulesversions">Link between LemonLDAP::NG versions and CPAN modules versions</span></h3><br /> <br /> All lemonLDAP::NG Perl modules are published on <span class= "wikiexternallink"><a href= "http://search.cpan.org/~guimard/">CPAN</a></span>. Here is the correspondance between LemonLDAP::NG version and CPAN versions:<br /> <br /> <table class="wiki-table" cellpadding="0" cellspacing="0" border="0"> <tr> <th>LemonLDAP::NG</th> <th>Common</th> <th>Handler</th> <th>Manager</th> <th>Portal</th> </tr> <tr class="table-odd"> <td>0.9.3</td> <td>0.91</td> <td>0.90</td> <td>0.87</td> <td>0.86</td> </tr> <tr class="table-even"> <td>0.9.4</td> <td>0.94</td> <td>0.91</td> <td>0.90</td> <td>0.89</td> </tr> <tr class="table-odd"> <td>0.9.4.1</td> <td>0.95</td> <td>0.92</td> <td>0.91</td> <td>0.90</td> </tr> <tr class="table-even"> <td>1.0-rc1</td> <td>0.96</td> <td>0.93</td> <td>0.93</td> <td>0.91</td> </tr> </table> </div> <p class="footer"><a href="index.html">Index</a></p> </body> </html>