소스 검색

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;