directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r1770267 - /directory/apacheds/branches/apacheds-value/protocol-kerberos/src/main/java/org/apache/directory/server/kerberos/protocol/KerberosProtocolHandler.java
Date Thu, 17 Nov 2016 19:35:54 GMT
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 );
 



Mime
View raw message