[horde] LDAP

Andy Dorman adorman at ironicdesign.com
Wed Oct 15 13:40:54 UTC 2008


> Quoting Jorge Hernandez <jorgeh at fsbcomputers.com>:
> 
>>   Can anybody send me a sample about how to configure horde so I can 
>> get horde to authenticate via LDAP I have this but with no values:
>>
>>   Or at least one with real values (exept for DN and password)
>>
>>  $conf['auth']['params']['hostspec'] = '';
>>  $conf['auth']['params']['basedn'] = '';
>>  $conf['auth']['params']['binddn'] = ;
>>  $conf['auth']['params']['password'] = '';
>>  $conf['auth']['params']['version'] = '';
>>  $conf['auth']['params']['ad'] = '';
>>  $conf['auth']['params']['uid'] = '';
>>  $conf['auth']['params']['encryption'] = '';
>>  $conf['auth']['params']['objectclass'] = array('');
>>  $conf['auth']['params']['newuser_objectclass'] = array('', '');
>>  $conf['auth']['params']['filter_type'] = '';
>>  $conf['auth']['params']['password_expiration'] = '';
>>

unfortunately (or fortunately depending on how you look at it) setting up
Horde with LDAP requires an serious indepth knowledge of how LDAP works and how 
your particular LDAP schema is set up.  Below is a slightly munged version of 
what is working for us right now with openLDAP.

in horde/config/conf.php
...
$conf['auth']['params']['hostspec'] = 'localhost';
$conf['auth']['params']['basedn'] = 'ou=addresses,o=mysite.com';
$conf['auth']['params']['binddn'] = 'o=mysite.com';
$conf['auth']['params']['password'] = 'xxxxxxxxxxxxxxxxxxx';
$conf['auth']['params']['version'] = '3';
$conf['auth']['params']['ad'] = false;
$conf['auth']['params']['uid'] = 'userid';
$conf['auth']['params']['encryption'] = 'plain';
$conf['auth']['params']['newuser_objectclass'] = array('anAddress', 
'webmailAddress');
$conf['auth']['params']['objectclass'] = array('webmailAddress');
$conf['auth']['params']['filter_type'] = 'objectclass';
...

If you install horde and then use the online XML-based config process, the 
explanations on the config web page do a pretty good job of explaining the 
parameters.

Good luck.

Andy Dorman




More information about the horde mailing list