[horde] ldap authentication with horde 2.2.5

dju` dju.ml at elegiac.net
Wed Aug 18 03:21:07 PDT 2004


Edwin Culp wrote:
> Quoting dju` <dju.ml at elegiac.net>:
> 
>> Hello,
>>
>> I'm trying to use a LDAP backend for authing users on horde. However,
>> horde needs to bind with a specific "login" account before searching for
>> username and password.
>>
>> Here is my configuration:
>>
>> $conf['auth']['driver'] = 'ldap';
>> $conf['auth']['params']['hostspec'] = 'ldap';
>> $conf['auth']['params']['port'] = '389';
>> $conf['auth']['params']['basedn'] = 'ou=users,dc=domain,dc=tld';
>> $conf['auth']['params']['uid'] = 'uid';
>> $conf['auth']['params']['username'] = 'uid=login,dc=domain,dc=tld';
>> $conf['auth']['params']['password'] = 'password';
> 
> 
> I'm confused.  It could be because of your version.  I have no
> idea what 2.2.5 is unfortunately.  I have a couple of questions:
> 
>   Where did you find the last two lines of your configuration?

I've looked into /lib/Prefs/ldap.php ($Revision: 1.14.2.20) which has
these settings. but /lib/Auth/ldap.php ($Revision: 1.5.2.6) doesn't.

>   Do you not have the following or similar:
> 
> $conf['auth']['params']['binddn'] = 'cn=manager,o=domain.tld';
> $conf['auth']['params']['password'] =
> 'supersecretldaprootpassword';

tried with binddn param, didn't change anything.

> 
>   Do you have a horde/config/conf.xml?  (That will help me with
> the version)

I don't have such file. I'm running horde-2.2.5 on Gentoo.

> 
> On other apps like turba I configure the binddn dynamically to
> the user credentials but that will only work in Horde, AFAIK. if
> you have one of the older versions that isn't conf.xml  I've
> never been able to get dynamic configuration to work since it
> went in.
> 
> Worse case would be that using a configuration like:
> 
> $conf['auth']['params']['hostspec'] = 'localhost';
> $conf['auth']['params']['basedn'] = 'ou=people,o=o=domain.tld';
> $conf['auth']['params']['binddn'] = 'cn=manager,o=o=domain.tld';
> $conf['auth']['params']['password'] = 'supersecretrootpassword';
> $conf['auth']['params']['uid'] = 'mail';
> $conf['auth']['params']['objectclass'] = array('person');
> $conf['auth']['params']['filter_type'] = 'objectclass';
> $conf['auth']['driver'] = 'ldap';
> 
> will work

no, it didn't do the trick.

Maybe files revision can give you more information? Thanks for feedback.
-- 
--dju`



More information about the horde mailing list