patagonicus
Hey
I been trying to configure Dokuwiki to authenticate using LDAP. Right now I have the configuration working in Apache. However I have trouble accessing the feeds.php without logging in. Ideal I would like to move the authentication to Dokuwiki itself, so users will have to authenticate using dokuwiki's own login, instead of the Apache "boxes". Can anyone supply me with a proper configuration for Dokuwiki, and I shall be grateful ??
Apache Configuration:
<AuthnProviderAlias ldap server1>
AuthzLDAPAuthoritative off
AuthLDAPBindDN "dn-name"
AuthLDAPBindPassword "pass"
AuthLDAPURL "ldap://server/?userPrincipalName?sub"
AuthLDAPGroupAttribute member
AuthLDAPGroupAttributeIsDN off
</AuthnProviderAlias>
<AuthnProviderAlias ldap server2>
AuthzLDAPAuthoritative off
AuthLDAPBindDN "dn-name"
AuthLDAPBindPassword "'pass"
AuthLDAPURL "ldap://another-server/?userPrincipalName?sub"
AuthLDAPGroupAttribute member
AuthLDAPGroupAttributeIsDN off
</AuthnProviderAlias>
<Location /dokuwiki>
AuthBasicProvider server1 server2
AuthType Basic
AuthzLDAPAuthoritative off
AuthName "Dokuwiki Pages"
Satisfy all
require valid-user
order allow,deny
allow from all
</Location>
conf/local.protected.php:
$conf['authtype'] = 'htaccess';
if (isset($_SERVER['PHP_AUTH_USER']) and !isset($_SESSION[$conf['title']]['auth']['info'])) $_REQUEST['u'] = $_SERVER['PHP_AUTH_USER'];
$conf["htaccess_defaultgrp"] = "user";
$conf["htaccess_domain"] = ""; // username is alread an email
$conf['superuser'] = '@admin';
Cheers
Thomas