[RADIATOR] Chap challenge in AuthBy EXTERNAL

Heikki Vatiainen hvn at open.com.au
Wed Feb 15 13:03:08 CST 2012


On 02/14/2012 05:34 PM, Mark Green wrote:

> # The challenge is sent by the client in CHAP-Challenge. 
> # If that is not set, the challenge is in the authenticator
> $challenge = $p->getAttrByNum($Radius::Radius::CHAP_CHALLENGE);
> $challenge = $p->authenticator unless defined $challenge;
> 
> What is authenticator? How can I read this value in AuthBy EXTERNAL?

It's not an attribute, but part of fixed RADIUS packet header.

http://tools.ietf.org/html/rfc2865#section-3

This also means you can not access it from AuthBy EXTERNAL. You could
consider using AuthBy INTERNAL and e.g., RequestHook or AuthHook instead.

Heikki

-- 
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