Re: Shell accounts not working

Leo Savage (leo@esva.net)
Fri, 15 Sep 1995 03:33:39 -0400 (EDT)

On Thu, 14 Sep 1995, Stefan Hudson wrote:

> > leo Password = "yatayata", Expiration = "Jan 1, 1996"
> ^^^^^^^^^^^^^^^^^^^^^^^^^^
>
> This doesn't appear to be your original problem, but this will not
> work. The expiration date MUST be in the "Mmm DD YYYY" format...
> radius is extremely picky over this.
>
> In fact, radius will happily allow the user to connect indefinitely...

Actually, I have tried every format I can imagine (including what you
suggest, which [surprise!] is NOT what the docs say RADIUS is looking
for), and have NEVER gotten expiration dates to work. I finally wrote it
into a totally unrelated program to notice if expired users are logged in,
and bump them off if so.

Since that was something I could write a program to deal with, I have
shoved it on the back burner. Yeah, granted it would be better if RADIUS
would keep expired users from logging on in the first place, but I did
find a workaround that will serve. Shell accounts stick in my craw as
something that doesn't work and I haven't found any way to make anything
remotely like it work. No workarounds, no kludges, no hacks, nothing
that works.

> It's things like this that make me wonder if a perl version of
> radiusd would be practical. C is lousy for parsing config files.

My own C code for parsing dates is EXTREMELY forgiving of format
variations, and works flawlessly. Please, please don't blame the language!

--
    ("`-/")_.-'"``-._             Leo Savage
     . . `; -._    )-;-,_`)
    (v_,)'  _  )`-.\  ``-'       leo@esva.net
   _.- _..-_/ / ((.'
 ((,.-'   ((,/             http://www.esva.net/~leo/