summaryrefslogtreecommitdiffstats
path: root/server.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 /server.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 'server.c')
-rw-r--r--server.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/server.c b/server.c
index ae6a4ae..d5fba2a 100644
--- a/server.c
+++ b/server.c
@@ -173,8 +173,10 @@ void server_setHomeAttribute(const char *server, const char *homeattribute)
server_t *entry = server_create(server);
if (entry == NULL || entry->sslContext != NULL) return;
free((void*)entry->map.homemount.s);
- entry->map.homemount.s = strdup(homeattribute);
- entry->map.homemount.l = strlen(homeattribute);
+ char *tmp = strdup(homeattribute);
+ strtolower(tmp);
+ entry->map.homemount.s = tmp;
+ entry->map.homemount.l = strlen(tmp);
}
void server_setFingerprint(const char *server, const char *fingerprint)