Re: MySql Query Problem

This is a discussion on Re: MySql Query Problem within the FreeRADIUS Users forums, part of the Networking and Network Related category; Hi. Looks like this query will use quite a while to get executed. What does the debug mode say? Any ...


Go Back   Usenet Forums > Networking and Network Related > FreeRADIUS Users

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 05-20-2005
Marcin Jessa
 
Posts: n/a
Default Re: MySql Query Problem

Hi.

Looks like this query will use quite a while to get executed.
What does the debug mode say? Any timeouts?

Regards,
Marcin Jessa

On Fri, 20 May 2005 13:16:20 +0500
Kamran Bukhari <kamranbukhari@gmail.com> wrote:

> Hello
>
> I want to do the authentication using MYsql on Radius. I was doing it
> till now when i ended up with new query of my own. I developed a new
> query for authentication which is not allowing me to enter. Help me
> out with it.
>
> authorize_check_query = "SELECT DISTINCT
> ${authcheck_table}.id,${authcheck_table}.UserName, ${authcheck_table}.Attribute,${authcheck_table}.Va lue,${authcheck_table}.op
> FROM ${authcheck_table}, ${groupcheck_table} WHERE
> (${authcheck_table}.Username = '%{Calling-Station-Id}') and
> (${authcheck_table}.Permission = 'allow') and
> (${groupcheck_table}.Permission='allow') and
> (${groupcheck_table}.UserName='%{Calling-Station-Id}') and
> (${groupcheck_table}.Blocked='Called-Station-Id') ORDER BY
> ${authcheck_table}.id"
>
>
>
> authcheck_table is like this
>
> Id UserName Attribute op Value Permission
>
>
> and my groupcheck_table table is like this
>
> UserName Blocked Permission
>
>
> The basic problem I am facing is that i want to use alias from
> calling-station-id. How can i do this ? I want to cut alias from both
> the attributes (Calling-Station-Id and Called-Station-Id) and then
> want to match them against the values in the table.
>
> Help me out
>
>
>
> --
> Kamran Bukhari
>
> -
> List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html


-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 11:47 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0