[horde] trouble with prefs

A. Schulze sca at andreasschulze.de
Tue Oct 19 14:41:44 UTC 2021



Am 19.10.21 um 15:24 schrieb Ralf Lang:

> In Horde's base config, this would look like this.
> 
> $conf['ldap']['hostspec'] = array('ldaps://ldap.foo.de');
> $conf['ldap']['port'] = 636;
> $conf['ldap']['tls'] = false;
> $conf['ldap']['timeout'] = 5;
> $conf['ldap']['version'] = 3;
> $conf['ldap']['binddn'] = 'cn=my_cn,ou=services,dc=something,dc=myorg';
> $conf['ldap']['bindpw'] = 'secretpw';
> $conf['ldap']['user']['basedn'] = 'dc=something,dc=myorg';
> $conf['ldap']['user']['uid'] = 'uid';
> $conf['ldap']['user']['objectclass'] = array('top', 'person', 'organizationalPerson', 'inetOrgPerson');
> $conf['ldap']['user']['filter_type'] = 'objectclass';
> $conf['ldap']['bindas'] = 'admin';
> $conf['ldap']['useldap'] = true;
> 
> 
> You can copy/paste that to your config.
> 
> Now add:
> 
> $conf['driver'] = 'Ldap';
> $conf['params']['ldap'] = new Horde_Ldap($conf['ldap']);

Hello!

indeed, this works! I have now:

$ cat /tmp/horde-prefs.conf.php
<?php
$conf['ldap']['hostspec'] = array('ldaps://ldap.foo.de');
$conf['ldap']['port'] = 636;
$conf['ldap']['tls'] = false;
$conf['ldap']['timeout'] = 5;
$conf['ldap']['version'] = 3;
$conf['ldap']['binddn'] = 'cn=my_cn,ou=services,dc=something,dc=myorg';
$conf['ldap']['bindpw'] = 'secretpw';
$conf['ldap']['user']['basedn'] = 'dc=something,dc=myorg';
$conf['ldap']['user']['uid'] = 'uid';
$conf['ldap']['user']['objectclass'] = array('top', 'person', 'organizationalPerson', 'inetOrgPerson');
$conf['ldap']['user']['filter_type'] = 'objectclass';
$conf['ldap']['bindas'] = 'admin';
$conf['ldap']['useldap'] = true;

$conf['driver'] = 'Ldap';
$conf['params']['ldap'] = new Horde_Ldap($conf['ldap']);
// end

$ horde-prefs /tmp/horde-prefs.conf.php user list
horde
imp

$ horde-prefs /tmp/horde-prefs.conf.php user print imp
<many lines of>
key: value
<and some lines with a key but no value>
key:

But back to my initial problem, there are no errors in contrast to https://lists.horde.org/archives/horde/Week-of-Mon-20211011/059112.html
Michael suggested to use 'horde-db-migrate' expecting prefs are stored in an SQL-DB. But I don't see how this has to be done for 'prefs in LDAP' 

Andreas


More information about the horde mailing list