(RADIATOR) Hook Between AuthBy

Hugh Irvine hugh at open.com.au
Mon Nov 3 21:18:05 CST 2003


Hello Harrison -

You should use an AuthBy GROUP and an AuthBy INTERNAL:

	<AuthBy GROUP>
		AuthByPolicy ContinueWhileAccept
		<AuthBy LDAP2>
			.....
		</AuthBy>
		<AuthBy INTERNAL>
			DefaultResult ACCEPT
			AuthHook .....
		</Authby>
		<AuthBy RADIUS>
			.....
		</AuthBy>
	</AuthBy>

regards

Hugh


On 04/11/2003, at 1:58 PM, Harrison Ng wrote:

> Hi,
>
> My problem is adding country code (ie. 852) to Calling-Station-Id  
> attribute after LDAP query,
> and _before_ forward to another radius server (see below config). How  
> can I do this?
>
> Regards,
> Harrison
>
>
>
>
> <AuthBy LDAP2>
>
>         Identifier GUP_Dipping
>
>         AuthenticateAccounting
>
>         Host x.x.x.x
>         Port 389
>
>         AuthDN uid=xxx,ou=xxx,o=xxx
>         AuthPassword xxx
>
>         BaseDN ou=xxx,ou=xxx,o=xxx
>         Scope one
>
>         SearchFilter (smcAMSISDN=%{Class})
>
>         AuthAttrDef smcSubscriberNumber,Calling-Station-Id,request
>
>
>
> </AuthBy LDAP2>
>
>
>
> <AuthBy RADIUS>
>
>         Identifier test_forwarding
>
>         NoForwardAuthentication
>         IgnoreAccountingResponse
>
>         Host x.x.x.x
>         Secret xxx
>
>         StripFromRequest Ericsson-Juniper,Class
>
>         AuthPort
>         AcctPort 1646
>
>         Retries 0
>         RetryTimeout 2
>         FailureBackoffTime 30
>
> </AuthBy>
>
>
>
> <Handler  
> Client-Id=localhost,Request-Type="Accounting-Request",Calling-Station- 
> Id="852192507893">
>
>         RejectHasReason
>
>         AccountingHandled
>
>         PreAuthHook file:"%D/MakeClassForGUP"
>
>         AuthByPolicy ContinueAlways
>
>         AuthBy GUP_Dipping
>
>         ### Remark:-
>         ### I need to add country code to Calling-Station-Id before  
> doing next AuthBy
>         ### How can I add hook here?
>
>         AuthBy test_forwarding
>
>         AcctLogFileName /%L/%c/%{GlobalVar:servername}.%c.detail.%Y%m%d
>         PasswordLogFileName /%L/%{GlobalVar:servername}.password.%Y%m%d
>
> </Handler>
> <InterScan_Disclaimer.txt>

NB: have you included a copy of your configuration file (no secrets),
together with a trace 4 debug showing what is happening?

-- 
Radiator: the most portable, flexible and configurable RADIUS server
anywhere. Available on *NIX, *BSD, Windows, MacOS X.
-
Nets: internetwork inventory and management - graphical, extensible,
flexible with hardware, software, platform and database independence.
-
CATool: Private Certificate Authority for Unix and Unix-like systems.

===
Archive at http://www.open.com.au/archives/radiator/
Announcements on radiator-announce at open.com.au
To unsubscribe, email 'majordomo at open.com.au' with
'unsubscribe radiator' in the body of the message.


More information about the radiator mailing list