summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRich Megginson <rmeggins@redhat.com>2008-07-14 19:37:15 +0000
committerRich Megginson <rmeggins@redhat.com>2008-07-14 19:37:15 +0000
commit02408829027b18328a2ee3001129a1db978099f6 (patch)
tree10f0826fa6bf221a40f6c94a564c33b39b0d6da6
parenta0b0c1bcbd2db970f27c587601e06e3b1ce07268 (diff)
downloadds-02408829027b18328a2ee3001129a1db978099f6.tar.gz
ds-02408829027b18328a2ee3001129a1db978099f6.tar.xz
ds-02408829027b18328a2ee3001129a1db978099f6.zip
Resolves: bug 452323
Bug Description: rhds80 console - create new instance fails (only) after admin server restart Reviewed by: nkinder (Thanks!) Branch: HEAD Fix Description: The problem was that the temp LDIF file used to init the new database was not created with the proper mode and ownership, so slapd could not load it. The fix is to make sure the ownership and mode is correct. Platforms tested: RHEL5, Fedora 8, Fedora 9 Flag Day: no Doc impact: no QA impact: should be covered by regular nightly and manual testing New Tests integrated into TET: none
-rw-r--r--ldap/admin/src/scripts/DSCreate.pm.in4
1 files changed, 4 insertions, 0 deletions
diff --git a/ldap/admin/src/scripts/DSCreate.pm.in b/ldap/admin/src/scripts/DSCreate.pm.in
index dd12477e..e57dc3d0 100644
--- a/ldap/admin/src/scripts/DSCreate.pm.in
+++ b/ldap/admin/src/scripts/DSCreate.pm.in
@@ -499,6 +499,10 @@ sub initDatabase {
if (@errs) {
return @errs;
}
+ if (@errs = changeOwnerMode($inf, 4, $templdif)) {
+ unlink($ldiffile);
+ return @errs;
+ }
# $templdif now contains the ldif to import
$ldiffile = $templdif;
$istempldif = 1;