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 2017-03-23 16:13:38 +05:30 committed by James Valleroy
parent 2c0581ea26
commit d1fa4e054e
No known key found for this signature in database
GPG Key ID: 77C0C75E7B650808
4 changed files with 4 additions and 24 deletions

View File

@ -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>

View File

@ -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>

View File

@ -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>

View File

@ -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>