From 4a4a8540f0b64feff6934c3215c6f896c9561c7d Mon Sep 17 00:00:00 2001
From: neil_a_wilson <neil_a_wilson@localhost>
Date: Thu, 08 Feb 2007 22:27:58 +0000
Subject: [PATCH] Update the AuthenticationInfo object to store the entries for the authentication and authorization identities rather than just their DNs. This includes a mechanism to keep those entries up to date as changes occur in the server, and also includes a hook for ClientConnection subclasses to perform processing whenever a connection is terminated.
---
opends/src/server/org/opends/server/core/DirectoryServer.java | 18 ++++++++++++++++++
1 files changed, 18 insertions(+), 0 deletions(-)
diff --git a/opends/src/server/org/opends/server/core/DirectoryServer.java b/opends/src/server/org/opends/server/core/DirectoryServer.java
index a971890..cf95ab6 100644
--- a/opends/src/server/org/opends/server/core/DirectoryServer.java
+++ b/opends/src/server/org/opends/server/core/DirectoryServer.java
@@ -224,6 +224,9 @@
// The attribute type used to reference the "objectclass" attribute.
private AttributeType objectClassAttributeType;
+ // The authenticated users manager for the server.
+ private AuthenticatedUsers authenticatedUsers;
+
// The configuration manager that will handle the server backends.
private BackendConfigManager backendConfigManager;
@@ -649,6 +652,7 @@
new ConcurrentHashMap<String,ExtendedOperationHandler>();
directoryServer.saslMechanismHandlers =
new ConcurrentHashMap<String,SASLMechanismHandler>();
+ directoryServer.authenticatedUsers = new AuthenticatedUsers();
}
@@ -1761,6 +1765,20 @@
/**
+ * Retrieves the authenticated users manager for the Directory Server.
+ *
+ * @return The authenticated users manager for the Directory Server.
+ */
+ public static AuthenticatedUsers getAuthenticatedUsers()
+ {
+ assert debugEnter(CLASS_NAME, "getAuthenticatedUsers");
+
+ return directoryServer.authenticatedUsers;
+ }
+
+
+
+ /**
* Initializes the crypto manager for the Directory Server.
*
* @throws ConfigException If a configuration problem is identified while
--
Gitblit v1.10.0