#!/usr/bin/perl use Lemonldap::NG::Portal::SharedConf; my $portal = Lemonldap::NG::Portal::SharedConf->new( { configStorage => { type => 'File', dirName => '__CONFDIR__', }, #ldapPpolicyControl => 1, # Remove comment to use LDAP Password Policy #storePassword => 1, # Remove comment to store password in session (use with caution) #Soap => 1, # Remove comment to activate SOAP Function getCookies(user,pwd) } ); if ( $portal->process() ) { print $portal->header('text/html; charset=utf8'); print $portal->start_html; print "

Your well authenticated !

"; print "Click here to logout"; print $portal->end_html; } else { print $portal->header('text/html; charset=utf8'); print $portal->start_html; print 'Error: ' . $portal->error . '
'; print '
'; print ''; print 'Login :
'; print 'Password :
'; print ''; print '
'; print $portal->end_html; }