hi, Created my own debs of freeradius 1.0.5 Everything 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 linked rlm_sql (sql): Attempting to connect to freeradius@localhost:/radius rlm_sql (sql): starting 0 rlm_sql (sql): Attempting to connect rlm_sql_mysql #0 rlm_sql_mysql: Starting connect to MySQL server for #0 rlm_sql (sql): Connected new DB handle, #0 rlm_sql (sql): starting 1 rlm_sql (sql): Attempting to connect rlm_sql_mysql #1 rlm_sql_mysql: Starting connect to MySQL server for #1 rlm_sql (sql): Connected new DB handle, #1 rlm_sql (sql): starting 2 rlm_sql (sql): Attempting to connect rlm_sql_mysql #2 rlm_sql_mysql: Starting connect to MySQL server for #2 rlm_sql (sql): Connected new DB handle, #2 rlm_sql (sql): starting 3 rlm_sql (sql): Attempting to connect rlm_sql_mysql #3 rlm_sql_mysql: Starting connect to MySQL server for #3 rlm_sql (sql): Connected new DB handle, #3 rlm_sql (sql): starting 4 rlm_sql (sql): Attempting to connect rlm_sql_mysql #4 rlm_sql_mysql: Starting connect to MySQL server for #4 rlm_sql (sql): Connected new DB handle, #4 rlm_sql (sql): - generate_sql_clients rlm_sql (sql): Query: SELECT * FROM nas rlm_sql (sql): Reserving sql socket id: 4 rlm_sql (sql): Read entry nasname=localhost,shortname=localhost,secret=XXXXXXXXXXX rlm_sql (sql): Adding client 127.0.0.1 (localhost) to clients list rlm_sql (sql): Released sql socket id: 4 Module: Instantiated sql (sql) Segmentation fault Any idea's?
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
On 8/16/06, Nicolas Baradakis <nbk@sitadelle.com> wrote:
YvesDM wrote:
Created my own debs of freeradius 1.0.5
Please upgrade to 1.1.2.
I know, but the radius I'm running now (FR 1.0.5, SQL authentication, time&volume 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 -X
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
YvesDM <ydmlog@gmail.com> 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
On 8/16/06, Alan DeKok <aland@deployingradius.com> wrote:
YvesDM <ydmlog@gmail.com> 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
YvesDM <ydmlog@gmail.com> 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
On 8/16/06, Alan DeKok <aland@deployingradius.com> wrote:
YvesDM <ydmlog@gmail.com> 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.
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.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.
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
participants (3)
-
Alan DeKok -
Nicolas Baradakis -
YvesDM