On Tue, 2002-12-03 at 10:30, Andrew Grimmett wrote:
[snip]
> 
> I noticed also in Release 0.8's change log that it now has a post_auth
> section, how do you define that, or where can I locate a doc/example of
> the configuration.  
> 
> 

to add a post-authorize method, there are a few steps:
1) in the module file, add a function pointer to the postauth method.
eg:

static int mypostauth (void *instance, REQUEST *request)
{
    return RLM_MODULE_NOOP;
}

module_t rlm_files = {
        "files",
        0,                              /* type: reserved */
        NULL,                           /* initialization */
        file_instantiate,               /* instantiation */
        {
                NULL,                   /* authentication */
                file_authorize,         /* authorization */
                file_preacct,           /* preaccounting */
                NULL,                   /* accounting */
                NULL,                   /* checksimul */
                file_preproxy,          /* pre-proxy */
                NULL,                   /* post-proxy */
                mypostauth              /* post-auth */
        },
        file_detach,                    /* detach */
        NULL                            /* destroy */
};


Then, in the radius.conf file, ensure that the module is configured in
the modules {} section, and then (towards the bottom of the file, after
the authenticate section) add the following:

post-auth {
       <modulename>
}

(note the spelling matters for the section name)

recompile and reinstall and restart and TA-DA!

HTH

MV

> - 
> List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Mike Varley         -= SOMA Networks =-
Tel: 416.977.1414   x1578
email: [EMAIL PROTECTED]


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

Reply via email to