2008-11-04 17:35:16 +01:00
|
|
|
#!/usr/bin/perl
|
|
|
|
|
|
|
|
use strict;
|
|
|
|
|
|
|
|
use Lemonldap::NG::Manager::Sessions;
|
|
|
|
|
|
|
|
our $cgi = Lemonldap::NG::Manager::Sessions->new({
|
2008-12-25 21:06:23 +01:00
|
|
|
|
|
|
|
# REQUIRED PARAMETERS
|
2010-01-13 15:09:32 +01:00
|
|
|
jqueryUri => 'skins/default/jquery-1.3.2.min.js',
|
2008-11-12 16:35:27 +01:00
|
|
|
imagePath => '/images/',
|
2008-12-25 21:06:23 +01:00
|
|
|
|
2009-05-20 11:29:52 +02:00
|
|
|
# PROTECTION, choose one of :
|
2009-04-18 22:08:36 +02:00
|
|
|
# * protection by manager
|
2008-11-12 17:09:35 +01:00
|
|
|
# protection => 'manager',
|
2009-04-18 22:08:36 +02:00
|
|
|
# * specify yourself the rule to apply (same as in the manager)
|
2008-11-12 17:09:35 +01:00
|
|
|
# protection => 'rule: $uid=admin',
|
2009-04-18 22:08:36 +02:00
|
|
|
# * all authenticate users are granted
|
2008-12-19 19:02:03 +01:00
|
|
|
# protection => 'authenticate',
|
2009-04-18 22:08:36 +02:00
|
|
|
# * nothing : not protected
|
2008-12-25 21:06:23 +01:00
|
|
|
|
|
|
|
# REDIRECTIONS
|
|
|
|
# You have to set this to explain to the handler if runs under SSL
|
|
|
|
# or not (for redirections after authentications). Default is true.
|
|
|
|
https => 0,
|
|
|
|
|
|
|
|
# You can also fix the port (for redirections after authentications)
|
|
|
|
#port => 80,
|
|
|
|
|
2009-05-20 11:29:52 +02:00
|
|
|
# IP
|
|
|
|
# You can configure sessions explorer to use X-FORWARDED-FOR rather than REMOTRE_ADDR for IP
|
|
|
|
#useXForwardedForIP => 1,
|
|
|
|
|
|
|
|
# ACCESS TO CONFIGURATION
|
2008-12-25 21:06:23 +01:00
|
|
|
# By default, Lemonldap::NG uses the default storage.conf file to know
|
|
|
|
# where to find is configuration
|
|
|
|
# (generaly /etc/lemonldap-ng/storage.conf)
|
|
|
|
# You can specify by yourself this file :
|
2009-06-29 13:29:52 +02:00
|
|
|
#configStorage => { confFile => '/path/to/my/file' },
|
2008-12-25 21:06:23 +01:00
|
|
|
|
|
|
|
# You can also specify directly the configuration
|
|
|
|
# (see Lemonldap::NG::Handler::SharedConf(3))
|
|
|
|
#configStorage => {
|
|
|
|
# type => 'File',
|
2009-06-29 13:29:52 +02:00
|
|
|
# directory => '/usr/local/lemonldap-ng/conf/'
|
2008-12-25 21:06:23 +01:00
|
|
|
#},
|
|
|
|
|
|
|
|
# OTHERS
|
|
|
|
# You can also overload any parameter issued from manager
|
|
|
|
# configuration. Example:
|
|
|
|
#globalStorage => 'Lemonldap::NG::Common::Apache::Session::SOAP',
|
|
|
|
#globalStorageOptions => {
|
2009-06-29 11:42:44 +02:00
|
|
|
# proxy => 'http://auth.example.com/index.pl/sessions',
|
2008-12-25 21:06:23 +01:00
|
|
|
# proxyOptions => {
|
|
|
|
# timeout => 5,
|
|
|
|
# },
|
|
|
|
# # If soapserver is protected by HTTP Basic:
|
|
|
|
# User => 'http-user',
|
|
|
|
# Password => 'pass',
|
|
|
|
#},
|
2008-11-04 17:35:16 +01:00
|
|
|
});
|
|
|
|
|
|
|
|
$cgi->process();
|