equal
deleted
inserted
replaced
113 if (addresses == null && Config.getInstance().useAddresses()) { |
113 if (addresses == null && Config.getInstance().useAddresses()) { |
114 addresses = HostAddresses.getLocalAddresses(); |
114 addresses = HostAddresses.getLocalAddresses(); |
115 } |
115 } |
116 |
116 |
117 if (sname == null) { |
117 if (sname == null) { |
118 sname = new PrincipalName("krbtgt" + |
118 String realm = cname.getRealmAsString(); |
119 PrincipalName.NAME_COMPONENT_SEPARATOR + |
119 sname = PrincipalName.tgsService(realm, realm); |
120 cname.getRealmAsString(), |
|
121 PrincipalName.KRB_NT_SRV_INST); |
|
122 } |
120 } |
123 |
121 |
124 if (till == null) { |
122 if (till == null) { |
125 till = new KerberosTime(0); // Choose KDC maximum allowed |
123 till = new KerberosTime(0); // Choose KDC maximum allowed |
126 } |
124 } |
127 |
125 |
128 // enc-authorization-data and additional-tickets never in AS-REQ |
126 // enc-authorization-data and additional-tickets never in AS-REQ |
129 KDCReqBody kdc_req_body = new KDCReqBody(options, |
127 KDCReqBody kdc_req_body = new KDCReqBody(options, |
130 cname, |
128 cname, |
131 cname.getRealm(), |
|
132 sname, |
129 sname, |
133 from, |
130 from, |
134 till, |
131 till, |
135 rtime, |
132 rtime, |
136 Nonce.value(), |
133 Nonce.value(), |