Hi, I'm new to ldap, and would appreciate help on the following: I'm running the stand-alone server (slapd), and allow some client machines run search queries against it (ldapsearch). My question: I'd like the "slapd" server to show the incoming search queries. Can it be done? For example: - If the client runs "ldapsearch -h myhost -b "dc=example,dc=com" -s sub "objectclass=*" - I'd like the server console(or log file) to show something like: Incoming query: -b "dc=example,dc=com" -s sub "objectclass=*" I'd tries running "slapd" in debug mode (slupd -d 1), but couldn't quite deduce the query from it (it logs lot of detailed lines, but I couldn't gather the qeury from them. Probably my fault for being a newbie). Thanks :)
----- "sol myr" solmyr72@yahoo.com wrote:
Hi,
I'm new to ldap, and would appreciate help on the following:
I'm running the stand-alone server (slapd), and allow some client machines run search queries against it (ldapsearch).
My question: I'd like the "slapd" server to show the incoming search queries. Can it be done? For example: - If the client runs "ldapsearch -h myhost -b "dc=example,dc=com" -s sub "objectclass=*" - I'd like the server console(or log file) to show something like: Incoming query: -b "dc=example,dc=com" -s sub "objectclass=*"
I'd tries running "slapd" in debug mode (slupd -d 1),
what about reading the documentation of the -d switch?
p.
Ing. Pierangelo Masarati OpenLDAP Core Team
SysNet s.r.l. via Dossi, 8 - 27100 Pavia - ITALIA http://www.sys-net.it ----------------------------------- Office: +39 02 23998309 Mobile: +39 333 4963172 Fax: +39 0382 476497 Email: ando@sys-net.it -----------------------------------
sol myr wrote:
I'd tries running "slapd" in debug mode (slupd -d 1), but couldn't quite deduce the query from it (it logs lot of detailed lines, but I couldn't gather the qeury from them. Probably my fault for being a newbie).
You could adjust the loglevel to your needs.
Another option is to use slapo-accesslog and also log the search queries into the accesslog database.
Ciao, Michael.
openldap-technical@openldap.org