LDAP problem

Nels Lindquist nlindq@maei.ca
Wed, 20 Jun 2001 09:21:06 -0600


Hi there.

I've tried to configure a local LDAP server for use with IMP, but I'm 
running into problems.  I'm able to search the directory successfully 
with ldapsearch from the command line, or with the LDAP clients in 
Outlook Express and Pegasus Mail.

Whatever parameters I search on in IMP (version 2.2.4), I get "No 
appropriate entries found."  Looking at the logs for the ldap server, 
I see the following whenever IMP tries to do a search:

(search for First Name contains Nels)
> Jun 20 09:11:08 acct-srv slapd[28951]: conn=17 op=1 SRCH
> base="dc=maei,dc=ca" scope=2 filter="(&(badfilter)(cn=*Nels*))" 

(search for Surname begins with L)
> Jun 20 09:14:45 acct-srv slapd[28951]: conn=19 op=1 SRCH
> base="dc=maei,dc=ca" scope=2 filter="(&(badfilter)(cn=L*))" 

By way of contrast, here's a log entry for a successful search from 
Pegasus Mail:

(search for Surname contains L)
> Jun 20 09:14:45 acct-srv slapd[28951]: conn=19 op=1 SRCH
> base="dc=maei,dc=ca" scope=2 filter="(&(badfilter)(cn=L*))" 

It appears that whatever parameters I try to search on, IMP is 
requesting a search on the common name field.  I don't know what the 
&(badfilter) thing means, either.

Here's my server definition, from config/ldap.php3:

$LDAPServers['maei'] = new LDAPServer('maei',
                                      'Morningstar',
                                      'localhost',
                                      'dc=maei,dc=ca',
                                      'sn',
                                      'cn,mail,sn,givenname,uid,ou',
                                      'is,sounds,is_strict,contains,begins,ends',
                                      '',
                                      '',
                                      '');

----
Nels Lindquist <*>
Information Systems Manager
Morningstar Air Express Inc.