LDAP address book results not displaying

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

LDAP address book results not displaying

Jason P. Thomas
I've turned debugging on and see successful ldap lookups in
logs/ldap.log.  There is a list of dots when I go to my ldap address
book.  The number of lines of dots is equivalent to the number of
entries returned for my ldap filter.  I also see lookups for users when
I click the lines equivalent to who should be on that line
alphabetically.  This behavior persists in different skins, though the
dots change to notebook icons in some skins.  Autocomplete is not
functioning either.  Any help would be appreciated.  My sanitized
address book entry follows:

$config['ldap_public']['public'] = array(
     'name'            => 'Company LDAP',
     'hosts'           => array('ldap.mycompany.com'),
     'ldap_version'    => 3,
     'port'            => 389,
     'network_timeout' => 10,
//    'user_specific'   => true,
     'base_dn'         => 'ou=People,dc=mycompany,dc=com',
     'bind_dn'         => 'uid=dovecot,ou=People,dc=mycompany,dc=com',
     'bind_pass'       => 'supersecretpasswd',
     'filter'          => '(gidNumber=12345678)',
);
$config['autocomplete_addressbooks'] = array('sql','public');

Some other possibly pertinent info:
I had a 1.2.1 version that worked just fine.  I've carried over config
options from that install as appropriate.  The current version is
roundcube 1.4.2

The old version was running the stock php 5.4 in CentOS 7.  I've since
upgraded to php 7.3 via the scl repo.  I also switched from mod_php to fpm.


Sincerely,
Jason
_______________________________________________
Roundcube Users mailing list
[hidden email]
http://lists.roundcube.net/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: LDAP address book results not displaying

A.L.E.C
On 24.01.2020 20:32, Jason P. Thomas wrote:

> $config['ldap_public']['public'] = array(
>     'name'            => 'Company LDAP',
>     'hosts'           => array('ldap.mycompany.com'),
>     'ldap_version'    => 3,
>     'port'            => 389,
>     'network_timeout' => 10,
> //    'user_specific'   => true,
>     'base_dn'         => 'ou=People,dc=mycompany,dc=com',
>     'bind_dn'         => 'uid=dovecot,ou=People,dc=mycompany,dc=com',
>     'bind_pass'       => 'supersecretpasswd',
>     'filter'          => '(gidNumber=12345678)',

There's no default fieldmap, so you have to define 'fieldmap' here.

--
Aleksander Machniak
Kolab Groupware Developer        [https://kolab.org]
Roundcube Webmail Developer  [https://roundcube.net]
----------------------------------------------------
PGP: 19359DC1 # Blog: https://kolabian.wordpress.com
_______________________________________________
Roundcube Users mailing list
[hidden email]
http://lists.roundcube.net/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: LDAP address book results not displaying

Jason P. Thomas
I think that is defined in the defaults file.  I'll check when I get
into work tomorrow.  Unless that's supposed to be part of the array I
pasted.  I'll give that a look tomorrow too.

Thanks

On 1/25/2020 1:38 AM, Aleksander Machniak wrote:

> On 24.01.2020 20:32, Jason P. Thomas wrote:
>
>> $config['ldap_public']['public'] = array(
>>      'name'            => 'Company LDAP',
>>      'hosts'           => array('ldap.mycompany.com'),
>>      'ldap_version'    => 3,
>>      'port'            => 389,
>>      'network_timeout' => 10,
>> //    'user_specific'   => true,
>>      'base_dn'         => 'ou=People,dc=mycompany,dc=com',
>>      'bind_dn'         => 'uid=dovecot,ou=People,dc=mycompany,dc=com',
>>      'bind_pass'       => 'supersecretpasswd',
>>      'filter'          => '(gidNumber=12345678)',
> There's no default fieldmap, so you have to define 'fieldmap' here.
>
_______________________________________________
Roundcube Users mailing list
[hidden email]
http://lists.roundcube.net/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: LDAP address book results not displaying

Jason P. Thomas
In reply to this post by A.L.E.C
Aleksander,
     That was exactly it!  Thank you!  I should have looked at where
that pesky closing ); was in the defaults file.  Address book and
autocomplete work exactly as desired.

Thanks,
Jason

On 1/25/20 1:38 AM, Aleksander Machniak wrote:

> On 24.01.2020 20:32, Jason P. Thomas wrote:
>
>> $config['ldap_public']['public'] = array(
>>      'name'            => 'Company LDAP',
>>      'hosts'           => array('ldap.mycompany.com'),
>>      'ldap_version'    => 3,
>>      'port'            => 389,
>>      'network_timeout' => 10,
>> //    'user_specific'   => true,
>>      'base_dn'         => 'ou=People,dc=mycompany,dc=com',
>>      'bind_dn'         => 'uid=dovecot,ou=People,dc=mycompany,dc=com',
>>      'bind_pass'       => 'supersecretpasswd',
>>      'filter'          => '(gidNumber=12345678)',
> There's no default fieldmap, so you have to define 'fieldmap' here.
>
_______________________________________________
Roundcube Users mailing list
[hidden email]
http://lists.roundcube.net/mailman/listinfo/users