From da7c2116996d26d22b3eca9f20cb497791dbb857 Mon Sep 17 00:00:00 2001
From: boli <boli@localhost>
Date: Fri, 15 Sep 2006 16:54:57 +0000
Subject: [PATCH] This uses the new FilePermission framework to set permissions on the directory holding the database files. The new config attribute ds-cfg-backend-mode is optional and by default has a value of 700. The permissions are set on backend initialization as well as on the fly via LDAP. The server will make sure the file permissions will allow owner access before setting. Any exceptions encountered while setting the attribute will result in non fatal errors which are logged. However, any configuration exceptions will keep the backend from starting.
---
opends/src/server/org/opends/server/config/ConfigConstants.java | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
diff --git a/opends/src/server/org/opends/server/config/ConfigConstants.java b/opends/src/server/org/opends/server/config/ConfigConstants.java
index 44e2c25..23acae5 100644
--- a/opends/src/server/org/opends/server/config/ConfigConstants.java
+++ b/opends/src/server/org/opends/server/config/ConfigConstants.java
@@ -3288,6 +3288,15 @@
/**
+ * The name of the attribute which configures the file permission mode
+ * for the database direction.
+ */
+ public static final String ATTR_BACKEND_MODE =
+ ConfigConstants.NAME_PREFIX_CFG + "backend-mode";
+
+
+
+ /**
* The name of the file (with no path information) that will be used as the
* backing file for holding the tasks defined in the Directory Server.
*/
--
Gitblit v1.10.0