RE: How to log failed auth attempts?

2008-12-19 Thread Todd R.
Doh!, that's true.. The "\" on the previous line continued the string rather
than making it a new line.. 

Thanks! I knew that ;) He he.. 

Regards,
 Todd R.

-Original Message-
From:
freeradius-users-bounces+tjrlist=lightwavetech@lists.freeradius.org
[mailto:freeradius-users-bounces+tjrlist=lightwavetech@lists.freeradius.
org] On Behalf Of Alan DeKok
Sent: Friday, December 19, 2008 11:51 AM
To: FreeRadius users mailing list
Subject: Re: How to log failed auth attempts?

Todd R. wrote:
> Weee.. Thanks, removing the comment fixed it.

  Good.

> I guess I just figured a comment was a comment regardless of where it was
or
> on what line, did not know it would be a problem.

  It was in the middle of a string:

hello = " ...
# stuff
..."

  That doesn't work in any programming language I'm aware of.

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

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


Re: How to log failed auth attempts?

2008-12-19 Thread Alan DeKok
Todd R. wrote:
> Weee.. Thanks, removing the comment fixed it.

  Good.

> I guess I just figured a comment was a comment regardless of where it was or
> on what line, did not know it would be a problem.

  It was in the middle of a string:

hello = " ...
# stuff
..."

  That doesn't work in any programming language I'm aware of.

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


RE: How to log failed auth attempts?

2008-12-19 Thread Todd R.
The \'s were in the example file, I just left them.

Turns out that it was my comment in the middle of the SQL as you mentioned.

Weee.. Thanks, removing the comment fixed it.

I guess I just figured a comment was a comment regardless of where it was or
on what line, did not know it would be a problem.

Thanks to all that helped with this issue.. 


Regards,
 Todd R.

-Original Message-
From:
freeradius-users-bounces+tjrlist=lightwavetech@lists.freeradius.org
[mailto:freeradius-users-bounces+tjrlist=lightwavetech@lists.freeradius.
org] On Behalf Of Anders Holm
Sent: Friday, December 19, 2008 1:16 AM
To: FreeRadius users mailing list
Cc: FreeRadius users mailing list
Subject: Re: How to log failed auth attempts?

The \'s might be significant. You have those all through the query, up  
to the point things break.

I also wouldn't have a comment in the middle of an SQL statement.

Clean it up and it is likely to work.

Sent from my iPhone

On 19 Dec 2008, at 03:29, "Todd R."  wrote:

>>>>>
> What was the error message when you start with radiusd -X?
>>>>>
>
> OK, the error is:
> including configuration file /usr/local/etc/raddb/sql/mysql/ 
> dialup.conf
> /usr/local/etc/raddb/sql/mysql/dialup.conf[302]: Parse error after
> "%{reply:Packet-Type}"
> Errors reading /usr/local/etc/raddb/radiusd.conf
>
>
> Here is what my current query looks like, notice that I have the  
> line that
> works commented out:
>
> ### 
> 
># Authentication Logging Queries
>
> ### 
> 
># postauth_query- Insert some info after
> authentication
>
> ### 
> 
>
>postauth_query = "INSERT INTO ${postauth_table} \
>  (username, pass, reply, rejectreason,  
> authdate) \
>  VALUES ( \
>  '%{User-Name}', \
>  '%{%{User-Password}:-%{Chap-Password}}', \
>  #'%{reply:Packet-Type}', '%{reply:Reply- 
> Message}',
> '%S')"
>  '%{reply:Packet-Type}',
> '%{Module-Failure-Message}', '%S')"
>
>
> Regards,
> Todd R.
>
>
> -Original Message-
> From:
> freeradius-users-bounces 
> +tjrlist=lightwavetech@lists.freeradius.org
>
[mailto:freeradius-users-bounces+tjrlist=lightwavetech@lists.freeradius 
> .
> org] On Behalf Of t...@kalik.net
> Sent: Thursday, December 18, 2008 6:06 PM
> To: FreeRadius users mailing list
> Subject: RE: How to log failed auth attempts?
>
>>>>>>
>> Just... edit the queries.  Adding %{Module-Failure-Message} to the
>> queries should get you lots of that information.
>>>>>>
>>
>> Am I suppose to put a Module name in place of "Module" or leave it  
>> as is? I
>> copied and pasted %{Module-Failure-Message} in place of
>> %{reply:Reply-Message} and I could no longer start FR.
>>
>
> What was the error message when you start with radiusd -X?
>
> Ivan Kalik
> Kalik Informatika ISP
>
> -
> List info/subscribe/unsubscribe? See
> http://www.freeradius.org/list/users.html
>
> -
> List info/subscribe/unsubscribe? See
http://www.freeradius.org/list/users.html
-
List info/subscribe/unsubscribe? See
http://www.freeradius.org/list/users.html

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


