diff options
Diffstat (limited to 'ldadp.c')
-rw-r--r-- | ldadp.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -72,11 +72,11 @@ int main(int argc, char **argv) lsn.callback = &listen_callback; lsn.fd = socket_tcp4(); if (certFile != NULL && keyFile != NULL) { - printf("Using SSL\n"); + printf("[Listener] Using SSL\n"); ssl_init(); lsn.sslContext = ssl_newServerCtx(certFile, keyFile); } else { - printf("Not using SSL\n"); + printf("[Listener] Not using SSL\n"); } if (lsn.fd == -1) bail("Could not create listen socket"); if (socket_bind4_reuse(lsn.fd, listen_addr, localPort) == -1) bail("Could not bind to listening port"); @@ -183,6 +183,8 @@ static int loadConfig_handler(void *stuff, const char *section, const char *key, server_setUidMapStore(section, value); } else if (strcmp(key, "genuidnumber") == 0) { server_setGenUidNumber(section, value); + } else if (strcmp(key, "usestarttls") == 0) { + server_setUseStartTls(section, value); } else if (strncmp(key, "map.", 4) == 0) { server_setMap(section, key+4, value); } else { |