[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: Odd LDAP display problem



On Sat, Oct 19, 2002 at 08:53:02PM -0700, Des Dougan wrote:

> As far as I can tell, I have configured everything correctly. However, when 
> I run the phpGW process to select the users from LDAP, to confirm whether 
> they should be set up as phpGW users, only the last username in the LDAP 
> database is displayed. I've listed the message log section for the search 

What version of slapd are you running, and which backend database (ldbm,
bdb, etc) are you using? What attributes are indexed?  There have been
some indexing bugs in certain versions that might cause the problem
you describe.

> Oct 18 19:59:07 bertie slapd[26619]: conn=16 op=0 BIND 
> dn="CN=ROOT,DC=DOUGANCONSULTING,DC=COM" method=128
> Oct 18 19:59:07 bertie slapd[26619]: conn=16 op=0 RESULT tag=97 err=0 text=
> Oct 18 19:59:07 bertie slapd[26619]: conn=16 op=1 SRCH 
> base="dc=DouganConsulting,dc=com" scope=2 filter="(|(uid=*))"

That is a rather odd search string - probably OK, but it has a
spurious logical-OR operator.

> Oct 18 19:59:07 bertie slapd[26619]: conn=16 op=1 SEARCH RESULT tag=101 
> err=0 text=
> Oct 18 19:59:08 bertie slapd[26619]: conn=15 op=1 UNBIND
> Oct 18 19:59:08 bertie slapd[26619]: conn=-1 fd=7 closed
> Oct 18 19:59:08 bertie slapd[26619]: conn=16 op=2 UNBIND
> Oct 18 19:59:08 bertie slapd[26619]: conn=-1 fd=14 closed

It would be useful to increase the debug logging level to show
returned results: add 512 to what you are using now.

Note also that your log extract showed interleaved entries from two
separate sessions. Watch the 'conn=' part to make sure you follow the
right session.

Andrew
-- 
-----------------------------------------------------------------------
|                 From Andrew Findlay, Skills 1st Ltd                 |
| Consultant in large-scale systems, networks, and directory services |
|     http://www.skills-1st.co.uk/                +44 1628 782565     |
-----------------------------------------------------------------------