RE: How to log failed auth attempts?

2008-12-19 Thread tnt
>postauth_query = "INSERT INTO ${postauth_table} \
>  (username, pass, reply, rejectreason, authdate) \
>  VALUES ( \
>  '%{User-Name}', \
>  '%{%{User-Password}:-%{Chap-Password}}', \
>  #'%{reply:Packet-Type}', '%{reply:Reply-Message}',
>'%S')"
>  '%{reply:Packet-Type}',
>'%{Module-Failure-Message}', '%S')"
>

I can't see this properly. If you can copy it to the text file and
attach to the message. Have you tried control:Module-Failure-Message?

Ivan Kalik
Kalik Informatika ISP

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


Re: How to log failed auth attempts?

2008-12-18 Thread Anders Holm
The \'s might be significant. You have those all through the query, up  
to the point things break.


I also wouldn't have a comment in the middle of an SQL statement.

Clean it up and it is likely to work.

Sent from my iPhone

On 19 Dec 2008, at 03:29, "Todd R."  wrote:




What was the error message when you start with radiusd -X?




OK, the error is:
including configuration file /usr/local/etc/raddb/sql/mysql/ 
dialup.conf

/usr/local/etc/raddb/sql/mysql/dialup.conf[302]: Parse error after
"%{reply:Packet-Type}"
Errors reading /usr/local/etc/raddb/radiusd.conf


Here is what my current query looks like, notice that I have the  
line that

works commented out:

### 


   # Authentication Logging Queries

### 


   # postauth_query- Insert some info after
authentication

### 



   postauth_query = "INSERT INTO ${postauth_table} \
 (username, pass, reply, rejectreason,  
authdate) \

 VALUES ( \
 '%{User-Name}', \
 '%{%{User-Password}:-%{Chap-Password}}', \
 #'%{reply:Packet-Type}', '%{reply:Reply- 
Message}',

'%S')"
 '%{reply:Packet-Type}',
'%{Module-Failure-Message}', '%S')"


Regards,
Todd R.


-Original Message-
From:
freeradius-users-bounces 
+tjrlist=lightwavetech@lists.freeradius.org
[mailto:freeradius-users-bounces+tjrlist=lightwavetech@lists.freeradius 
.

org] On Behalf Of t...@kalik.net
Sent: Thursday, December 18, 2008 6:06 PM
To: FreeRadius users mailing list
Subject: RE: How to log failed auth attempts?




Just... edit the queries.  Adding %{Module-Failure-Message} to the
queries should get you lots of that information.




Am I suppose to put a Module name in place of "Module" or leave it  
as is? I

copied and pasted %{Module-Failure-Message} in place of
%{reply:Reply-Message} and I could no longer start FR.



What was the error message when you start with radiusd -X?

Ivan Kalik
Kalik Informatika ISP

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

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

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


RE: How to log failed auth attempts?

2008-12-18 Thread Todd R.
>>>>
What was the error message when you start with radiusd -X?
>>>>

