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

Understanding slapd logging



Hello, I'm trying to figure out why some ldap searches aren't working so
I turned on loglevel 4 in the slapd.conf file. (FWIW, I'm running
OpenLDAP 2.0.25 on a Redhat 8.0 box).

1:	Nov  5 13:11:11 delta slapd[2487]: connection_get(17)
2:	Nov  5 13:11:11 delta slapd[2497]: SRCH
"ou=HostedDomains,dc=ladeda,dc=example,dc=com" 1 0
3:	Nov  5 13:11:11 delta slapd[2497]:     0 0 0
4:	Nov  5 13:11:11 delta slapd[2497]:     filter:
(&(o=domain.org)(objectClass=organization))
5:	Nov  5 13:11:11 delta slapd[2497]:     attrs:
6:	Nov  5 13:11:11 delta slapd[2497]:  description

I undestand that line 1 is accepting the connection.

Line 2 has the search base. But what is the "1 0" at the end of the
line? I've notcied some lines have "2 0" I my log file.

I have no clue what the "0 0 0" on line 3 is for....

I'm pretty sure that line 4 is what is being searched for in the search
base(line 2). In this example, looking for an organization record with
the "o" field being equal to 'domain.org'.

Line 5 & 6, I'm thinking is telling me what fields the LDAP server is
going to return when it find a match in the query, but I'm not sure.

What really puzzels me are the "1 0 0 0 0" numbers. Also, is there a way
see if any (or how many) records were matched or not matched?


James