Chris,

Thank you very much for the information you provided.

1. It seems to me this is a bug in the code
Please, look at src/lib/valuepair.c line 431
/*
 *      Turn printable string into time_t
 *      Returns -1 on error, 0 on OK.
 */
static int gettime(const char *valstr, time_t *lvalue)
{
....
        day = mystrtok(&p, " \t");
        month = mystrtok(&p, " \t");
        year = mystrtok(&p, " \t");
        if (!year || !month || !day) return -1;
....
}

The date user supposes to enter to raddb/users file
should have a format
�Day \tMonth \tYear \t� otherwise a RADIUS server
fails to initialize.

You are right. Raddb/dictionary file has this
information
#       date    - 32 bit value in big endian order -
seconds since
#                                       00:00:00 GMT, 
Jan.  1,  1970

#
#       Non-Protocol Attributes
#       These attributes are used internally by the
server
#
ATTRIBUTE       Expiration                21    date

It seems to me this is inconsistency, isn�t it?

2. RADIUS server sends Reply-Message every time user
logs in, based on Documentation.
In case of user�s account expiration message should be
sent if account is expired only.
Message should be avoided if user�s account is
healthy.
Would you, please, recommend me another solution?

Thank you, again, for help. Best regards,

Leon





--- Chris Parker <[EMAIL PROTECTED]> wrote:
> At 02:03 PM 8/8/2001 -0700, Leon Dorfman wrote:
> >Hello Chris,
> >
> >Thank you very much for prompt reply.
> >1. RADIUS server doesn't support "Expiration"
> >keyword in user's account configuration.
> >Does it known problem or I do something wrong
> (didn't
> >set configuration files correctly)
> 
> It is listed in the 'raddb/dictionary' as a valid
> attribute.
> The data type for it is listed as 'date', which is
> defined at
> the top of the 'raddb/dictionary' to be:
> 
> #       date    - 32 bit value in big endian order -
> seconds since
> #                                       00:00:00
> GMT,  Jan.  1,  1970
> 
> So, you'll likely need to convert the date that you
> want from text
> into an integer value, as defined above in order for
> it to work.
> 
> >2. Would you, please, point me a code samples which
> >extracts Reply-Message.
> 
> The default 'raddb/users' file contains examples of
> most common ( and
> even some uncommon ) useful user profiles.
> 
> -Chris
> --
>     \\\|||///  \  Chris Parker    -    Manager,
> Development Engineering
>     \ ~   ~ /   \       WX *is* Wireless!    \  
> [EMAIL PROTECTED]
>     | @   @ |    \   http://www.starnetwx.net \     
> (847) 963-0116
>
oOo---(_)---oOo--\------------------------------------------------------
>                    \ Without C we would have 'obol',
> 'basi', and 'pasal'
> 
> 
> - 
> List info/subscribe/unsubscribe? See
http://www.freeradius.org/list/users.html


__________________________________________________
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/

- 
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

Reply via email to