[prev in list] [next in list] [prev in thread] [next in thread] 

List:       freeradius-users
Subject:    Reuse Customized Attributes
From:       d.thembiliyagoda () lancaster ! ac ! uk
Date:       2011-07-29 12:48:23
Message-ID: 60799.194.80.39.119.1311943703.squirrel () webmail03 ! lancs ! ac ! uk
[Download RAW message or body]

Hi,

I defined an attribute in dictionary file as follows.
ATTRIBUTE	My-Local-String		3000	string

and I used it in policy.conf file to assign value of the EAP -TTLS inner
tunnel user name.

test1 {
	update outer.request {
    	My-Local-String := "%{request:User-Name}"
  	}

	 update reply {
   	 User-Name := "%{request:User-Name}"
 	 }

	update reply {
	Auth-Type := "%{control:Auth-Type}"
  	}
I called the test1 under the authorize section in inner-tunnel virtual
server.
I want to re-use this attribute "My-Local-String" in a mysql query. But it
doesn't contain any value .
It stores an empty value in UserName filed of the table.

postauth_query = "INSERT INTO ${cui_uname_table} \
	(UserName, CUI, DateTime) \
        VALUES \
	('%{My-Local-String}', '%{reply:Chargeable-User-Identity}', SYSDATE())";

I am executing this query under the post-auth section of the default server.
Is there any way achieve this ?

Champika

-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic