[horde] trouble with prefs
Ralf Lang
lang at b1-systems.de
Tue Oct 19 13:24:29 UTC 2021
Am 19.10.21 um 14:43 schrieb A. Schulze:
>
> Am 18.10.21 um 08:43 schrieb Ralf Lang:
>
>> However, you can use your $conf['ldap'] to build an ldap object.
>> I will prepare an example.
> Hello Ralf,
>
> yes, an example would be very helpful!
>
Hi Andreas,
The steps are similar:
- Build a Horde_Ldap connection:
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']);
List of possible parameters can be read here:
https://github.com/maintaina-com/Ldap/blob/FRAMEWORK_6_0/lib/Horde/Ldap.php#L21
> --
> Ralf Lang
> Linux Consultant / Developer
> Tel.: +49-170-6381563
> 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