Roundcube Community Forum

 

ldap confnig broken

Started by cbrace, April 02, 2012, 12:46:37 PM

Previous topic - Next topic

cbrace

Hi all,

Some time in the recent past, perhaps with the release of v0.7, my LDAP addressbook configuration broke. Everytime I enter an email address in the To: field, I see an error message:

Quote[02-Apr-2012 11:06:52 +0200]: PHP Error: Addressbook source (entic) not found! in /usr/local/www/roundcube/program/include/rcmail.php on line 450 (POST /rc/?_task=mail&_action=autocomplete?_task=&_action=)

This is the configuration that worked for me for several years:

$rcmail_config['ldap_public']['Entic'] = array(
'name'          => 'Entic.net',
'hosts'         => array('ds1-sjc.entic.net'),

'port'          => 389,
'use_tls'         => false,
'user_specific' => true,   // If true the base_dn, bind_dn and bind_pass default to the user's IMAP login.

'base_dn'       => 'uid=cbrace,ou=People,o=entic.net',
'bind_dn'       => 'uid=cbrace,ou=People,o=entic.net',

'bind_pass'     => '',
'writable'      => true,   // Indicates if we can write to the LDAP directory or not.


I wrote to entic.net and here was the reply:

QuoteDid you recently upgrade RC? Which version are you using?

That seems like a bug in RC though.

Here is one of the last searches for your account, and it seems to have succeeded:

[02/Apr/2012:02:05:53 -0700] CONNECT conn=431820 from=208.64.63.33:64430 to=208.64.63.33:636 protocol=LDAPS
[02/Apr/2012:02:05:53 -0700] BIND REQ conn=431820 op=0 msgID=1 type=SIMPLE dn="uid=cbrace,ou=People,o=entic.net"
[02/Apr/2012:02:05:53 -0700] BIND RES conn=431820 op=0 msgID=1 result=0 authDN="uid=cbrace,ou=People,o=entic.net" etime=1
[02/Apr/2012:02:05:53 -0700] SEARCH REQ conn=431820 op=1 msgID=2 base="uid=cbrace,ou=People,o=entic.net" scope=singleLevel filter="(&(cn=*)(objectClass=person))" attrs="*,entryUUID"
[02/Apr/2012:02:05:53 -0700] SEARCH RES conn=431820 op=1 msgID=2 result=0 nentries=321 etime=221
[02/Apr/2012:02:05:53 -0700] DISCONNECT conn=431820 reason="Client Disconnect"

Any ideas on what might be going on here?

I am currently running v0.7.2 under FreeBSD 8.2.

Thanks

alec

Addressbook identifiers are case sensitive. Search 'entic' in your config and replace with 'Entic' or vice-versa.

cbrace

Thanks. Fixing the case stopped the error message. But no entries are appearing in the address book. It appears my DB schema is out of date. I am trying to update it but encountring an SQL error (I've started a new thread about this).

cbrace

It appears my DB schema was out of date. Once I solved that, the LDAP address book worked again.