Alias /ikiwiki /var/www/ikiwiki
Alias /ikiwiki-auth /var/www/ikiwiki
AddHandler cgi-script .cgi

<Location /ikiwiki>
    Options +ExecCGI
</Location>

<Location /ikiwiki-auth>
    Options +ExecCGI

    AuthType basic
    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=wiki,ou=groups,dc=thisbox
</Location>