OK, the error is:
including configuration file /usr/local/etc/raddb/sql/mysql/dialup.conf
/usr/local/etc/raddb/sql/mysql/dialup.conf[302]: Parse error after
"%{reply:Packet-Type}"
Errors reading /usr/local/etc/raddb/radiusd.conf


Here is what my current query looks like, notice that I have the line that
works commented out:
 
###
# Authentication Logging Queries
 
###
# postauth_query- Insert some info after
authentication
 
###

postauth_query = "INSERT INTO ${postauth_table} \
  (username, pass, reply, rejectreason, authdate) \
  VALUES ( \
  '%{User-Name}', \
  '%{%{User-Password}:-%{Chap-Password}}', \
  #'%{reply:Packet-Type}', '%{reply:Reply-Message}',
'%S')"
  '%{reply:Packet-Type}',
'%{Module-Failure-Message}', '%S')"


Regards,
 Todd R.


-Original Message-
From:
freeradius-users-bounces+tjrlist=lightwavetech@lists.freeradius.org
[mailto:freeradius-users-bounces+tjrlist=lightwavetech@lists.freeradius.
org] On Behalf Of t...@kalik.net
Sent: Thursday, December 18, 2008 6:06 PM
To: FreeRadius users mailing list
Subject: RE: How to log failed auth attempts?

>>>>>
>  Just... edit the queries.  Adding %{Module-Failure-Message} to the
>queries should get you lots of that information.
>>>>>
>
>Am I suppose to put a Module name in place of "Module" or leave it as is? I
>copied and pasted %{Module-Failure-Message} in place of
>%{reply:Reply-Message} and I could no longer start FR.
>

What was the error message when you start with radiusd -X?

Ivan Kalik
Kalik Informatika ISP

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

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


Re: How to log failed auth attempts?

2008-12-18 Thread Todd R.
Can't view it now until I get back in front of a computer but as I remember it 
was complaining about the exact line that I added this to.

I will check further later and post the exact error from the debug console.

Thanks!
--Original Message--
From: t...@kalik.net
Sender: freeradius-users-bounces+tjrlist=lightwavetech@lists.freeradius.org
To: FreeRadius users mailing list
ReplyTo: FreeRadius users mailing list
Subject: RE: How to log failed auth attempts?
Sent: Dec 18, 2008 6:06 PM

>>>>>
>  Just... edit the queries.  Adding %{Module-Failure-Message} to the
>queries should get you lots of that information.
>>>>>
>
>Am I suppose to put a Module name in place of "Module" or leave it as is? I
>copied and pasted %{Module-Failure-Message} in place of
>%{reply:Reply-Message} and I could no longer start FR.
>

What was the error message when you start with radiusd -X?

Ivan Kalik
Kalik Informatika ISP

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


Sent via BlackBerry by AT&T

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


RE: How to log failed auth attempts?

2008-12-18 Thread tnt
>
>  Just... edit the queries.  Adding %{Module-Failure-Message} to the
>queries should get you lots of that information.
>
>
>Am I suppose to put a Module name in place of "Module" or leave it as is? I
>copied and pasted %{Module-Failure-Message} in place of
>%{reply:Reply-Message} and I could no longer start FR.
>

What was the error message when you start with radiusd -X?

Ivan Kalik
Kalik Informatika ISP

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


RE: How to log failed auth attempts?

2008-12-18 Thread Todd R.
>>>>
  Just... edit the queries.  Adding %{Module-Failure-Message} to the
queries should get you lots of that information.
>>>>

Am I suppose to put a Module name in place of "Module" or leave it as is? I
copied and pasted %{Module-Failure-Message} in place of
%{reply:Reply-Message} and I could no longer start FR.

I tried putting things in place of Module like pap, reply etc.. I also tried
the pap:Failure-Message format and so on. I guess I am just too Green at
FreeRadius to get what you are saying here. If you can help further then
it's appreciated, if you are just done with me, I also understand :)

Either way, happy holidays and thanks for the help so far.

Regards,
 Todd Routhier


-Original Message-
From:
freeradius-users-bounces+tjrlist=lightwavetech@lists.freeradius.org
[mailto:freeradius-users-bounces+tjrlist=lightwavetech@lists.freeradius.
org] On Behalf Of Alan DeKok
Sent: Thursday, December 18, 2008 3:03 AM
To: FreeRadius users mailing list
Subject: Re: How to log failed auth attempts?

Todd R. wrote:
> I also noticed that it said that many things are logged when running
> "radiusd -X" which explains some other things.. 

  That's the reason for the continual instructions to run in debug mode.

> Right now, I have something like this logging on a failed attempt in the
> MySQL DB within the radpostauth table:
> 
> id, username, pass, reply, authdate
> 41, d...@somerealm.com, mypass, Access-Accept, 2008-12-17 13:09:15
> 
> 
> What I would like to see is something like this:
> id, username, pass, reply, reply-message, authdate
> 41, d...@somerealm.com, mybadpass, Access-Accept, Login incorrect
(rlm_pap:
> CLEAR TEXT password check failed), 2008-12-17 13:09:15

  Just... edit the queries.  Adding %{Module-Failure-Message} to the
queries should get you lots of that information.

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

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


Re: How to log failed auth attempts?

2008-12-18 Thread A . L . M . Buxey
Hi,

> The problem seems to be that when a bad password is the reject reason, the
> Reply-Message is just blank.

yep - security reasons. why did I get rejected? ah, because the
password was wrong. I'll just keep brute-forcing unti I get the
password right..

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


Re: How to log failed auth attempts?

2008-12-18 Thread Alan DeKok
Todd R. wrote:
> I also noticed that it said that many things are logged when running
> "radiusd -X" which explains some other things.. 

  That's the reason for the continual instructions to run in debug mode.

> Right now, I have something like this logging on a failed attempt in the
> MySQL DB within the radpostauth table:
> 
> id, username, pass, reply, authdate
> 41, d...@somerealm.com, mypass, Access-Accept, 2008-12-17 13:09:15
> 
> 
> What I would like to see is something like this:
> id, username, pass, reply, reply-message, authdate
> 41, d...@somerealm.com, mybadpass, Access-Accept, Login incorrect (rlm_pap:
> CLEAR TEXT password check failed), 2008-12-17 13:09:15

  Just... edit the queries.  Adding %{Module-Failure-Message} to the
queries should get you lots of that information.

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


RE: How to log failed auth attempts?

2008-12-17 Thread Todd R.
>>>>
You are probably the first to want the exact same text.  Someone may have
wanted to log the reason for the reject, but they probably didn't care about
the exact representation of that reason.
>>>>

I just want what FreeRadius is already logging to the text file, I don't
want any special custom text for each error, just what's already being
logged to the text files.

Thanks for your help, I don't think I want to dig that hard to get this
solution, I am just surprised that it's this hard.

If the info is already being logged to the text file, it must exist in some
variable which should allow me to get it and insert the same into the DB.

Hmmm.. 

Either way, if I can't solve this fairly simple, I will probably parse the
radiusd.log file with a command line script and insert each line into a
table. I do this now with some other logs files, this allows me to then do
web based queries against the tables.

Regards,
 Todd Routhier

-Original Message-
From:
freeradius-users-bounces+tjrlist=lightwavetech@lists.freeradius.org
[mailto:freeradius-users-bounces+tjrlist=lightwavetech@lists.freeradius.
org] On Behalf Of Scott Lambert
Sent: Wednesday, December 17, 2008 10:39 PM
To: FreeRadius users mailing list
Subject: Re: How to log failed auth attempts?

On Wed, Dec 17, 2008 at 07:51:48PM -0600, Todd R. wrote:
> This seems odd, I can't be the first person to want to have the reason for
> the reject in the SQL table??
> 
> It can't be rocket science to get this to log in the DB when it's already
> being logged in the text logs??

You are probably the first to want the exact same text.  Someone may
have wanted to log the reason for the reject, but they probably didn't
care about the exact representation of that reason.

If you want this, I suspect that you will need to look at the source
code which generates the text for the log module.  It may tell you the
correct varible to use so you can store the correct reason value in the
database.  You can then build logic in your reporting logic to show you
the text you want.  That would likely be more efficient, storage wise,
for your database too.

It's not rocket science, but it is likely "some assembly required."

I am not a FreeRADIUS developer, so this is speculation.
 
-- 
Scott LambertKC5MLE   Unix SysAdmin
lamb...@lambertfam.org

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

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


Re: How to log failed auth attempts?

2008-12-17 Thread Scott Lambert
On Wed, Dec 17, 2008 at 07:51:48PM -0600, Todd R. wrote:
> This seems odd, I can't be the first person to want to have the reason for
> the reject in the SQL table??
> 
> It can't be rocket science to get this to log in the DB when it's already
> being logged in the text logs??

You are probably the first to want the exact same text.  Someone may
have wanted to log the reason for the reject, but they probably didn't
care about the exact representation of that reason.

If you want this, I suspect that you will need to look at the source
code which generates the text for the log module.  It may tell you the
correct varible to use so you can store the correct reason value in the
database.  You can then build logic in your reporting logic to show you
the text you want.  That would likely be more efficient, storage wise,
for your database too.

It's not rocket science, but it is likely "some assembly required."

I am not a FreeRADIUS developer, so this is speculation.
 
-- 
Scott LambertKC5MLE   Unix SysAdmin
lamb...@lambertfam.org

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


RE: How to log failed auth attempts?

2008-12-17 Thread Todd R.
Well, it appears that what I had was correct, at least I think so.. Ex.
%{reply:Reply-Message}

The problem seems to be that when a bad password is the reject reason, the
Reply-Message is just blank.

On the other hand if I set the account expiration in the past, the
Reply-Message contains "Password Has Expired=0D=0A".

This seems odd, I can't be the first person to want to have the reason for
the reject in the SQL table??

It can't be rocket science to get this to log in the DB when it's already
being logged in the text logs??

Thanks for continuing to assist me.

Regards,
 Todd Routhier

-Original Message-
From:
freeradius-users-bounces+tjrlist=lightwavetech@lists.freeradius.org
[mailto:freeradius-users-bounces+tjrlist=lightwavetech@lists.freeradius.
org] On Behalf Of Todd R.
Sent: Wednesday, December 17, 2008 7:24 PM
To: 'FreeRadius users mailing list'
Subject: RE: How to log failed auth attempts?

>>>>
>What variable can I use to pull the reject reason, is it something like 
>%{reply:Reply-Message}

That is a good choice.
>>>>

I tried this but I just end up with a blank entry in the database.



>>>>
>Am I missing anything else to accomplish this?
>

You just need to compose text that will go into the Reply-Message.
>>>>

Thing is, I don't want to compose anything, I want to insert the same reject
reason that is being displayed in the text error log. I don't have to
compose the text to get it to log to the text log, it just happens.

I am looking to populate my "rejectreason" field in the radpostauth table
with the reason for the reject. I already have "Access-Reject" under the
reply field but this isn't very informative and causes me to go dig through
the text log to find the reason or the reject.

Thanks for any clarification you can provide.

Regards,
 Todd Routhier




-Original Message-
From:
freeradius-users-bounces+tjrlist=lightwavetech@lists.freeradius.org
[mailto:freeradius-users-bounces+tjrlist=lightwavetech@lists.freeradius.
org] On Behalf Of t...@kalik.net
Sent: Wednesday, December 17, 2008 7:08 PM
To: FreeRadius users mailing list
Subject: RE: How to log failed auth attempts?

>I do see this query in sql/mysql/dialup.conf that controls the insert:
>
>postauth_query = "INSERT INTO ${postauth_table} \
>  (username, pass, reply, authdate) \
>  VALUES ( \
>  '%{User-Name}', \
>  '%{%{User-Password}:-%{Chap-Password}}', \
>  '%{reply:Packet-Type}', '%S')"
>
>I am guessing I need to modify this query and the DB schema to suite my
>needs.

Yes.

>What variable can I use to pull the reject reason, is it something like
>%{reply:Reply-Message}

That is a good choice.

>Am I missing anything else to accomplish this?
>

You just need to compose text that will go into the Reply-Message.

>Is there a list of available variables to use

doc/variables.txt

Ivan Kalik
Kalik Informatika ISP

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

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

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


RE: How to log failed auth attempts?

2008-12-17 Thread Todd R.
>>>>
>What variable can I use to pull the reject reason, is it something like 
>%{reply:Reply-Message}

That is a good choice.
>>>>

I tried this but I just end up with a blank entry in the database.



>>>>
>Am I missing anything else to accomplish this?
>

You just need to compose text that will go into the Reply-Message.
>>>>

Thing is, I don't want to compose anything, I want to insert the same reject
reason that is being displayed in the text error log. I don't have to
compose the text to get it to log to the text log, it just happens.

I am looking to populate my "rejectreason" field in the radpostauth table
with the reason for the reject. I already have "Access-Reject" under the
reply field but this isn't very informative and causes me to go dig through
the text log to find the reason or the reject.

Thanks for any clarification you can provide.

Regards,
 Todd Routhier




-Original Message-
From:
freeradius-users-bounces+tjrlist=lightwavetech@lists.freeradius.org
[mailto:freeradius-users-bounces+tjrlist=lightwavetech@lists.freeradius.
org] On Behalf Of t...@kalik.net
Sent: Wednesday, December 17, 2008 7:08 PM
To: FreeRadius users mailing list
Subject: RE: How to log failed auth attempts?

>I do see this query in sql/mysql/dialup.conf that controls the insert:
>
>postauth_query = "INSERT INTO ${postauth_table} \
>  (username, pass, reply, authdate) \
>  VALUES ( \
>  '%{User-Name}', \
>  '%{%{User-Password}:-%{Chap-Password}}', \
>  '%{reply:Packet-Type}', '%S')"
>
>I am guessing I need to modify this query and the DB schema to suite my
>needs.

Yes.

>What variable can I use to pull the reject reason, is it something like
>%{reply:Reply-Message}

That is a good choice.

>Am I missing anything else to accomplish this?
>

You just need to compose text that will go into the Reply-Message.

>Is there a list of available variables to use

doc/variables.txt

Ivan Kalik
Kalik Informatika ISP

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

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


RE: How to log failed auth attempts?

2008-12-17 Thread tnt
>I do see this query in sql/mysql/dialup.conf that controls the insert:
>
>postauth_query = "INSERT INTO ${postauth_table} \
>  (username, pass, reply, authdate) \
>  VALUES ( \
>  '%{User-Name}', \
>  '%{%{User-Password}:-%{Chap-Password}}', \
>  '%{reply:Packet-Type}', '%S')"
>
>I am guessing I need to modify this query and the DB schema to suite my
>needs.

Yes.

>What variable can I use to pull the reject reason, is it something like
>%{reply:Reply-Message}

That is a good choice.

>Am I missing anything else to accomplish this?
>

You just need to compose text that will go into the Reply-Message.

>Is there a list of available variables to use

doc/variables.txt

Ivan Kalik
Kalik Informatika ISP

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


RE: How to log failed auth attempts?

2008-12-17 Thread Todd R.
I do see this query in sql/mysql/dialup.conf that controls the insert:

postauth_query = "INSERT INTO ${postauth_table} \
  (username, pass, reply, authdate) \
  VALUES ( \
  '%{User-Name}', \
  '%{%{User-Password}:-%{Chap-Password}}', \
  '%{reply:Packet-Type}', '%S')"

I am guessing I need to modify this query and the DB schema to suite my
needs.

What variable can I use to pull the reject reason, is it something like
%{reply:Reply-Message}?

Am I missing anything else to accomplish this?

Is there a list of available variables to use in this situations and what
they mean?

Thanks again!

Regards,
 Todd Routhier

-Original Message-
From:
freeradius-users-bounces+tjrlist=lightwavetech@lists.freeradius.org
[mailto:freeradius-users-bounces+tjrlist=lightwavetech@lists.freeradius.
org] On Behalf Of Todd R.
Sent: Wednesday, December 17, 2008 2:15 PM
To: 'FreeRadius users mailing list'
Subject: RE: How to log failed auth attempts?

Alan,

 Thanks for your response.. 

First, I can't believe I missed this section of the radiusd.conf file, I
looked, really I did :)

I also noticed that it said that many things are logged when running
"radiusd -X" which explains some other things.. 

I made some changes and now I have sufficient log info in the text files.

Hate to push my luck here but I would love to expand what is being logged
SQL wise in my MySql db.

Right now, I have something like this logging on a failed attempt in the
MySQL DB within the radpostauth table:

id, username, pass, reply, authdate
41, d...@somerealm.com, mypass, Access-Accept, 2008-12-17 13:09:15


What I would like to see is something like this:
id, username, pass, reply, reply-message, authdate
41, d...@somerealm.com, mybadpass, Access-Accept, Login incorrect (rlm_pap:
CLEAR TEXT password check failed), 2008-12-17 13:09:15

Any help with this would be appreciated.

Regards,
 Todd R.

-Original Message-
From:
freeradius-users-bounces+tjrlist=lightwavetech@lists.freeradius.org
[mailto:freeradius-users-bounces+tjrlist=lightwavetech@lists.freeradius.
org] On Behalf Of Alan DeKok
Sent: Wednesday, December 17, 2008 5:32 AM
To: FreeRadius users mailing list
Subject: Re: How to log failed auth attempts?

Todd R. wrote:
> It seems that most things I have read suggest that failed authentication
> attempts are logged to the radius.log by default but they do not show up
for
> me.

  Edit raddb/radiusd.conf, and read the "log" section.  It has
configuration entries that control this behavior.

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

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

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


RE: How to log failed auth attempts?

2008-12-17 Thread Todd R.
Alan,

 Thanks for your response.. 

First, I can't believe I missed this section of the radiusd.conf file, I
looked, really I did :)

I also noticed that it said that many things are logged when running
"radiusd -X" which explains some other things.. 

I made some changes and now I have sufficient log info in the text files.

Hate to push my luck here but I would love to expand what is being logged
SQL wise in my MySql db.

Right now, I have something like this logging on a failed attempt in the
MySQL DB within the radpostauth table:

id, username, pass, reply, authdate
41, d...@somerealm.com, mypass, Access-Accept, 2008-12-17 13:09:15


What I would like to see is something like this:
id, username, pass, reply, reply-message, authdate
41, d...@somerealm.com, mybadpass, Access-Accept, Login incorrect (rlm_pap:
CLEAR TEXT password check failed), 2008-12-17 13:09:15

Any help with this would be appreciated.

Regards,
 Todd R.

-Original Message-
From:
freeradius-users-bounces+tjrlist=lightwavetech@lists.freeradius.org
[mailto:freeradius-users-bounces+tjrlist=lightwavetech@lists.freeradius.
org] On Behalf Of Alan DeKok
Sent: Wednesday, December 17, 2008 5:32 AM
To: FreeRadius users mailing list
Subject: Re: How to log failed auth attempts?

Todd R. wrote:
> It seems that most things I have read suggest that failed authentication
> attempts are logged to the radius.log by default but they do not show up
for
> me.

  Edit raddb/radiusd.conf, and read the "log" section.  It has
configuration entries that control this behavior.

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

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


Re: How to log failed auth attempts?

2008-12-17 Thread Alan DeKok
Todd R. wrote:
> It seems that most things I have read suggest that failed authentication
> attempts are logged to the radius.log by default but they do not show up for
> me.

  Edit raddb/radiusd.conf, and read the "log" section.  It has
configuration entries that control this behavior.

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