Re: Detail accounting by REalm

2010-07-01 Thread Alan DeKok
BELLIERE Eric wrote:
> But what you do you mean by " You can use the Realm name in the detail
> filename.  That's why the
> filename is configurable in the "detail" module."?

  What part of that is unclear?

  If I could say it another way, I would have said it another way.

  Do you know what I meant by the "detail filename"?

  Do you know what I meant by "configurable in the detail module"?

  Alan DeKok.
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html


Re: Detail accounting by REalm

2010-07-01 Thread BELLIERE Eric



Message: 3
Date: Wed, 30 Jun 2010 16:47:45 +0200
From: Alan DeKok 
Subject: Re: Detail accounting by REalm
To: FreeRadius users mailing list

Message-ID: <4c2b5911.8060...@deployingradius.com>
Content-Type: text/plain; charset=ISO-8859-1

BELLIERE Eric wrote:
> Now I am trying to make a file by realm proxyied.

  You can use the Realm name in the detail filename.  That's why the
filename is configurable in the "detail" module.


> I have try this and works but I need to specify the exact realm.
> 
> Is it a way to configure a expression here?

$ man unlang

> I would like to make an expression to replace abc.be and abcnet.be so
> only one line is nacessary (like realm == "~abc$") ?

  See the above "man" page.  You can use a regex.

  Alan DeKok.

Ok thanks It is working with REGEX.
But what you do you mean by " You can use the Realm name in the detail
filename.  That's why the
filename is configurable in the "detail" module."?

Thanks Eric Bellière






smime.p7s
Description: S/MIME cryptographic signature
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

Re: Detail accounting by REalm

2010-06-30 Thread Alan Buxey
Hi,

> I would like to make an expression to replace abc.be and abcnet.be so only 
> one line is nacessary (like realm == "~abc$") ?

regex stuff? 

(realm =~ /~abc[a-zA-Z_]+?\.be/i)

?


alan
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html


Re: Detail accounting by REalm

2010-06-30 Thread Alan DeKok
BELLIERE Eric wrote:
> Now I am trying to make a file by realm proxyied.

  You can use the Realm name in the detail filename.  That's why the
filename is configurable in the "detail" module.


> I have try this and works but I need to specify the exact realm.
> 
> Is it a way to configure a expression here?

$ man unlang

> I would like to make an expression to replace abc.be and abcnet.be so
> only one line is nacessary (like realm == "~abc$") ?

  See the above "man" page.  You can use a regex.

  Alan DeKok.
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html


Detail accounting by REalm

2010-06-30 Thread BELLIERE Eric
Dears, 

 

I have a Proxy radius which send authentication and accounting to other
radius.

I would like to have a copy of these accounting data locally. This is
already working in the detail file.

 

Now I am trying to make a file by realm proxyied.

 

I have try this and works but I need to specify the exact realm.

 

Is it a way to configure a expression here?

 

I would like to make an expression to replace abc.be and abcnet.be so only
one line is nacessary (like realm == "~abc$") ?

 

accounting {

 

detail

 

if ((realm == "abc.be")||(realm == "abcnet.be")) {

WriteABCAccounting

WriteLOCALAccounting

}

 

if (realm == "xyz.be") {

WriteXYZaccounting

WriteLOCALAccounting

}

 

 

 

 


  Eric
Bellière

Operation & Integration Expert


ITNO/ISO/ISIO/LSS


 

 

 


Mobistar NV/SA

 

Avenue Jean Mermoz 32
6041 Gosselies 

   cid:image003.jpg@01C961E5.77656AB0

Tel: +32 (0)2 745 7997
GSM: +32(0)495 55 1343

 

 

<><>

smime.p7s
Description: S/MIME cryptographic signature
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html