diff options
| author | Rich Megginson <rmeggins@redhat.com> | 2007-02-08 18:40:12 +0000 |
|---|---|---|
| committer | Rich Megginson <rmeggins@redhat.com> | 2007-02-08 18:40:12 +0000 |
| commit | 04e615e5a4d68e3c5165eeb4f9c0bfae25547925 (patch) | |
| tree | b04ead61148166fe92a7d30da343e4d201558e74 /ldap/admin/src/create_instance.c | |
| parent | 44ed8bab7f2de4b295a88230a35f66af72a12d18 (diff) | |
| download | ds-04e615e5a4d68e3c5165eeb4f9c0bfae25547925.tar.gz ds-04e615e5a4d68e3c5165eeb4f9c0bfae25547925.tar.xz ds-04e615e5a4d68e3c5165eeb4f9c0bfae25547925.zip | |
Resolves: bug 227771
Bug Description: FHS: use sysconfdir (/etc) as config file location
Reviewed by: nhosoi (Thanks!)
Fix Description: After much deliberation, we have decided that it is ok that our dynamic config files are under /etc/fedora-ds/slapd-instance.
So the config_dir will be /etc/fedora-ds/slapd-instance and the security and schema files will go there as well. Since the FHS is ambiguous about this issue, and it will be very confusing if the configuration files are not under /etc, and there are some agents (webmin, cfengine) that do "dynamically" modify config files under /etc, this outweighs any considerations about having the server using it's config file like an "ascii database".
In addition, the presence of repl-monitor-cgi causes rpm to complain, and since we only support CGIs in the Admin Server, this file has been removed from the core fedora-ds package.
Platforms tested: RHEL4, FC6
Flag Day: no
Doc impact: no
Diffstat (limited to 'ldap/admin/src/create_instance.c')
| -rw-r--r-- | ldap/admin/src/create_instance.c | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/ldap/admin/src/create_instance.c b/ldap/admin/src/create_instance.c index bea8c2ac..dc2a599e 100644 --- a/ldap/admin/src/create_instance.c +++ b/ldap/admin/src/create_instance.c @@ -1737,8 +1737,10 @@ ds_cre_subdirs(server_config_s *cf, struct passwd* pw) gen_script_auto(mysroot, mycs_path, "verify-db.pl", cf) /* tentatively moved to mycs_path */ +#ifdef MOVE_TO_ADMIN_SERVER #define CREATE_REPL_MONITOR_CGI() \ gen_script_auto(mysroot, mycs_path, "repl-monitor-cgi.pl", cf) +#endif #define CREATE_ACCOUNT_INACT(_commandName) \ gen_script_auto(mysroot, cs_path, _commandName, cf) @@ -1897,8 +1899,10 @@ char *ds_gen_scripts(char *sroot, server_config_s *cf, char *cs_path) t = CREATE_VERIFYDB(); if(t) return t; +#ifdef MOVE_TO_ADMIN_SERVER t = CREATE_REPL_MONITOR_CGI(); if(t) return t; +#endif t = CREATE_ACCOUNT_INACT("ns-inactivate.pl"); if(t) return t; @@ -2410,8 +2414,10 @@ char *ds_gen_scripts(char *sroot, server_config_s *cf, char *cs_path) t = CREATE_VERIFYDB(); if(t) return t; +#ifdef MOVE_TO_ADMIN_SERVER t = CREATE_REPL_MONITOR_CGI(); if(t) return t; +#endif t = gen_script(cs_path, "suffix2instance.bat", "@if not \"%%echo%%\" == \"on\" echo off\n\n" @@ -4479,8 +4485,8 @@ int parse_form(server_config_s *cf) temp = ds_a_get_cgi_var("config_dir", NULL, NULL); if (NULL == temp) { - cf->config_dir = PR_smprintf("%s%clib%c%s%c%s-%s", - cf->localstatedir, FILE_PATHSEP, FILE_PATHSEP, + cf->config_dir = PR_smprintf("%s%c%s%c%s-%s", + cf->sysconfdir, FILE_PATHSEP, cf->brand_ds, FILE_PATHSEP, PRODUCT_NAME, cf->servid); } else { @@ -4492,8 +4498,8 @@ int parse_form(server_config_s *cf) cf->schema_dir = ds_a_get_cgi_var("schema_dir", NULL, NULL); temp = ds_a_get_cgi_var("schema_dir", NULL, NULL); if (NULL == temp) { - cf->schema_dir = PR_smprintf("%s%clib%c%s%c%s-%s%cschema", - cf->localstatedir, FILE_PATHSEP, FILE_PATHSEP, + cf->schema_dir = PR_smprintf("%s%c%s%c%s-%s%cschema", + cf->sysconfdir, FILE_PATHSEP, cf->brand_ds, FILE_PATHSEP, PRODUCT_NAME, cf->servid, FILE_PATHSEP); } else { |
