瀏覽代碼

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

Rich Megginson 17 年之前
父節點
當前提交
0240882902
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4 0
      ldap/admin/src/scripts/DSCreate.pm.in

+ 4 - 0
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;