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