[debian-edu-commits] debian-edu/ 01/01: Apache2+LDAP: Add /etc/apache2/include/debian-edu-ldapauth.inc containing a working include block that eases setting up LDAP authentication in Apache2.

Mike Gabriel sunweaver at debian.org
Wed Oct 14 14:30:35 UTC 2015


This is an automated email from the git hooks/post-receive script.

sunweaver pushed a commit to branch master
in repository debian-edu-config.

commit 2ba90981341aefffb463984a78179236ff815dc0
Author: Mike Gabriel <mike.gabriel at das-netzwerkteam.de>
Date:   Wed Oct 14 16:29:54 2015 +0200

    Apache2+LDAP: Add /etc/apache2/include/debian-edu-ldapauth.inc containing a working include block that eases setting up LDAP authentication in Apache2.
---
 Makefile                                    |  1 +
 debian/changelog                            |  3 +++
 etc/apache2/include/debian-edu-ldapauth.inc | 10 ++++++++++
 3 files changed, 14 insertions(+)

diff --git a/Makefile b/Makefile
index 1b54d45..2790a11 100644
--- a/Makefile
+++ b/Makefile
@@ -157,6 +157,7 @@ SYSCONFFILES = \
 	apache2/sites-available/debian-edu-default.conf \
 	apache2/sites-available/debian-edu-ssl-default.conf \
 	apache2/conf-available/debian-edu-config-doc.conf \
+	apache2/include/debian-edu-ldapauth.inc \
 	nagios3/debian-edu/cgi.cfg \
 	nagios3/debian-edu/commands.cfg \
 	nagios3/debian-edu/contactgroups.cfg \
diff --git a/debian/changelog b/debian/changelog
index fec9092..1db980a 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -50,6 +50,9 @@ debian-edu-config (1.819) UNRELEASED; urgency=low
     main server.
   * Add LDAP posixGroup "printer-admins" to LDAP bootstrap and make this
     group the system group in CUPS. (Closes: #793678).
+  * Apache2+LDAP: Add /etc/apache2/include/debian-edu-ldapauth.inc containing
+    a working include block that eases setting up LDAP authentication
+    in Apache2.
 
  -- Petter Reinholdtsen <pere at debian.org>  Sat, 16 May 2015 23:12:06 +0200
 
diff --git a/etc/apache2/include/debian-edu-ldapauth.inc b/etc/apache2/include/debian-edu-ldapauth.inc
new file mode 100644
index 0000000..594d4e1
--- /dev/null
+++ b/etc/apache2/include/debian-edu-ldapauth.inc
@@ -0,0 +1,10 @@
+AuthType                        Basic
+AuthBasicProvider               ldap file
+AuthName                        "Administrative authentication needed to access this URL"
+AuthUserFile                    /dev/null
+AuthBasicAuthoritative          On
+AuthLDAPURL                     ldaps://ldap.intern/dc=skole,dc=skolelinux,dc=no?uid?sub?(objectClass=posixAccount)
+AuthLDAPGroupAttribute          memberUid
+AuthLDAPGroupAttributeIsDN      Off
+
+# set LogLevel to debug in VirtualHost's config section for debugging LDAP authentication/authorization

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-edu/debian-edu-config.git



More information about the debian-edu-commits mailing list