[dokuwiki] ldap authentication module

  • From: Dmitry Katsubo <dma_k@xxxxxxx>
  • To: dokuwiki@xxxxxxxxxxxxx
  • Date: Thu, 02 Dec 2010 20:40:01 +0100

Dear Dokuwiki users!

It looks like the processing of ldap options has changed a bit in
v2010-11-07 of DokuWiki. In my config file I had 'grouptree' defined,
but not 'groupfilter'. Before it was not causing any troubles, as both
options should be defined for group support to work:

-        if ($this->cnf['grouptree'] && $this->cnf['groupfilter']) {
+        if ($this->cnf['grouptree'] || $this->cnf['groupfilter']) {

but in latest version if 'groupfilter' is not defined, the module
prevents the authentication with this log:

LDAP group search: Protocol error [ldap.class.php:226]
LDAP search at: cn=groups,cn=centurion [ldap.class.php:227]
LDAP: Reading group memberships failed

It took me while before I realised what is causing "Protocol error". I
think, if 'groupfilter' is required, the warning should be shown.

-- 
With best regards,
Dmitry
-- 
DokuWiki mailing list - more info at
http://www.dokuwiki.org/mailinglist

Other related posts:

  • » [dokuwiki] ldap authentication module - Dmitry Katsubo