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