|
|
@@ -99,8 +99,8 @@ func NewASReq(c *config.Config, username string) ASReq {
|
|
|
NameType: nametype.KRB_NT_SRV_INST,
|
|
|
NameString: []string{"krbtgt", c.LibDefaults.Default_realm},
|
|
|
},
|
|
|
- //Till: t.Add(c.LibDefaults.Ticket_lifetime),
|
|
|
- Till: t.Add(time.Duration(24) * time.Hour),
|
|
|
+ Till: t.Add(c.LibDefaults.Ticket_lifetime),
|
|
|
+ //Till: t.Add(time.Duration(24) * time.Hour),
|
|
|
Nonce: nonce,
|
|
|
EType: c.LibDefaults.Default_tkt_enctype_ids,
|
|
|
},
|
|
|
@@ -135,8 +135,8 @@ func NewTGSReq(username string, c *config.Config, tkt types.Ticket, sessionKey t
|
|
|
KDCOptions: types.NewKrbFlags(),
|
|
|
Realm: c.ResolveRealm(spn.NameString[len(spn.NameString)-1]),
|
|
|
SName: spn,
|
|
|
- //Till: t.Add(c.LibDefaults.Ticket_lifetime),
|
|
|
- Till: t.Add(time.Duration(2) * time.Minute),
|
|
|
+ Till: t.Add(c.LibDefaults.Ticket_lifetime),
|
|
|
+ //Till: t.Add(time.Duration(2) * time.Minute),
|
|
|
Nonce: nonce,
|
|
|
EType: c.LibDefaults.Default_tgs_enctype_ids,
|
|
|
},
|