summaryrefslogtreecommitdiffstats
path: root/ldadp.c
diff options
context:
space:
mode:
authorSimon Rettberg2017-05-29 15:47:03 +0200
committerSimon Rettberg2017-05-29 15:47:03 +0200
commitbf9f3a690ead4aa59f5dbae744503e90793f770f (patch)
tree6e4d4870886ca271d7c2b345cdd672cdee3214ce /ldadp.c
parentAdd comment about tinyldap sources (diff)
downloadldadp-bf9f3a690ead4aa59f5dbae744503e90793f770f.tar.gz
ldadp-bf9f3a690ead4aa59f5dbae744503e90793f770f.tar.xz
ldadp-bf9f3a690ead4aa59f5dbae744503e90793f770f.zip
Support specifying custom attribute names for schema
Diffstat (limited to 'ldadp.c')
-rw-r--r--ldadp.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ldadp.c b/ldadp.c
index cad87ea..741df5d 100644
--- a/ldadp.c
+++ b/ldadp.c
@@ -140,6 +140,8 @@ static int loadConfig_handler(void *stuff, const char *section, const char *key,
server_setPort(section, value);
} else if (strcmp(key, "plainldap") == 0) {
server_setPlainLdap(section, value);
+ } else if (strncmp(key, "map.", 4) == 0) {
+ server_setMap(section, key+4, value);
} else {
printf("Unknown ADS config option '%s' for server '%s'\n", key, section);
}