const char *
access_ticket_create(const char *resource, access_t *a)
{
- const int64_t lifetime = sec2mono(config.ticket_expires);
+ const int64_t lifetime = sec2mono(MINMAX(config.ticket_expires, 30, 3600));
uint8_t buf[20];
char id[41];
uint_fast32_t i;
},
{
.type = PT_U32,
- .intextra = INTEXTRA_RANGE(1, 0x7ff, 1),
+ .intextra = INTEXTRA_RANGE(30, 3600, 1),
.id = "ticket_expires",
.name = N_("Ticket expiration (seconds)"),
.desc = N_("The number of seconds in which authentication tickets generated by "