Implementing an account expiry in the users file
Hi, I'm building a really basic system at the moment and want to implement a basic account expiry in the users file (since that's my user store). I found the Expiration attribute, but there seems to be a documentation mismatch. The FreeRADIUS docs on NetworkRADIUS say the format is one emitted by 'date'. In my instance that is 'Wed Mar 28 15:41:12 UTC 2018'. But that's not accepted. What *is* accepted is a Unix-style epoch timestamp (like tomorrow this time: '1522337946' sans quotes). Can I get clarification on this? :-) With Regards Stefan Paetow Consultant, Trust and Identity t: +44 (0)1235 822 125 gpg: 0x3FCE5142 xmpp: stefanp@jabber.dev.ja.net skype: stefan.paetow.janet jisc.ac.uk Jisc is a registered charity (number 1149740) and a company limited by guarantee which is registered in England under Company No. 5747339, VAT No. GB 197 0632 86. Jisc’s registered office is: One Castlepark, Tower Hill, Bristol, BS2 0JA. T 0203 697 5800.
On Mar 28, 2018, at 11:42 AM, Stefan Paetow <Stefan.Paetow@jisc.ac.uk> wrote:
I'm building a really basic system at the moment and want to implement a basic account expiry in the users file (since that's my user store). I found the Expiration attribute, but there seems to be a documentation mismatch. The FreeRADIUS docs on NetworkRADIUS say the format is one emitted by 'date'. In my instance that is 'Wed Mar 28 15:41:12 UTC 2018'. But that's not accepted.
The date format should be simpler. Time zones (e.g. UTC) aren't accepted. It's always interpreted as UTC. Alan DeKok.
The date format should be simpler. Time zones (e.g. UTC) aren't accepted. It's always interpreted as UTC.
Alan, ok. I did try without the UTC as well, but the parser did not appreciate that either. But I'll stick to the date (epoch) instead. Thank you :-) Stefan Paetow Consultant, Trust and Identity t: +44 (0)1235 822 125 gpg: 0x3FCE5142 xmpp: stefanp@jabber.dev.ja.net skype: stefan.paetow.janet jisc.ac.uk Jisc is a registered charity (number 1149740) and a company limited by guarantee which is registered in England under Company No. 5747339, VAT No. GB 197 0632 86. Jisc’s registered office is: One Castlepark, Tower Hill, Bristol, BS2 0JA. T 0203 697 5800.
participants (2)
-
Alan DeKok -
Stefan Paetow