diff options
author | Noriko Hosoi <nhosoi@redhat.com> | 2007-03-02 22:37:25 +0000 |
---|---|---|
committer | Noriko Hosoi <nhosoi@redhat.com> | 2007-03-02 22:37:25 +0000 |
commit | 134308de004529c587b6627265aac1653e7d1c69 (patch) | |
tree | 54889baf74f0975ad20124353039e7ffe7bb4834 /ldap/admin | |
parent | b4940b547e06f545e19e14cba8c0fd8311f7f8ae (diff) | |
download | ds-134308de004529c587b6627265aac1653e7d1c69.tar.gz ds-134308de004529c587b6627265aac1653e7d1c69.tar.xz ds-134308de004529c587b6627265aac1653e7d1c69.zip |
Resolves: 230673
Summary: LDAPI: referral mode needs LDAPI socket? (Comment #3)
Change: if ldapifilepath is not passed, LDAPI is disabled in the newly created instance.
Diffstat (limited to 'ldap/admin')
-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 */ |