diff options
-rw-r--r-- | Makefile | 8 | ||||
-rw-r--r-- | server.c | 8 |
2 files changed, 12 insertions, 4 deletions
@@ -41,13 +41,13 @@ LIBS+=-g -lowfat -lssl -lcrypto %: %.c $(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS) ${LIBS} -ldadp: tmpbuffer.o ini.o client.o server.o helper.o proxy.o epoll.o openssl.o \ -ldap.a asn1.a \ -types.h epoll.h client.h server.h helper.h +ldadp: tmpbuffer.o ini.o client.o server.o helper.o proxy.o epoll.o openssl.o ldap.a asn1.a + +qndtest: ldap.a asn1.a .PHONY: clean tar clean: - rm -f *.[ao] ldadp + rm -f *.[ao] ldadp qndtest tar: clean cd ..; tar cvvf ldadp.tar.bz2 ldadp --use=bzip2 --exclude capture --exclude .git @@ -287,6 +287,14 @@ uint32_t server_searchRequestOnConnection(epoll_server_t *server, struct SearchR char buffer[bodyLen + 50]; char *bufoff = buffer + 50; fmt_ldapsearchrequest(bufoff, req); + if (_debugLevel >= DEBUG_TRACE) { + struct SearchRequest tmp; + if (0 != scan_ldapsearchrequest(bufoff, bufoff + bodyLen, &tmp)) { + printf("[Client] Search request: (deserialized): "); + helper_printfilter(tmp.filter); + free_ldapsearchrequest(&tmp); + } + } fmt_ldapmessage(bufoff - headerLen, msgid, SearchRequest, bodyLen); if (!server_send(server, bufoff - headerLen, headerLen + bodyLen, FALSE)) return 0; return msgid; |