On 07/30/2012 05:44 PM, Hugo Veiga wrote:

> I'm having trouble in a regex in realm Handler:
> 
> <Handler User-Name=/^[a-zA-Z0-9][a-zA-Z0-9._-]/,
> Realm=/^[a-zA-Z0-9\.-]*?\.([a-zA-Z]){2,4}$/,
> Client-Identifier=/^(?!4ProxyServer$)/>

Hello Hugo,

I tried the handler and got this:

  ERR: Bad attribute=value pair: 4}$/,
Client-Identifier=/^(?!4ProxyServer$)/

Try this instead:

<Handler User-Name=/^[a-zA-Z0-9][a-zA-Z0-9._-]/,
Realm="/^[a-zA-Z0-9\.-]*?\.([a-zA-Z]){2,4}$/",
Client-Identifier=/^(?!4ProxyServer$)/>

I added the double quotes to surround the Realm value since the value
contains a comma.

Thanks,
Heikki

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