You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by el...@apache.org on 2016/11/17 19:35:54 UTC
svn commit: r1770267 -
/directory/apacheds/branches/apacheds-value/protocol-kerberos/src/main/java/org/apache/directory/server/kerberos/protocol/KerberosProtocolHandler.java
Author: elecharny
Date: Thu Nov 17 19:35:54 2016
New Revision: 1770267
URL: http://svn.apache.org/viewvc?rev=1770267&view=rev
Log:
Don't store the client address in the AuthContext if it's null
Modified:
directory/apacheds/branches/apacheds-value/protocol-kerberos/src/main/java/org/apache/directory/server/kerberos/protocol/KerberosProtocolHandler.java
Modified: directory/apacheds/branches/apacheds-value/protocol-kerberos/src/main/java/org/apache/directory/server/kerberos/protocol/KerberosProtocolHandler.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/apacheds-value/protocol-kerberos/src/main/java/org/apache/directory/server/kerberos/protocol/KerberosProtocolHandler.java?rev=1770267&r1=1770266&r2=1770267&view=diff
==============================================================================
--- directory/apacheds/branches/apacheds-value/protocol-kerberos/src/main/java/org/apache/directory/server/kerberos/protocol/KerberosProtocolHandler.java (original)
+++ directory/apacheds/branches/apacheds-value/protocol-kerberos/src/main/java/org/apache/directory/server/kerberos/protocol/KerberosProtocolHandler.java Thu Nov 17 19:35:54 2016
@@ -199,7 +199,12 @@ public class KerberosProtocolHandler imp
AuthenticationContext authContext = new AuthenticationContext();
authContext.setConfig( kdcServer.getConfig() );
authContext.setStore( store );
- authContext.setClientAddress( clientAddress );
+
+ if ( request.getKdcReqBody().getAddresses() != null )
+ {
+ authContext.setClientAddress( clientAddress );
+ }
+
authContext.setRequest( request );
session.setAttribute( CONTEXT_KEY, authContext );