directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r1042849 - /directory/apacheds/branches/apacheds-kerberos-codec-2.0/protocol-kerberos/src/main/java/org/apache/directory/server/kerberos/kdc/ticketgrant/TicketGrantingService.java
Date Mon, 06 Dec 2010 23:22:36 GMT
Author: elecharny
Date: Mon Dec  6 23:22:35 2010
New Revision: 1042849

URL: http://svn.apache.org/viewvc?rev=1042849&view=rev
Log:
Many fixes for the TGS-REP generation

Modified:
    directory/apacheds/branches/apacheds-kerberos-codec-2.0/protocol-kerberos/src/main/java/org/apache/directory/server/kerberos/kdc/ticketgrant/TicketGrantingService.java

Modified: directory/apacheds/branches/apacheds-kerberos-codec-2.0/protocol-kerberos/src/main/java/org/apache/directory/server/kerberos/kdc/ticketgrant/TicketGrantingService.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/apacheds-kerberos-codec-2.0/protocol-kerberos/src/main/java/org/apache/directory/server/kerberos/kdc/ticketgrant/TicketGrantingService.java?rev=1042849&r1=1042848&r2=1042849&view=diff
==============================================================================
--- directory/apacheds/branches/apacheds-kerberos-codec-2.0/protocol-kerberos/src/main/java/org/apache/directory/server/kerberos/kdc/ticketgrant/TicketGrantingService.java
(original)
+++ directory/apacheds/branches/apacheds-kerberos-codec-2.0/protocol-kerberos/src/main/java/org/apache/directory/server/kerberos/kdc/ticketgrant/TicketGrantingService.java
Mon Dec  6 23:22:35 2010
@@ -343,6 +343,7 @@ public class TicketGrantingService
         newTicketPart.setKey( sessionKey );
 
         newTicketPart.setCName( tgt.getEncTicketPart().getCName() );
+        newTicketPart.setCRealm( tgt.getEncTicketPart().getCRealm() );
 
         if ( request.getKdcReqBody().getEncAuthorizationData() != null )
         {
@@ -377,6 +378,8 @@ public class TicketGrantingService
             EncryptedData encryptedData = cipherTextHandler.seal( serverKey, newTicketPart,
KeyUsage.NUMBER2 );
 
             Ticket newTicket = new Ticket( request.getKdcReqBody().getSName(), encryptedData
);
+            newTicket.setEncTicketPart( newTicketPart );
+            newTicket.setRealm( request.getKdcReqBody().getRealm() );
 
             tgsContext.setNewTicket( newTicket );
         }
@@ -392,6 +395,7 @@ public class TicketGrantingService
         TgsRep reply = new TgsRep();
         
         reply.setCName( tgt.getEncTicketPart().getCName() );
+        reply.setCRealm( tgt.getEncTicketPart().getCRealm() );
         reply.setTicket( newTicket );
         
         EncKdcRepPart encKdcRepPart = new EncKdcRepPart();
@@ -406,6 +410,7 @@ public class TicketGrantingService
         encKdcRepPart.setStartTime( newTicket.getEncTicketPart().getStartTime() );
         encKdcRepPart.setEndTime( newTicket.getEncTicketPart().getEndTime() );
         encKdcRepPart.setSName( newTicket.getSName() );
+        encKdcRepPart.setSRealm( newTicket.getRealm() );
 
         if ( newTicket.getEncTicketPart().getFlags().isRenewable() )
         {



Mime
View raw message