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 <[email protected]>

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.
_______________________________________________
radiator mailing list
[email protected]
http://www.open.com.au/mailman/listinfo/radiator

Reply via email to