<acronymtitle="LemonLDAP::NG">LL::NG</acronym> CGIs <em>(Portal, Manager,…)</em> can be used under a <ahref="http://en.wikipedia.org/wiki/FastCGI"class="urlextern"title="http://en.wikipedia.org/wiki/FastCGI"rel="nofollow">FastCGI system</a> very easily. You just have to load <acronymtitle="LemonLDAP::NG">LL::NG</acronym> FastCGI support and write a loop in the <acronymtitle="Common Gateway Interface">CGI</acronym>. Example with the portal:
<b><spanstyle="color:#500;">LMAUTH:</span> while ( my $portal = Lemonldap::NG::Portal::SharedConf->new({}) ) </b>{
<spanclass="re0"># ...</span>
}
</pre>
</p>
<p>
Key steps :
</p>
<ul>
<liclass="level1"><divclass="li"> Load <strong>“Lemonldap::NG::Common::<acronymtitle="Common Gateway Interface">CGI</acronym> qw(fastcgi)“</strong> before any other <acronymtitle="LemonLDAP::NG">LL::NG</acronym> library</div>
</li>
<liclass="level1"><divclass="li"> insert a loop around the <acronymtitle="HyperText Markup Language">HTML</acronym> printing, starting with the object creation <em>(→new)</em></div>
</li>
<liclass="level1"><divclass="li"> insert a label <strong>“LMAUTH”</strong> ahead of the loop</div>
</li>
</ul>
<p>
An example is given under the source tree : lemonldap-ng-portal/example/index.fcgi