Use Demo backend in default installation (#416)
This commit is contained in:
parent
df39dc95d7
commit
ea806869a6
|
@ -78,11 +78,6 @@ APACHEVERSION=2
|
|||
# DNS Domain for cookie and virtual hosts
|
||||
DNSDOMAIN=example.com
|
||||
|
||||
# LDAP parameters
|
||||
LDAPHOST=localhost
|
||||
LDAPPORT=389
|
||||
LDAPSUFFIX=dc=example,dc=com
|
||||
|
||||
# Virtual Host Listen IP and Port (*, *:80, ...)
|
||||
VHOSTLISTEN=*:80
|
||||
|
||||
|
@ -264,10 +259,6 @@ install_site: install_manager_site install_portal_site install_handler_site inst
|
|||
@echo "LemonLDAP::NG v${VERSION} is installed with these parameters:"
|
||||
@echo " - System configuration: ${CONFDIR}"
|
||||
@echo " - DNS domain (for cookies and virtual hosts): ${DNSDOMAIN}"
|
||||
@echo " - LDAP parameters:"
|
||||
@echo " - Host: ${LDAPHOST}"
|
||||
@echo " - Port: ${LDAPPORT}"
|
||||
@echo " - Suffix: ${LDAPSUFFIX}"
|
||||
@echo
|
||||
@echo "To finish configuration:"
|
||||
@echo
|
||||
|
@ -398,9 +389,6 @@ install_conf_dir: install_sessions_dir
|
|||
@cp _example/conf/lmConf-1 $(RFILECONFIGDIR)
|
||||
@$(PERL) -000 -i -pe "s#^(globalStorageOptions\\n\\s+)'[^\\n]*?'\$$#\$${1}\'\\\$$data1 = {&39;Directory&39; => &39;$(APACHESESSIONFILEDIR)&39;,&39;LockDirectory&39; => &39;$(APACHESESSIONFILELOCKDIR)&39;};'#m" $(RFILECONFIGDIR)/lmConf-1
|
||||
@$(PERL) -i -pe 's/__DNSDOMAIN__/$(DNSDOMAIN)/g;\
|
||||
s/__LDAPPORT__/$(LDAPPORT)/g;\
|
||||
s/__LDAPHOST__/$(LDAPHOST)/g;\
|
||||
s/__LDAPSUFFIX__/$(LDAPSUFFIX)/g;\
|
||||
s#__SESSIONDIR__#$(APACHESESSIONFILEDIR)#g;' $(RFILECONFIGDIR)/lmConf-1
|
||||
@if [ "$(APACHEUSER)" != "" ]; then \
|
||||
chown $(APACHEUSER) $(RFILECONFIGDIR) || exit 1; \
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
applicationList
|
||||
'$data1 = {'1sample' => { catname => 'Sample applications',type => 'category', 'test1' => { type => 'application', options => { name => 'Application Test 1', uri => 'http://test1.__DNSDOMAIN__/', description => 'A simple application displaying authenticated user', logo => 'demo.png', display => 'auto', }, },'test2' => { type => 'application', options => { name => 'Application Test 2', uri => 'http://test2.__DNSDOMAIN__/', description => 'The same simple application displaying authenticated user', logo => 'thumbnail.png', display => 'auto', }, }, },'2administration' => { catname => 'Administration', type => 'category', 'manager' => { type => 'application', options => { name => 'WebSSO Manager', uri => 'http://manager.__DNSDOMAIN__/', description => 'Configure LemonLDAP::NG WebSSO', logo => 'configure.png', display => 'on', }, },'sessions' => { type => 'application', options => { name => 'Sessions explorer', uri => 'http://manager.__DNSDOMAIN__/sessions.pl', description => 'Explore WebSSO sessions', logo => 'database.png', display => 'on', }, }, }, '3documentation' => { catname => 'Documentation', type => 'category', 'localdoc' => { type => 'application', options => { name => 'Local documentation', uri => 'http://manager.__DNSDOMAIN__/doc/', description => 'Documentation supplied with LemonLDAP::NG', logo => 'help.png', display => 'on', }, },'officialwebsite' => { type => 'application', options => { name => 'Offical Website', uri => 'http://lemonldap-ng.org/', description => 'Official LemonLDAP::NG Website', logo => 'network.png', display => 'on', }, }, }, }'
|
||||
'$data1 = {'1sample' => { catname => 'Sample applications',type => 'category', 'test1' => { type => 'application', options => { name => 'Application Test 1', uri => 'http://test1.__DNSDOMAIN__/', description => 'A simple application displaying authenticated user', logo => 'demo.png', display => 'auto', }, },'test2' => { type => 'application', options => { name => 'Application Test 2', uri => 'http://test2.__DNSDOMAIN__/', description => 'The same simple application displaying authenticated user', logo => 'thumbnail.png', display => 'auto', }, }, },'2administration' => { catname => 'Administration', type => 'category', 'manager' => { type => 'application', options => { name => 'WebSSO Manager', uri => 'http://manager.__DNSDOMAIN__/', description => 'Configure LemonLDAP::NG WebSSO', logo => 'configure.png', display => 'auto', }, },'sessions' => { type => 'application', options => { name => 'Sessions explorer', uri => 'http://manager.__DNSDOMAIN__/sessions.pl', description => 'Explore WebSSO sessions', logo => 'database.png', display => 'auto', }, }, }, '3documentation' => { catname => 'Documentation', type => 'category', 'localdoc' => { type => 'application', options => { name => 'Local documentation', uri => 'http://manager.__DNSDOMAIN__/doc/', description => 'Documentation supplied with LemonLDAP::NG', logo => 'help.png', display => 'on', }, },'officialwebsite' => { type => 'application', options => { name => 'Offical Website', uri => 'http://lemonldap-ng.org/', description => 'Official LemonLDAP::NG Website', logo => 'network.png', display => 'on', }, }, }, }'
|
||||
|
||||
globalStorage
|
||||
'Apache::Session::File'
|
||||
|
@ -10,14 +10,17 @@ cookieName
|
|||
exportedVars
|
||||
'$data1 = {'uid' => 'uid','cn' => 'cn','mail' => 'mail'};'
|
||||
|
||||
ldapPort
|
||||
__LDAPPORT__
|
||||
|
||||
authentication
|
||||
'LDAP'
|
||||
'Demo'
|
||||
|
||||
userDB
|
||||
'Demo'
|
||||
|
||||
passwordDB
|
||||
'Null'
|
||||
|
||||
locationRules
|
||||
'$data1 = {'test2.__DNSDOMAIN__' => {'default' => 'accept','^/logout' => 'logout_sso http://auth.__DNSDOMAIN__'},'test1.__DNSDOMAIN__' => {'default' => 'accept','^/logout' => 'logout_sso http://auth.__DNSDOMAIN__'}};'
|
||||
'$data1 = {'test2.__DNSDOMAIN__' => {'default' => 'accept','^/logout' => 'logout_sso http://auth.__DNSDOMAIN__'},'test1.__DNSDOMAIN__' => {'default' => 'accept','^/logout' => 'logout_sso http://auth.__DNSDOMAIN__'},'manager.__DNSDOMAIN__' => {'default' => '$uid eq "dwho"'}};'
|
||||
|
||||
domain
|
||||
'__DNSDOMAIN__'
|
||||
|
@ -31,21 +34,12 @@ groups
|
|||
portal
|
||||
'http://auth.__DNSDOMAIN__/'
|
||||
|
||||
ldapServer
|
||||
'__LDAPHOST__'
|
||||
|
||||
exportedHeaders
|
||||
'$data1 = {'test2.__DNSDOMAIN__' => {'Auth-User' => '$uid'},'test1.__DNSDOMAIN__' => {'Auth-User' => '$uid'}};'
|
||||
|
||||
ldapBase
|
||||
'__LDAPSUFFIX__'
|
||||
|
||||
globalStorageOptions
|
||||
'$data1 = {'Directory' => '__SESSIONDIR__'};'
|
||||
|
||||
managerPassword
|
||||
''
|
||||
|
||||
cfgNum
|
||||
1
|
||||
|
||||
|
@ -55,11 +49,8 @@ cfgAuthor
|
|||
securedCookie
|
||||
0
|
||||
|
||||
managerDn
|
||||
''
|
||||
|
||||
macros
|
||||
'$data1 = {'_whatToTrace' => '$_auth eq \'LDAP\' ? $uid : ($_auth eq \'SAML\' ? "$_user\\@$_idpConfKey" : "$_user\\@$_auth" )'};'
|
||||
'$data1 = {'_whatToTrace' => '$_auth eq \'SAML\' ? "$_user\\@$_idpConfKey" : "$_user"'};'
|
||||
|
||||
whatToTrace
|
||||
'$_whatToTrace'
|
||||
|
|
|
@ -12,9 +12,6 @@
|
|||
# DocumentRoot
|
||||
DocumentRoot __MANAGERDIR__
|
||||
<Directory __MANAGERDIR__>
|
||||
Order deny,allow
|
||||
Deny from all
|
||||
Allow from 127.0.0.0/8
|
||||
Options +ExecCGI
|
||||
</Directory>
|
||||
|
||||
|
|
|
@ -218,11 +218,11 @@ useRedirectOnError = 1
|
|||
# * by Apache itself,
|
||||
# * by the parameter 'protection' which can take one of the following
|
||||
# values :
|
||||
# * 'authenticate' : all authenticated users can access
|
||||
# * 'manager' : manager is protected like other virtual hosts: you
|
||||
# * authenticate : all authenticated users can access
|
||||
# * manager : manager is protected like other virtual hosts: you
|
||||
# have to set rules in the corresponding virtual host
|
||||
# * 'rule: <rule> : you can set here directly the rule to apply
|
||||
;protection = manager
|
||||
# * rule: <rule> : you can set here directly the rule to apply
|
||||
protection = manager
|
||||
|
||||
# When using "SetHandler cgi-script" instead of using ModPerl::Registry,
|
||||
# Apache LogLevel parameter does not work for LemonLDAP::NG debugging.
|
||||
|
@ -232,6 +232,7 @@ useRedirectOnError = 1
|
|||
;hideLogLevels =
|
||||
|
||||
[sessionsExplorer]
|
||||
|
||||
# Sessions explorer inherits from manager section. You can override here
|
||||
# some parameters like 'protection'
|
||||
;protection = authenticate
|
||||
|
|
Loading…
Reference in New Issue
Block a user