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

Logging OpenLdap queries and answer



Hi!

I'm using an OpenLDAP: slapd 2.2.23 server on a SuSE 9.3 Box.
I've experienced certain problems with authldaprc configuration (Courier IMAP Server, 
Authentification against Openldap, reading homeDirectory and mailbox  values).

Is it possible to log all the queries and answers the openldap server receives/gives?
(Server and Client are both on localhost, otherwise I would use Ethereal or tcpdump ;-()
I've tried a very high loglevel and get some information like below.
I find  send_ldap_result, send_ldap_response entries, but i can't see the values of the 
attributes. Therefore I have difficulties to determine what the ldap Client requested and what 
the server answers.

Any hints would be useful.

Greetings K. Vondrash


Oct 25 15:38:20 linux slapd[5536]: do_search
Oct 25 15:38:20 linux slapd[5536]: >>> dnPrettyNormal: <uid=hiwi, ou=People, 
dc=testdomain,dc=de>
Oct 25 15:38:20 linux slapd[5536]: <<< dnPrettyNormal: 
<uid=hiwi,ou=People,dc=testdomain,dc=de>, <uid=hiwi,ou=people,dc=testdomain,dc=de>
Oct 25 15:38:20 linux slapd[5536]: SRCH "uid=hiwi, ou=People, dc=testdomain,dc=de" 0 3
Oct 25 15:38:20 linux slapd[5536]:     0 0 0
Oct 25 15:38:20 linux slapd[5536]: begin get_filter
Oct 25 15:38:20 linux slapd[5536]: PRESENT
Oct 25 15:38:20 linux slapd[5536]: end get_filter 0
Oct 25 15:38:20 linux slapd[5536]:     filter: (objectClass=*)
Oct 25 15:38:20 linux slapd[5536]:     attrs:
Oct 25 15:38:20 linux slapd[5536]: 
Oct 25 15:38:20 linux slapd[5536]: conn=1 op=6 SRCH 
base="uid=hiwi,ou=People,dc=testdomain,dc=de" scope=0 deref=3 filter="(objectClass=*)"
Oct 25 15:38:20 linux slapd[5536]: => bdb_search
Oct 25 15:38:20 linux slapd[5536]: 
bdb_dn2entry("uid=hiwi,ou=people,dc=testdomain,dc=de")
Oct 25 15:38:20 linux slapd[5536]: base_candidates: base: 
"uid=hiwi,ou=people,dc=testdomain,dc=de" (0x00000020)
Oct 25 15:38:20 linux slapd[5536]: => test_filter
Oct 25 15:38:20 linux slapd[5536]:     PRESENT
Oct 25 15:38:20 linux slapd[5536]: => access_allowed: search access to 
"uid=hiwi,ou=People,dc=testdomain,dc=de" "objectClass" requested
Oct 25 15:38:20 linux slapd[5536]: <= root access granted
Oct 25 15:38:20 linux slapd[5536]: <= test_filter 6
Oct 25 15:38:20 linux slapd[5536]: => send_search_entry: 
dn="uid=hiwi,ou=People,dc=testdomain,dc=de"
Oct 25 15:38:20 linux slapd[5536]: => access_allowed: read access to 
"uid=hiwi,ou=People,dc=testdomain,dc=de" "entry" requested
Oct 25 15:38:20 linux slapd[5536]: <= root access granted
..
..
Oct 25 15:38:20 linux slapd[5536]: => access_allowed: read access to 
"uid=hiwi,ou=People,dc=testdomain,dc=de" "mailbox" requested
Oct 25 15:38:20 linux slapd[5536]: <= root access granted
Oct 25 15:38:20 linux slapd[5536]: conn=1 op=6 ENTRY 
dn="uid=hiwi,ou=People,dc=hdgbw,dc=de"
Oct 25 15:38:20 linux slapd[5536]: <= send_search_entry
Oct 25 15:38:20 linux slapd[5536]: send_ldap_result: conn=1 op=6 p=3
Oct 25 15:38:20 linux slapd[5536]: send_ldap_result: err=0 matched="" text=""
Oct 25 15:38:20 linux slapd[5536]: send_ldap_response: msgid=7 tag=101 err=0
Oct 25 15:38:20 linux slapd[5536]: conn=1 op=6 SEARCH RESULT tag=101 err=0 
nentries=1 text=
Oct 25 15:51:34 linux slapd[5536]: daemon: activity on 1 descriptors
Oct 25 15:51:34 linux slapd[5536]: daemon: activity on: