File: apache2-ldap.conf

package info (click to toggle)
wordpress-plugin-http-authentication 4.6-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 724 kB
  • sloc: php: 374; sh: 18; makefile: 2
file content (15 lines) | stat: -rw-r--r-- 423 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<LocationMatch /(wp-login|wp-admin)>
	AuthType Basic

	AuthName "Enter Credentials"
	AuthBasicProvider ldap

	AuthLDAPRemoteUserAttribute uid
	AuthLDAPRemoteUserIsDN off
	AuthLDAPGroupAttribute memberUid
	AuthLDAPGroupAttributeIsDN Off
	AuthLDAPURL "ldaps://ldap.example.com:636/dc=example,dc=com?uid?sub"

	Require ldap-group cn=wordpress-group,ou=security,ou=groups,dc=example,dc=com
	Require user admin
</LocationMatch>