From 2e37d6b71692508fa5d2764c1c80f3c7ca7c2894 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Fri, 26 Jun 2015 14:58:03 +0200 Subject: Send search requests on the same connection the explicit bind was done on, so the user's permissions regarding visibility of search results will be applied --- helper.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'helper.c') diff --git a/helper.c b/helper.c index c938783..b125f42 100644 --- a/helper.c +++ b/helper.c @@ -111,6 +111,18 @@ void helper_printal(struct AttributeDescriptionList* a) putchar('\n'); } +void helper_printpal(struct PartialAttributeList *pal) +{ + printf("-- PAL --\n"); + while (pal) { + printf("entry ("); + if (pal->type.l && pal->type.s) printf("%.*s", (int)pal->type.l, pal->type.s); + printf("): "); + helper_printal(pal->values); + pal = pal->next; + } +} + static void helper_printfilterInt(struct Filter* f) { if (f == NULL) { -- cgit v1.2.3-55-g7522