Author: rmeggins
Update of /cvs/dirsec/ldapserver/ldap/admin/src/scripts
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv23942
Modified Files:
Tag: Directory_Server_8_0_Branch
DSCreate.pm.in
Log Message:
Resolves: bug 452323
Bug Description: rhds80 console - create new instance fails (only) after admin server
restart
Reviewed by: nkinder (Thanks!)
Branch: Directory_Server_8_0_Branch
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
Index: DSCreate.pm.in
===================================================================
RCS file: /cvs/dirsec/ldapserver/ldap/admin/src/scripts/DSCreate.pm.in,v
retrieving revision 1.9
retrieving revision 1.9.2.1
diff -u -r1.9 -r1.9.2.1
--- DSCreate.pm.in 17 Dec 2007 20:08:46 -0000 1.9
+++ DSCreate.pm.in 14 Jul 2008 19:40:12 -0000 1.9.2.1
@@ -498,6 +498,10 @@
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;
Show replies by thread