diff options
-rw-r--r-- | ldap/admin/src/create_instance.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ldap/admin/src/create_instance.c b/ldap/admin/src/create_instance.c index c6ce6dcf..a4d4e38b 100644 --- a/ldap/admin/src/create_instance.c +++ b/ldap/admin/src/create_instance.c @@ -2703,10 +2703,11 @@ char *ds_gen_confs(char *sroot, server_config_s *cf, char *cs_path) #if defined(ENABLE_LDAPI) if (cf->ldapifilepath) { fprintf(f, "nsslapd-ldapifilepath: %s\n", cf->ldapifilepath); + fprintf(f, "nsslapd-ldapilisten: on\n"); } else { fprintf(f, "nsslapd-ldapifilepath: %s/%s-%s.socket\n", cf->run_dir, PRODUCT_NAME, cf->servid); + fprintf(f, "nsslapd-ldapilisten: off\n"); } - fprintf(f, "nsslapd-ldapilisten: on\n"); #if defined(ENABLE_AUTOBIND) fprintf(f, "nsslapd-ldapiautobind: on\n"); #endif /* ENABLE_AUTOBIND */ |