[RADIATOR] Accessing a reply attribute from one authby in a subsequent authby

Heikki Vatiainen hvn at open.com.au
Wed Jun 29 09:58:39 CDT 2011


On 06/29/2011 05:49 PM, Bob Shafer wrote:

Hello Bob,

> I would like to do something like this:
> 
> <AuthBy GROUP>
>     AuthByPolicy ContinueWhileAccept
>     <AuthBy FILE>
>             Filename %D/access-users
>     </AuthBy>
>     <AuthBy EXTERNAL>
>              Command %D/scripts/otherauth %T
>      </Authby>
>  </AuthBy>
> 
> where the file access-users contains entries like this:
> 
> 
> fred    Class = Vendor
>         Callback-Number = 1234567890
> jane    Class = User
> 
> I'd like to pass the reply attributes from the AuthBy File to the AuthBy
> EXTERNAL script.
> 
> I'm pretty sure there must be a way to do that, but I haven't figured it
> out yet.

Here's a quick (ugly?) way to do it:
Add <AuthBy INTERNAL> between the two AuthBys. The INTERNAL would have a
small inline RequestHook that adds Callback-Number from the reply to the
request.

Thanks!

-- 
Heikki Vatiainen <hvn at open.com.au>

Radiator: the most portable, flexible and configurable RADIUS server
anywhere. SQL, proxy, DBM, files, LDAP, NIS+, password, NT, Emerald,
Platypus, Freeside, TACACS+, PAM, external, Active Directory, EAP, TLS,
TTLS, PEAP, TNC, WiMAX, RSA, Vasco, Yubikey, MOTP, HOTP, TOTP,
DIAMETER etc. Full source on Unix, Windows, MacOSX, Solaris, VMS,
NetWare etc.


More information about the radiator mailing list