Use the common LDAP auth configuration in all modules

By maintaining a common LDAP auth configuration, it becomes easy for
us to change the configuration values in future for upgrades etc.
This commit is contained in:
Sunil Mohan Adapa authored and James Valleroy committed 2017-03-29 17:24:04 -04:00
1 parent 2c0581ea26
commit d1fa4e054e
4 files changed
+4 -24

No files matched your search

@@ -9,12 +9,7 @@ AddHandler cgi-script .cgi
<Location /ikiwiki-auth> <Location /ikiwiki-auth>
Options +ExecCGI Options +ExecCGI
AuthType basic Include includes/freedombox-auth-ldap.conf
AuthName "FreedomBox Login"
AuthBasicProvider ldap
AuthLDAPUrl "ldap:///ou=users,dc=thisbox?uid"
AuthLDAPGroupAttribute memberUid
AuthLDAPGroupAttributeIsDN off
Require ldap-group cn=admin,ou=groups,dc=thisbox Require ldap-group cn=admin,ou=groups,dc=thisbox
Require ldap-group cn=wiki,ou=groups,dc=thisbox Require ldap-group cn=wiki,ou=groups,dc=thisbox
</Location> </Location>
@@ -8,11 +8,6 @@ Redirect 301 /.well-known/caldav /radicale/.well-known/caldav
<Location /radicale> <Location /radicale>
ProxyPass http://localhost:5232 ProxyPass http://localhost:5232
AuthType basic Include includes/freedombox-auth-ldap.conf
AuthName "FreedomBox Login"
AuthBasicProvider ldap
AuthLDAPUrl "ldap:///ou=users,dc=thisbox?uid"
AuthLDAPGroupAttribute memberUid
AuthLDAPGroupAttributeIsDN off
Require valid-user Require valid-user
</Location> </Location>
@@ -5,11 +5,6 @@
<Location /repro> <Location /repro>
ProxyPass http://localhost:5080 ProxyPass http://localhost:5080
AuthType basic Include includes/freedombox-auth-ldap.conf
AuthName "FreedomBox Login"
AuthBasicProvider ldap
AuthLDAPUrl "ldap:///ou=users,dc=thisbox?uid"
AuthLDAPGroupAttribute memberUid
AuthLDAPGroupAttributeIsDN off
Require ldap-group cn=admin,ou=groups,dc=thisbox Require ldap-group cn=admin,ou=groups,dc=thisbox
</Location> </Location>
@@ -5,11 +5,6 @@
Alias /tt-rss /usr/share/tt-rss/www Alias /tt-rss /usr/share/tt-rss/www
<Location /tt-rss> <Location /tt-rss>
AuthType basic Include includes/freedombox-auth-ldap.conf
AuthName "FreedomBox Login"
AuthBasicProvider ldap
AuthLDAPUrl "ldap:///ou=users,dc=thisbox?uid"
AuthLDAPGroupAttribute memberUid
AuthLDAPGroupAttributeIsDN off
Require valid-user Require valid-user
</Location> </Location>