Re: sql segmentaiton fault

2006-08-16 Thread Nicolas Baradakis
YvesDM wrote:

 Created my own debs of freeradius 1.0.5

Please upgrade to 1.1.2.

 Everything works, but when i try to use mysql i get a segmentation fault
 running radiusd -X

See http://freeradius.org/radiusd/doc/bugs

 I used the rules file in the debian dir of the tar.gz, but added
 --with-experimental modules as a configure option in it cause i need the
 sqlcounter.

sqlcounter is in the stable modules list in versions = 1.1.0.

-- 
Nicolas Baradakis

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


RE: sql segmentaiton fault

2006-08-16 Thread Hasan Ovuc

Try to start with strace tool, maybe it helps you. 

strace radiusd -d /etc/raddb 

 -Original Message-
 From: 
 [EMAIL PROTECTED]
 radius.org 
 [mailto:[EMAIL PROTECTED]
 sts.freeradius.org] On Behalf Of Nicolas Baradakis
 Sent: Wednesday, August 16, 2006 12:09 PM
 To: FreeRadius users mailing list
 Subject: Re: sql segmentaiton fault
 
 YvesDM wrote:
 
  Created my own debs of freeradius 1.0.5
 
 Please upgrade to 1.1.2.
 
  Everything works, but when i try to use mysql i get a segmentation 
  fault running radiusd -X
 
 See http://freeradius.org/radiusd/doc/bugs
 
  I used the rules file in the debian dir of the tar.gz, but added 
  --with-experimental modules as a configure option in it 
 cause i need 
  the sqlcounter.
 
 sqlcounter is in the stable modules list in versions = 1.1.0.
 
 --
 Nicolas Baradakis
 
 -
 List info/subscribe/unsubscribe? See 
 http://www.freeradius.org/list/users.html
 


 
 Bu e-posta mesaji ve ekleri sadece gonderildigi kisi veya kuruma ozeldir. Eger 
dogru kisiye ulasmadigini dusunuyorsaniz, bu mesajin yonlendirilmesi, 
kopyalanmasi veya herhangi bir sekilde kullanilmasi yasaktir.Mesaj iceriginde 
bulunan fikir ve yorumlar, SUPERONLINE'a degil sadece gondericiye aittir. Bu 
mesaj bilinen tum viruslere karsi test edilmistir.

 This e-mail and any files transmitted with it are confidential and intended 
solely for the use of the individual or entity to whom they are addressed. If 
you are not the intended recipient you are hereby notified that any 
dissemination, copying or use of the information is prohibited. The opinions 
expressed in this message belong to sender alone. There is no implied 
endorsement by SUPERONLINE.This e-mail has been scanned for all known computer 
viruses.

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


Re: sql segmentaiton fault

2006-08-16 Thread YvesDM
On 8/16/06, Nicolas Baradakis [EMAIL PROTECTED] wrote:
YvesDM wrote: Created my own debs of freeradius 1.0.5Please upgrade to 1.1.2.I know, but the radius I'm running now (FR 1.0.5, SQL authentication, timevolume accounting) was originally setup by somebody else.
It's working fine, but I wanted to know how everything was set up without trashing the existing server (it's in use).I had a spare server and decided to give it a go.I choose to install 1.0.5 on the testradius too because then it was possible for me to compare the config files with the existing server and see the changes. As soon as I got everything working on my 
1.0.5 testradius, I will definately try to reproduce it again with the newest version. 
 Everything works, but when i try to use mysql i get a segmentation fault running radiusd -XSee http://freeradius.org/radiusd/doc/bugs
This problem is solved now.(it took 4 days for my post to appear here, strange) I tried to fire it up with the config files from the existing radius and got the segm. fault.When I used the standard config it was running fine. So far, I got radius  sql authentication working.
Still got to take a look to install dialup admin and the volume accounting part, but I ran a bit out of time this week :-)Maybe tomorrow I can work on it again.
 I used the rules file in the debian dir of the tar.gz, but added --with-experimental modules as a configure option in it cause i need the sqlcounter.sqlcounter is in the stable modules list in versions = 
1.1.0.See above :-) One question, on the existing radius I got  a file perl.conf in /etc/freeradius. I don't have this on my testradius and I guess I will need it.I also have FR complaining about missing modules when I use the exisiting server 's configfile.
Missing modules are for example downloadlimit When i take a look at radiusd.conf from the existing server, it's in the Authorize section right above the authentication section.snippet: #
 # The ldap module will set Auth-Type to LDAP if it has not # already been set# ldap # # Enforce daily limits on time spent logged in.# daily validfromlogin
 downloadlimit uploadlimit volumelimit prepaidcounter # # Use the checkval module# checkval}# Authentication.
I guess I missed something and hope someone can help me out here.Many tnx.Yves
- 
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

Re: sql segmentaiton fault

2006-08-16 Thread Alan DeKok
YvesDM [EMAIL PROTECTED] wrote:
 Missing modules are for example downloadlimit When i take a look at
 radiusd.conf from the existing server,
 it's in the Authorize section right above the authentication section.
 snippet:

  It's a module created in the original configuration.  Go read that.
Look for downloadlimit in radiusd.conf.

  Alan DeKok.
--
  http://deployingradius.com   - The web site of the book
  http://deployingradius.com/blog/ - The blog
- 
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html


Re: sql segmentaiton fault

