summaryrefslogtreecommitdiffstats
path: root/ldadp.c
diff options
context:
space:
mode:
authorSimon Rettberg2017-05-30 15:46:01 +0200
committerSimon Rettberg2017-05-30 15:46:01 +0200
commite38ec5672aea398491911076fdc9f9c233624c0d (patch)
treeb9ac72b8e4b3f6db5339e5d1c69884402a39d5f6 /ldadp.c
parentSupport specifying custom attribute names for schema (diff)
downloadldadp-e38ec5672aea398491911076fdc9f9c233624c0d.tar.gz
ldadp-e38ec5672aea398491911076fdc9f9c233624c0d.tar.xz
ldadp-e38ec5672aea398491911076fdc9f9c233624c0d.zip
Introduce debug levels, AD filter bug workaround, fix legacy homeattr not being lowercased
Diffstat (limited to 'ldadp.c')
-rw-r--r--ldadp.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/ldadp.c b/ldadp.c
index 741df5d..923891a 100644
--- a/ldadp.c
+++ b/ldadp.c
@@ -11,6 +11,7 @@
#include "ini.h"
#include "helper.h"
#include "openssl.h"
+#include "helper.h"
#include <stdio.h>
#include <socket.h>
#include <io.h>
@@ -118,6 +119,8 @@ static int loadConfig_handler(void *stuff, const char *section, const char *key,
certFile = strdup(value);
} else if (strcmp(key, "privkey") == 0) {
keyFile = strdup(value);
+ } else if (strcmp(key, "debug") == 0) {
+ _debugLevel = atoi(value);
} else {
printf("Unknown local config option '%s'\n", key);
}