Dylan Whyte afef7f3bba fix #3038: check user before renewing ticket
Fixes a bug in which the userid of the ticket cache is updated,
when a user connects, but the ticket itself is not.
This means a newly connected user has a previously connected
user's ticket and thus, cannot do anything, as the client will
attempt to use the invalid ticket.

e.g. if john@pbs connected to the server first, followed by
mike@pbs, the following would be stored in the ticket cache.

{
  "localhost": {
    "mike@pbs": {
      "ticket": "PBS:john@pbs:AAAA",
      "timestamp": 1601039326,
      "token": "BBBB"
    }
  }
}

Signed-off-by: Dylan Whyte <d.whyte@proxmox.com>
2020-10-21 08:34:30 +02:00
..
2020-10-14 11:20:07 +02:00
2020-07-21 19:33:52 +02:00
2020-10-14 11:20:07 +02:00
2020-08-13 11:36:10 +02:00
2020-10-16 09:37:50 +02:00
2020-10-12 14:11:57 +02:00
2020-10-19 14:01:17 +02:00