2006-08-16 Thread YvesDM
On 8/16/06, Alan DeKok [EMAIL PROTECTED] wrote:
YvesDM [EMAIL PROTECTED] wrote: Missing modules are for example downloadlimit When i take a look at radiusd.conf from the existing server, it's in the Authorize section right above the authentication section.
 snippet: It's a module created in the original configuration.Go read that.
Look for downloadlimit in radiusd.conf.Alan DeKok.Sorry alan, I don't get it? What should i read? That snippet in my prior mail came from radiusd.conf from the existing (active) server
In the (almost unmodified) radiusd.conf from the testradius that same snippet looks like this: # The ldap module will set Auth-Type to LDAP if it has not # already been set# ldap
 # # Enforce daily limits on time spent logged in.# daily # # Use the checkval module# checkval}# Authentication.So there are no validfromlogin,
downloadlimit, uploadlimit, volumelimit, prepaidcounter entries there.Or maybe I get this wrong and you mean something else?Yves
- 
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

Re: sql segmentaiton fault

2006-08-16 Thread Alan DeKok
YvesDM [EMAIL PROTECTED] wrote:
 I don't get it? What should i read?

  The original radiusd.conf.

 That snippet in my prior mail came from radiusd.conf from the existing
 (active) server

  Yes, go read that again.  It's defining those extra modules.  Those
modules aren't defined in the default configuration.  They are local
to your site.  I don't know how else to explain that.

 In the (almost unmodified) radiusd.conf  from the testradius that same
 snippet looks like this:

  Yes, which is the default config.  I don't understand why you think
it's necessary to post the default config to the list.  I wrote much
of it, and am quite familiar with it.

  Go read the configuration files on the active server.  Stop arguing.

  Alan DeKok.
--
  http://deployingradius.com   - The web site of the book
  http://deployingradius.com/blog/ - The blog
- 
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html


Re: sql segmentaiton fault

2006-08-16 Thread YvesDM
On 8/16/06, Alan DeKok [EMAIL PROTECTED] wrote:
YvesDM [EMAIL PROTECTED] wrote: I don't get it? What should i read?The original radiusd.conf. That snippet in my prior mail came from radiusd.conf
 from the existing (active) serverYes, go read that again.It's defining those extra modules.Thosemodules aren't defined in the default configuration.They are localto your site.I don't know how else to explain that.
I can see those modules are listed there, but then what?I looked in /usr/lib/freeradius but didn't find them there.Obviously I don't understand the whole module thing in radius.I will read 
radiusd.conf and the docs again (for the xxx time) Oh I guess i'm just stupid. 
 In the (almost unmodified) radiusd.conffrom the testradius that same snippet looks like this:Yes, which is the default config.I don't understand why you thinkit's necessary to post the default config to the list.I wrote much
of it, and am quite familiar with it.When you said it's a module created in the default configuration, 
I thought you meant it was there by default.
Obviously this wasn't what you meant.
(English is not my native language)Go read the configuration files on the active server.Stop arguing.
I did many times. But ok, I will do again.Thank you for your help.Sincerely Yves
- 
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

sql segmentaiton fault

2006-08-12 Thread YvesDM
hi,Created my own debs of freeradius 1.0.5Everything works, but when i try to use mysql i get a segmentation fault running radiusd -X Could my freeradius-mysql.deb be corrupt? I got no errors creating it.
I used the rules file in the debian dir of the tar.gz, but added --with-experimental modules as a configure option in it cause i need the sqlcounter. These are the last lines of the radiusd -X output:sql: postauth_query = INSERT into radpostauth (id, user, pass, reply, date) values ('', '%{User-Name}', '%{User-Password:-Chap-Password}', '%{reply:Packet-Type}', NOW())
sql: safe-characters = @abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789.-_: /rlm_sql (sql): Driver rlm_sql_mysql (module rlm_sql_mysql) loaded and linkedrlm_sql (sql): Attempting to connect to 
[EMAIL PROTECTED]:/radiusrlm_sql (sql): starting 0rlm_sql (sql): Attempting to connect rlm_sql_mysql #0rlm_sql_mysql: Starting connect to MySQL server for #0rlm_sql (sql): Connected new DB handle, #0
rlm_sql (sql): starting 1rlm_sql (sql): Attempting to connect rlm_sql_mysql #1rlm_sql_mysql: Starting connect to MySQL server for #1rlm_sql (sql): Connected new DB handle, #1rlm_sql (sql): starting 2rlm_sql (sql): Attempting to connect rlm_sql_mysql #2
rlm_sql_mysql: Starting connect to MySQL server for #2rlm_sql (sql): Connected new DB handle, #2rlm_sql (sql): starting 3rlm_sql (sql): Attempting to connect rlm_sql_mysql #3rlm_sql_mysql: Starting connect to MySQL server for #3
rlm_sql (sql): Connected new DB handle, #3rlm_sql (sql): starting 4rlm_sql (sql): Attempting to connect rlm_sql_mysql #4rlm_sql_mysql: Starting connect to MySQL server for #4rlm_sql (sql): Connected new DB handle, #4
rlm_sql (sql): - generate_sql_clientsrlm_sql (sql): Query: SELECT * FROM nasrlm_sql (sql): Reserving sql socket id: 4rlm_sql (sql): Read entry nasname=localhost,shortname=localhost,secret=XXXrlm_sql (sql): Adding client 
127.0.0.1 (localhost) to clients listrlm_sql (sql): Released sql socket id: 4Module: Instantiated sql (sql)Segmentation faultAny idea's?
- 
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html