[RADIATOR] Set Realm

Zod Mansour zod at reachlocal.com
Thu Dec 17 10:49:37 CST 2009


This did it.

Thank you very much

On Dec 15, 2009, at 5:04 PM, Hugh Irvine wrote:

>
> Hello Zod -
>
> I did not say to use a PreAuthHook.
>
> I did say to use a PreHandlerHook in the outer AuthBy clause.
>
> .....
>
> <Handler Called-Station-Id = /rltechops/>
> 	<AuthBy FILE>
> 		EAPType PEAP,TTLS,TLS,MD5,Generic-Token,LEAP,MSCHAP-V2,FAST
> 		EAPTLS_CAFile %D/cert/cacert.pem
> 		EAPTLS_CertificateFile /etc/radiator/cert/server.key.pem
> 		EAPTLS_PrivateKeyFile %D/cert/radius.key
> 		EAPTLS_CertificateType PEM
> 		EAPAnonymous %0 at RLTECHOPS
> 		AutoMPPEKeys
>
>                PreHandlerHook .......
>
> # If you want to disable rltechops comment out above and uncomment  
> below
> #	<AuthBy INTERNAL>
> #		DefaultResult Reject
> #	</AuthBy>
> 	</AuthBy>
> </Handler>
>
> .....
>
> regards
>
> Hugh
>
>
> On 16 Dec 2009, at 09:38, Zod Mansour wrote:
>
>>
>> On Dec 15, 2009, at 11:55 AM, Hugh Irvine wrote:
>>
>>>
>>> Hello Zod -
>>>
>>> The Realm is the "@some.suffix" part of a username.
>>>
>>> You just need to get the User-Name attribute, add the suffix and  
>>> put it back in the packet:
>>>
>>> .....
>>> 	my $username = $p->get_attr('User-Name');
>>>
>>> 	$username = ......;
>>>
>>> 	$p->changeUserName($username);
>>>
>>> .....
>>>
>>> regards
>>>
>>> Hugh
>>>



More information about the radiator mailing list