[dokuwiki] Re: Does dokuwiki support multiple ldap servers?

kay Han wrote on 29.06.2009 14:40:
> Hello dma_k, thanks for your help
> 
> yes I mean if it is possible to configure dokuwiki so that It connects to all 
> three LDAP (AD  actually) servers we have to authenticate the user.
> It sounds like the chain would do the job. But in local.php these parameters 
> are for just for one ldap server, I do not see how I would configure it for 3 
> servers
> 
> $conf['auth']['ldap']['server'] = 'adserver.mycompany.se';
> $conf['auth']['ldap']['binddn'] = '%{user}@addomain.mycompany.se';
> $conf['auth']['ldap']['usertree'] = 'dc=addomain,dc=mycompany,dc=se';
> $conf['auth']['ldap']['userfilter'] = 
> '(userPrincipalName=%{user}@addomain.mycompany.se)';

Hi Kay!

Let's follow the requirement to do top quoting. Thank you, Michael, for
noticing.

If plugin internals have been written correctly, I am sure, you will
find no difficulties extend this plugin to chain different LDAP servers.
My idea is that the configuration should also contain the type of the
service, and hash keys may take any values:

$conf['auth']['chained']['authconfigs'] = "conf1 conf2 conf3"

$conf['auth']['conf1']['type'] = 'ldap';
$conf['auth']['conf1']['server'] = ...
$conf['auth']['conf2']['type'] = 'ldap';
$conf['auth']['conf2']['server'] = ...
$conf['auth']['conf3']['type'] = 'ldap';
$conf['auth']['conf3']['server'] = ...

Or try contacting the plugin's author if you have difficulties.

Bye
-- 
DokuWiki mailing list - more info at
http://wiki.splitbrain.org/wiki:mailinglist

Other related posts: