Hello, everybody,
I recently deployed DokuWiki on one of our servers and everything went as planned. :-D
Now I wanted to make sure that the full name is displayed in the wiki, not just the LDAP username. According to
https://www.dokuwiki.org/plugin:authldap you have to manually add the line
$conf['plugin'']['authldap']['mapping']['name'] = 'displayname';
However, nothing happened afterwards, the LDAP usernames are still displayed. Did I miss anything? Thanks for any input! :)
Here's my local.php:
<?php
/*
* Dokuwiki's Main Configuration File - Local Settings
* Auto-generated by config plugin
* Run for user: nutzer
* Date: Wed, 21 Aug 2019 11:57:31 +0200
*/
$conf['title'] = 'Name';
$conf['lang'] = 'de';
$conf['license'] = '';
$conf['showuseras'] = 'username';
$conf['authtype'] = 'authldap';
$conf['passcrypt'] = 'ssha';
$conf['superuser'] = '@admin';
$conf['disableactions'] = 'register';
$conf['proxy']['host'] = 'proxyserver.de';
$conf['proxy']['port'] = 80;
$conf['plugin']['publish']['number_of_approved'] = 2;
$conf['plugin']['publish']['hide drafts'] = 1;
$conf['plugin']['publish']['author groups'] = 'admin nutzer';
$conf['plugin']['pagelist']['style'] = 'table';
$conf['plugin']['pagelist']['showheader'] = 1;
$conf['plugin']['pagelist']['showuser'] = '2';
$conf['plugin']['pagelist']['showdiff'] = 1;
$conf['plugin']['authldap']['server'] = 'x.de';
$conf['plugin']['authldap']['usertree'] = 'ou=personen,dc=x,dc=y,dc=de';
$conf['plugin']['authldap']['grouptree'] = 'ou=gruppen,dc=x,dc=y,dc=de';
$conf['plugin']['authldap']['userfilter'] = '(&(&(uid=%{user})(objectClass=person))(|(|(memberOf=cn=mitarbeiter,ou=gruppen,dc=x,dc=y,dc=de)(memberOf=cn=aushilfe,ou=gruppen,dc=x,dc=y,dc=de))(memberOf=cn=nutzer,ou=gruppen,dc=x,dc=y,dc=de)))';
$conf['plugin']['authldap']['groupfilter'] = '(member=%{dn})';
$conf['plugin']['authldap']['version'] = 3;
$conf['plugin']['authldap']['binddn'] = 'cn=dokuwiki,cn=inhalt,ou=server,dc=x,dc=y,dc=de';
$conf['plugin']['authldap']['bindpw'] = 'passwort';
$conf['plugin']['authldap']['modPass'] = 0;
$conf['plugin']['authldap']['mapping']['grps'] = array('memberOf' => '/CN=(.+?),/i');
$conf['plugin']['authldap']['mapping']['name'] = 'displayName';
$conf['plugin']['task']['show_error_msg'] = 1;
$conf['plugin']['task']['show_info_msg'] = 1;
$conf['plugin']['task']['show_success_msg'] = 1;
$conf['plugin']['authldap']['mapping']['name'] = 'displayName';
$conf['plugin']['move']['allowrename'] = '@nutzer';
// end auto-generated content