Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
lemonldap-ng
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
258
Issues
258
List
Boards
Labels
Service Desk
Milestones
Merge Requests
5
Merge Requests
5
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
LemonLDAP NG
lemonldap-ng
Commits
21d6fa7e
Commit
21d6fa7e
authored
Dec 18, 2012
by
Clément OUDOT
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Split test and handler configuration files (
#568
)
parent
5f0b631e
Changes
10
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
88 additions
and
62 deletions
+88
-62
Makefile
Makefile
+2
-0
_example/etc/handler-apache.conf
_example/etc/handler-apache.conf
+0
-29
_example/etc/handler-apache2.conf
_example/etc/handler-apache2.conf
+0
-33
_example/etc/test-apache.conf
_example/etc/test-apache.conf
+36
-0
_example/etc/test-apache2.conf
_example/etc/test-apache2.conf
+40
-0
debian/README.Debian
debian/README.Debian
+1
-0
debian/liblemonldap-ng-handler-perl.examples
debian/liblemonldap-ng-handler-perl.examples
+1
-0
debian/liblemonldap-ng-handler-perl.install
debian/liblemonldap-ng-handler-perl.install
+1
-0
debian/liblemonldap-ng-handler-perl.links
debian/liblemonldap-ng-handler-perl.links
+1
-0
rpm/lemonldap-ng.spec
rpm/lemonldap-ng.spec
+6
-0
No files found.
Makefile
View file @
21d6fa7e
...
...
@@ -248,6 +248,7 @@ install_site: install_manager_site install_portal_site install_handler_site inst
cp
--remove-destination
_example/etc/portal-apache
$(APACHEVERSION)
.conf
$(RCONFDIR)
;
\
cp
--remove-destination
_example/etc/handler-apache
$(APACHEVERSION)
.conf
$(RCONFDIR)
;
\
cp
--remove-destination
_example/etc/manager-apache
$(APACHEVERSION)
.conf
$(RCONFDIR)
;
\
cp
--remove-destination
_example/etc/test-apache
$(APACHEVERSION)
.conf
$(RCONFDIR)
;
\
cp
--remove-destination
_example/etc/for_etc_hosts
$(RCONFDIR)
;
\
fi
@
$(PERL)
-i
-pe
's#__HANDLER__#
${HANDLERDIR}
/MyHandler.pm#; \
...
...
@@ -271,6 +272,7 @@ install_site: install_manager_site install_portal_site install_handler_site inst
@
echo
" include
${CONFDIR}
/portal-apache
$(APACHEVERSION)
.conf"
@
echo
" include
${CONFDIR}
/handler-apache
$(APACHEVERSION)
.conf"
@
echo
" include
${CONFDIR}
/manager-apache
$(APACHEVERSION)
.conf"
@
echo
" include
${CONFDIR}
/test-apache
$(APACHEVERSION)
.conf"
@
echo
@
echo
"2 - Restart Apache:"
@
echo
" apache
$(APACHEVERSION)
ctl restart"
...
...
_example/etc/handler-apache.conf
View file @
21d6fa7e
...
...
@@ -13,35 +13,6 @@ ErrorDocument 403 http://auth.__DNSDOMAIN__/?lmError=403
ErrorDocument
500
http
://
auth
.
__
DNSDOMAIN__
/?
lmError
=
500
ErrorDocument
503
http
://
auth
.
__
DNSDOMAIN__
/?
lmError
=
503
# Sample application
<
VirtualHost
__
VHOSTLISTEN__
>
ServerName
test1
.
__
DNSDOMAIN__
ServerAlias
test2
.
__
DNSDOMAIN__
# SSO protection
PerlHeaderParserHandler
My
::
Package
# DocumentRoot
DocumentRoot
__
TESTDIR__
<
Directory
__
TESTDIR__
>
Order
deny
,
allow
Allow
from
all
Options
+
ExecCGI
</
Directory
>
# Perl script (application test is written in Perl)
<
Files
*.
pl
>
SetHandler
perl
-
script
PerlHandler
Apache
::
Registry
</
Files
>
# Directory index
<
IfModule
mod_dir
.
c
>
DirectoryIndex
index
.
pl
index
.
html
</
IfModule
>
</
VirtualHost
>
<
VirtualHost
__
VHOSTLISTEN__
>
ServerName
reload
.
__
DNSDOMAIN__
...
...
_example/etc/handler-apache2.conf
View file @
21d6fa7e
...
...
@@ -14,39 +14,6 @@ ErrorDocument 403 http://auth.__DNSDOMAIN__/?lmError=403
ErrorDocument
500
http
://
auth
.
__
DNSDOMAIN__
/?
lmError
=
500
ErrorDocument
503
http
://
auth
.
__
DNSDOMAIN__
/?
lmError
=
503
# Sample application
<
VirtualHost
__
VHOSTLISTEN__
>
ServerName
test1
.
__
DNSDOMAIN__
ServerAlias
test2
.
__
DNSDOMAIN__
# SSO protection
PerlHeaderParserHandler
My
::
Package
# DocumentRoot
DocumentRoot
__
TESTDIR__
<
Directory
__
TESTDIR__
>
Order
deny
,
allow
Allow
from
all
Options
+
ExecCGI
</
Directory
>
# Perl script (application test is written in Perl)
<
Files
*.
pl
>
SetHandler
perl
-
script
PerlResponseHandler
ModPerl
::
Registry
# Display Menu
PerlOutputFilterHandler
Lemonldap
::
NG
::
Handler
::
Menu
</
Files
>
# Directory index
<
IfModule
mod_dir
.
c
>
DirectoryIndex
index
.
pl
index
.
html
</
IfModule
>
</
VirtualHost
>
<
VirtualHost
__
VHOSTLISTEN__
>
ServerName
reload
.
__
DNSDOMAIN__
...
...
_example/etc/test-apache.conf
0 → 100644
View file @
21d6fa7e
#====================================================================
# Apache configuration for LemonLDAP::NG sample applications
#====================================================================
# Uncomment this if no previous NameVirtualHost declaration
#NameVirtualHost __VHOSTLISTEN__
# Sample application
<
VirtualHost
__
VHOSTLISTEN__
>
ServerName
test1
.
__
DNSDOMAIN__
ServerAlias
test2
.
__
DNSDOMAIN__
# SSO protection
PerlHeaderParserHandler
My
::
Package
# DocumentRoot
DocumentRoot
__
TESTDIR__
<
Directory
__
TESTDIR__
>
Order
deny
,
allow
Allow
from
all
Options
+
ExecCGI
</
Directory
>
# Perl script (application test is written in Perl)
<
Files
*.
pl
>
SetHandler
perl
-
script
PerlHandler
Apache
::
Registry
</
Files
>
# Directory index
<
IfModule
mod_dir
.
c
>
DirectoryIndex
index
.
pl
index
.
html
</
IfModule
>
</
VirtualHost
>
_example/etc/test-apache2.conf
0 → 100644
View file @
21d6fa7e
#====================================================================
# Apache configuration for LemonLDAP::NG sample applications
#====================================================================
# Uncomment this if no previous NameVirtualHost declaration
#NameVirtualHost __VHOSTLISTEN__
# Sample application
<
VirtualHost
__
VHOSTLISTEN__
>
ServerName
test1
.
__
DNSDOMAIN__
ServerAlias
test2
.
__
DNSDOMAIN__
# SSO protection
PerlHeaderParserHandler
My
::
Package
# DocumentRoot
DocumentRoot
__
TESTDIR__
<
Directory
__
TESTDIR__
>
Order
deny
,
allow
Allow
from
all
Options
+
ExecCGI
</
Directory
>
# Perl script (application test is written in Perl)
<
Files
*.
pl
>
SetHandler
perl
-
script
PerlResponseHandler
ModPerl
::
Registry
# Display Menu
PerlOutputFilterHandler
Lemonldap
::
NG
::
Handler
::
Menu
</
Files
>
# Directory index
<
IfModule
mod_dir
.
c
>
DirectoryIndex
index
.
pl
index
.
html
</
IfModule
>
</
VirtualHost
>
debian/README.Debian
View file @
21d6fa7e
...
...
@@ -17,6 +17,7 @@ Enable the components you've installed:
a2ensite handler-apache2.conf
a2ensite portal-apache2.conf
a2ensite manager-apache2.conf
a2ensite test-apache2.conf
and enable mod_perl if not already loaded:
...
...
debian/liblemonldap-ng-handler-perl.examples
View file @
21d6fa7e
debian/tmp/examples/handler/*
debian/tmp/etc/lemonldap-ng/handler-apache2.conf
debian/tmp/etc/lemonldap-ng/test-apache2.conf
debian/tmp/var/lib/lemonldap-ng/test
debian/liblemonldap-ng-handler-perl.install
View file @
21d6fa7e
...
...
@@ -4,3 +4,4 @@
/
var
/
lib
/
lemonldap
-
ng
/
test
/
usr
/
share
/
lemonldap
-
ng
/
bin
/
purgeLocalCache
/
etc
/
lemonldap
-
ng
/
handler
-
apache2
.
conf
/
etc
/
lemonldap
-
ng
/
test
-
apache2
.
conf
debian/liblemonldap-ng-handler-perl.links
View file @
21d6fa7e
/etc/lemonldap-ng/handler-apache2.conf /etc/apache2/sites-available/handler-apache2.conf
/etc/lemonldap-ng/test-apache2.conf /etc/apache2/sites-available/test-apache2.conf
rpm/lemonldap-ng.spec
View file @
21d6fa7e
...
...
@@ -375,6 +375,9 @@ fi
if [ ! -e %{apache_confdir}/z-lemonldap-ng-portal.conf ] ; then
ln -s %{lm_confdir}/portal-apache2.conf %{apache_confdir}/z-lemonldap-ng-portal.conf || :
fi
if [ ! -e %{apache_confdir}/z-lemonldap-ng-test.conf ] ; then
ln -s %{lm_confdir}/test-apache2.conf %{apache_confdir}/z-lemonldap-ng-test.conf || :
fi
# Upgrade from previous version
# See http://lemonldap-ng.org/documentation/1.0/upgrade
if [ $1 -gt 1 ] ; then
...
...
@@ -401,6 +404,7 @@ if [ $1 -eq 0 ] ; then
rm -f %{apache_confdir}/z-lemonldap-ng-handler.conf 2>&1 > /dev/null || :
rm -f %{apache_confdir}/z-lemonldap-ng-manager.conf 2>&1 > /dev/null || :
rm -f %{apache_confdir}/z-lemonldap-ng-portal.conf 2>&1 > /dev/null || :
rm -f %{apache_confdir}/z-lemonldap-ng-test.conf 2>&1 > /dev/null || :
fi
# Upgrade from previous version
if [ $1 -eq 1 ] ; then
...
...
@@ -423,9 +427,11 @@ rm -rf %{buildroot}
%config(noreplace) %{lm_confdir}/handler-apache2.conf
%config(noreplace) %{lm_confdir}/manager-apache2.conf
%config(noreplace) %{lm_confdir}/portal-apache2.conf
%config(noreplace) %{lm_confdir}/test-apache2.conf
%ghost %{apache_confdir}/z-lemonldap-ng-handler.conf
%ghost %{apache_confdir}/z-lemonldap-ng-manager.conf
%ghost %{apache_confdir}/z-lemonldap-ng-portal.conf
%ghost %{apache_confdir}/z-lemonldap-ng-test.conf
%dir %{lm_vardir}
%dir %{lm_sharedir}
%dir %{lm_sharedir}/bin
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment