No subject

Mehdi Ravanbakhsh babakco at gmail.com
Mon Mar 25 23:20:41 CET 2013


Hi All

I am create stored persedure in postgresql database named
"findout_cuncurrent_session_for_a_user_result" that return "Deny" or
"Permit" .

I need to call this persidure in session section but it not working i check
all policy that be explaned in unlang  man page but this cod is not working
:

session {

if ("{%sql:select findout_cuncurrent_session_for_a_user_result
('%{User-Name}','%{NAS-IP-Address}','%{Called-Station-Id}','%{Calling-Station-Id}')}"
== "Deny") {

update control {
Pool-Name := "Exceeded-Concurrent-Session"
}
}
}



What is the problem? Do i write sql query  write ? (this query is work fine
in sql.conf )
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeradius.org/pipermail/freeradius-users/attachments/20130326/487a1f6b/attachment.html>


More information about the Freeradius-Users mailing list