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/extensions/GSSAPISASLMechanismHandler.java | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/opends/src/server/org/opends/server/extensions/GSSAPISASLMechanismHandler.java b/opends/src/server/org/opends/server/extensions/GSSAPISASLMechanismHandler.java
index e44e3ca..a9954f5 100644
--- a/opends/src/server/org/opends/server/extensions/GSSAPISASLMechanismHandler.java
+++ b/opends/src/server/org/opends/server/extensions/GSSAPISASLMechanismHandler.java
@@ -419,10 +419,10 @@
{
// The authentication was successful, so set the proper state information
// in the client connection and return success.
- DN userDN = stateInfo.getUserEntry().getDN();
+ Entry userEntry = stateInfo.getUserEntry();
AuthenticationInfo authInfo =
- new AuthenticationInfo(userDN, SASL_MECHANISM_GSSAPI,
- DirectoryServer.isRootDN(userDN));
+ new AuthenticationInfo(userEntry, SASL_MECHANISM_GSSAPI,
+ DirectoryServer.isRootDN(userEntry.getDN()));
bindOperation.setAuthenticationInfo(authInfo);
bindOperation.setResultCode(ResultCode.SUCCESS);
--
Gitblit v1.10.0