[horde] trouble with prefs
Ralf Lang
lang at b1-systems.de
Tue Oct 19 15:18:13 UTC 2021
Zitat von A. Schulze <sca at andreasschulze.de>:
> 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
Hi Andreas,
it is very interesting you are not getting errors on export/import of
prefs. The idea was if it was content no longer compatible with the
infrastructure stack (ldap lib, prefs lib, core glue) we would see
errors here. This is not the case.
horde-db-migrate mostly does table schema migrations and some few
cases of autogenerating or transforming data for new mandatory
columns. This will not help with prefs stored in ldap, but I am also
not sure which prefs could possibly cause issues - apart from the
portal blocks layout.
--
Ralf Lang
Linux Consultant & Developer
Tel: +49 170 63 8 15 63
Mail: lang at b1-systems.de
B1 Systems GmbH
Osterfeldstraße 7 / 85088 Vohburg / http://www.b1-systems.de
GF: Ralph Dehner / Unternehmenssitz: Vohburg / AG: Ingolstadt,HRB 3537
More information about the horde
mailing list