From ed39262fa647434d4a0e31f07754a263ce2b16e3 Mon Sep 17 00:00:00 2001
From: neil_a_wilson <neil_a_wilson@localhost>
Date: Fri, 09 Feb 2007 21:51:09 +0000
Subject: [PATCH] Add an initial set of privilege support to OpenDS. The current privileges are currently defined and implemented: * config-read (allow reading the configuration) * config-write (allow updating the configuration) * ldif-import (allow invoking LDIF import tasks) * ldif-export (allow invoking LDIF export tasks) * backend-backup (allow invoking backup tasks) * backend-restore (allow invoking restore tasks) * server-shutdown (allow invoking server shutdown tasks) * server-restart (allow invoking server restart tasks) * server-restart (allow invoking server restart tasks) * password-reset (allow resetting user passwords) * update-schema (allow updating the server schema) * privilege-change (allow changing the set of privileges for a user)
---
opends/src/server/org/opends/server/messages/BackendMessages.java | 13 +++++++++++++
1 files changed, 13 insertions(+), 0 deletions(-)
diff --git a/opends/src/server/org/opends/server/messages/BackendMessages.java b/opends/src/server/org/opends/server/messages/BackendMessages.java
index 0f5e9c9..07671fc 100644
--- a/opends/src/server/org/opends/server/messages/BackendMessages.java
+++ b/opends/src/server/org/opends/server/messages/BackendMessages.java
@@ -3171,6 +3171,16 @@
/**
+ * The message ID for the message that will be used if a user attempts to
+ * modify the server schema without the appropriate privilege. This does not
+ * take any arguments.
+ */
+ public static final int MSGID_SCHEMA_MODIFY_INSUFFICIENT_PRIVILEGES =
+ CATEGORY_MASK_BACKEND | SEVERITY_MASK_MILD_ERROR | 293;
+
+
+
+ /**
* Associates a set of generic messages with the message IDs defined in this
* class.
*/
@@ -3397,6 +3407,9 @@
registerMessage(MSGID_SCHEMA_DELETE_NOT_SUPPORTED,
"Unwilling to remove entry \"%s\" because delete " +
"operations are not supported in the schema backend.");
+ registerMessage(MSGID_SCHEMA_MODIFY_INSUFFICIENT_PRIVILEGES,
+ "You do not have sufficient privileges to modify the " +
+ "Directory Server schema.");
registerMessage(MSGID_SCHEMA_MODIFY_NOT_SUPPORTED,
"Unwilling to update entry \"%s\" because modify " +
"operations are not yet supported in the schema " +
--
Gitblit v1.10.0