Set application list in ini file

This commit is contained in:
Clément Oudot 2010-03-08 17:06:03 +00:00
parent 0a943ba5ff
commit d9f2af49bf

View File

@ -18,17 +18,18 @@
#==============================================================================
[all]
# CUSTOM FUNCTION
# If you want to create customFunctions in rules, declare them here:
;customFunctions => 'function1 function2',
;customFunctions => 'Package::func1 Package::func2',
# CROSS-DOMAIN
# If you have some handlers that are not registered on the main domain,
# uncomment this
;cda => 1,
[configuration]
# GLOBAL CONFIGURATION ACCESS TYPE
# (File, SOAP, DBI, LDAP)
# Set here the parameters needed to access to Lemonldap::NG configuration.
@ -65,10 +66,8 @@
# ldapConfBase = ou=conf,ou=applications,dc=example,dc=com
# ldapBindDN = cn=manager,dc=example,dc=com
# ldapBindPassword = secret
type = File
dirName = /var/lib/lemonldap-ng/conf
type=File
dirName=/var/lib/lemonldap-ng/conf
# LOCAL CACHE CONFIGURATION
#
# To increase performances, use a local cache for the configuration. You have
@ -76,11 +75,11 @@ dirName = /var/lib/lemonldap-ng/conf
#
# localStorage = Cache::FileCache
# localStorageOptions = { 'namespace' => 'MyNamespace', 'default_expires_in' => 600, 'directory_umask' => '007', 'cache_root' => '/tmp', 'cache_depth' => 5, }
localStorage = Cache::FileCache
localStorageOptions = { 'namespace' => 'MyNamespace', 'default_expires_in' => 600, 'directory_umask' => '007', 'cache_root' => '/tmp', 'cache_depth' => 5, }
localStorage=Cache::FileCache
localStorageOptions={ 'namespace' => 'MyNamespace', 'default_expires_in' => 600, 'directory_umask' => '007', 'cache_root' => '/tmp', 'cache_depth' => 5, }
[portal]
# PORTAL CUSTOMIZATION
# Name of the skin
;portalSkin = pastel
@ -95,12 +94,10 @@ localStorageOptions = { 'namespace' => 'MyNamespace', 'default_expires_in' => 60
;portalRequireOldPassword = 1
# Attribute displayed as connected user
;portalUserAttr => "mail",
# LOG
# By default, all is logged in Apache file. To log user actions by
# syslog, just set syslog facility here:
;syslog = auth
# SOAP FUNCTIONS
# Remove comment to activate SOAP Functions getCookies(user,pwd) and
# error(language, code)
@ -109,7 +106,6 @@ localStorageOptions = { 'namespace' => 'MyNamespace', 'default_expires_in' => 60
# (http://auth.example.com/index.pl/sessions)
# You can also restrict attributes and macros exported by getAttributes
;exportedAttr => uid mail
# PASSWORD POLICY
# Remove comment to use LDAP Password Policy
;ldapPpolicyControl = 1
@ -118,7 +114,6 @@ localStorageOptions = { 'namespace' => 'MyNamespace', 'default_expires_in' => 60
# Remove comment to use LDAP modify password extension
# (beware of compatibility with LDAP Password Policy)
;ldapSetPassword = 1
# RESET PASSWORD BY MAIL
# SMTP server (default to localhost), set to '' to use default mail service
;SMTPServer = localhost
@ -140,7 +135,6 @@ localStorageOptions = { 'namespace' => 'MyNamespace', 'default_expires_in' => 60
;mailLDAPFilter = '(&(mail=$mail)(objectClass=inetOrgPerson))'
# Random regexp for password generation
;randomPasswordRegexp = [A-Z]{3}[a-z]{5}.\d{2}
# LDAP GROUPS
# Set the base DN of your groups branch
;ldapGroupBase = ou=groups,dc=example,dc=com
@ -154,7 +148,6 @@ localStorageOptions = { 'namespace' => 'MyNamespace', 'default_expires_in' => 60
# cn|mail|status, where cn, mail and status will be replaced by their
# values.
;ldapGroupAttributeNameSearch = ['cn']
# NOTIFICATIONS SERVICE
# Use it to be able to notify messages during authentication
;notification = 1
@ -162,7 +155,6 @@ localStorageOptions = { 'namespace' => 'MyNamespace', 'default_expires_in' => 60
# http://auth.example.com/index.pl/notification
# If you want to hide this, just protect "/index.pl/notification" in
# your Apache configuration file
# XSS protection bypass
# By default, the portal refuse redirections that comes from sites not
# registered in the configuration (manager) except for those coming
@ -173,11 +165,17 @@ localStorageOptions = { 'namespace' => 'MyNamespace', 'default_expires_in' => 60
# your website use Lemonldap::NG without handler with SOAP functions.
;trustedDomains => 'my.trusted.host example2.com',
# Menu
applicationList={ 'Menu' => { type => 'category', 'Example' => { type => 'category', 'test1' => { type => 'application', options => { name => 'Application Test 1', uri => 'http://test1.__DNSDOMAIN__/', description => 'A simple application displaying authenticated user', logo => 'wheels.png', display => 'auto', }, },'test2' => { type => 'application', options => { name => 'Application Test 2', uri => 'http://test2.__DNSDOMAIN__/', description => 'The same simple application displaying authenticated user', logo => 'wheels.png', display => 'auto', }, }, },'Administration' => { type => 'category', 'manager' => { type => 'application', options => { name => 'WebSSO Manager', uri => 'http://manager.__DNSDOMAIN__/', description => 'Configure LemonLDAP::NG WebSSO', logo => 'tools.png', display => 'on', }, },'sessions' => { type => 'application', options => { name => 'Sessions explorer', uri => 'http://manager.__DNSDOMAIN__/sessions.pl', description => 'Explore WebSSO sessions', logo => 'tools.png', display => 'on', }, }, },'Documentation' => { type => 'category', 'localdoc' => { type => 'application', options => { name => 'Local documentation', uri => 'http://manager.__DNSDOMAIN__/doc/', description => 'Documentation supplied with LemonLDAP::NG', logo => 'docs.png', display => 'on', }, },'officialwebsite' => { type => 'application', options => { name => 'Offical Website', uri => 'http://wiki.lemonldap.objectweb.org/xwiki/bin/view/NG/Presentation', description => 'Official LemonLDAP::NG Website', logo => 'web.png', display => 'on', }, }, }, }, }
[handler]
https = 0
https=0
[manager]
;protection = authenticate
[apply]
test1.__DNSDOMAIN__ = http://test1.__DNSDOMAIN__/reload
test1.__DNSDOMAIN__=http://test1.__DNSDOMAIN__/reload