RE: RedHat Enterprise 2.1, FreeRadius 0.9.3 with MySQL
Title: RE: RedHat Enterprise 2.1, FreeRadius 0.9.3 with MySQL I have check the FreeRADIUS FAQ and followed the instructions. My ld.so.conf file has been setup correcly and is pointing the respective library dependencies and it still is giving me the same error. I have also attempted ./configure --disable-shared and still no go. I know I do not need mysql-shared, I am honestly stumped. Sorry to keep this thread going, I just can't seem to find much documentation on any extra steps required when running this new distro of RedHat. Thanks, Chris DeRamus -Original Message- From: NetNITCO Systems Administration [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 11, 2003 5:26 PM To: [EMAIL PROTECTED] Subject: Re: RedHat Enterprise 2.1, FreeRadius 0.9.3 with MySQL On Thu, 2003-12-11 at 16:00, Deramus, Chris wrote: > To all -- > > I recently upgraded my development RADIUS box which was running RedHat > 8.0 to RedHat Enterprise Linux 2.1 ES. This was a fresh install which > included all Mysql related packages contained on the CD's. It was > noted that the Enterprise installation did not contain a Mysql-devel > package, I am assuming it is now bundled in with one of the other > rpm's. I tested SQL queries from both web applications and command > line and everything seemed to be a go so I then configured freeradius. > I believe you are mistaken. The current MySQL development package for RHEL ES 2.1 is mysql-devel-3.23.58-1.72. You can grab the package from the RHEL installation media, or, you can download the SRPM from a Red Hat mirror and rebuild the package: ftp://redhat.netnitco.net/pub/mirrors/redhat/updates/enterprise/2.1ES/en/os/SRPMS/mysql-3.23.58-1.72.src.rpm > rlm_sql (sql): Could not link driver rlm_sql_mysql: file not found > rlm_sql (sql): Make sure it (and all its dependent libraries!) are in > the search path of your system's ld. > radiusd.conf[4]: sql: Module instantiation failed. > You'll get this until you compile FreeRADIUS with the MySQL development libraries installed. - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
RE: RedHat Enterprise 2.1, FreeRadius 0.9.3 with MySQL
I also mis-typed my message. The package that I was talking about was mysql-shared not mysql-devel. I do not think you need mysql-shared though, or do you? Thanks, Chris DeRamus OCIO VPN Administrator SAIC -Original Message- From: NetNITCO Systems Administration [mailto:[EMAIL PROTECTED] Sent: Thursday, December 11, 2003 5:26 PM To: [EMAIL PROTECTED] Subject: Re: RedHat Enterprise 2.1, FreeRadius 0.9.3 with MySQL On Thu, 2003-12-11 at 16:00, Deramus, Chris wrote: > To all -- > > I recently upgraded my development RADIUS box which was running RedHat > 8.0 to RedHat Enterprise Linux 2.1 ES. This was a fresh install which > included all Mysql related packages contained on the CD's. It was > noted that the Enterprise installation did not contain a Mysql-devel > package, I am assuming it is now bundled in with one of the other > rpm's. I tested SQL queries from both web applications and command > line and everything seemed to be a go so I then configured freeradius. > I believe you are mistaken. The current MySQL development package for RHEL ES 2.1 is mysql-devel-3.23.58-1.72. You can grab the package from the RHEL installation media, or, you can download the SRPM from a Red Hat mirror and rebuild the package: ftp://redhat.netnitco.net/pub/mirrors/redhat/updates/enterprise/2.1ES/en/os/ SRPMS/mysql-3.23.58-1.72.src.rpm > rlm_sql (sql): Could not link driver rlm_sql_mysql: file not found > rlm_sql (sql): Make sure it (and all its dependent libraries!) are in > the search path of your system's ld. > radiusd.conf[4]: sql: Module instantiation failed. > You'll get this until you compile FreeRADIUS with the MySQL development libraries installed. - 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: RedHat Enterprise 2.1, FreeRadius 0.9.3 with MySQL
On Fri, 2003-12-12 at 08:18, Deramus, Chris wrote: > Here's the output from the box, as you can see I have the development > package. Any other thoughts? > > [EMAIL PROTECTED] ->rpm -qa | grep mysql > mysqlclient9-3.23.22-8 > mysql-devel-3.23.58-1.72 > mysql-3.23.58-1.72 > php-mysql-4.1.2-2.1.6 > mysql-server-3.23.58-1.72 > mod_auth_mysql-1.11-1 > Recompile with options: --with-rlm-sql-lib-dir=/usr/lib/mysql --with-rlm-sql-include-dir=/usr/include/mysql Give that a try. --Josh Snyder, Linux/UNIX Systems Administrator NetNITCO Internet Services [EMAIL PROTECTED] http://www.netnitco.net - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
RE: RedHat Enterprise 2.1, FreeRadius 0.9.3 with MySQL
Here's the output from the box, as you can see I have the development package. Any other thoughts? [EMAIL PROTECTED] ->rpm -qa | grep mysql mysqlclient9-3.23.22-8 mysql-devel-3.23.58-1.72 mysql-3.23.58-1.72 php-mysql-4.1.2-2.1.6 mysql-server-3.23.58-1.72 mod_auth_mysql-1.11-1 Thanks! Chris DeRamus -Original Message- From: NetNITCO Systems Administration [mailto:[EMAIL PROTECTED] Sent: Thursday, December 11, 2003 5:26 PM To: [EMAIL PROTECTED] Subject: Re: RedHat Enterprise 2.1, FreeRadius 0.9.3 with MySQL On Thu, 2003-12-11 at 16:00, Deramus, Chris wrote: > To all -- > > I recently upgraded my development RADIUS box which was running RedHat > 8.0 to RedHat Enterprise Linux 2.1 ES. This was a fresh install which > included all Mysql related packages contained on the CD's. It was > noted that the Enterprise installation did not contain a Mysql-devel > package, I am assuming it is now bundled in with one of the other > rpm's. I tested SQL queries from both web applications and command > line and everything seemed to be a go so I then configured freeradius. > I believe you are mistaken. The current MySQL development package for RHEL ES 2.1 is mysql-devel-3.23.58-1.72. You can grab the package from the RHEL installation media, or, you can download the SRPM from a Red Hat mirror and rebuild the package: ftp://redhat.netnitco.net/pub/mirrors/redhat/updates/enterprise/2.1ES/en/os/ SRPMS/mysql-3.23.58-1.72.src.rpm > rlm_sql (sql): Could not link driver rlm_sql_mysql: file not found > rlm_sql (sql): Make sure it (and all its dependent libraries!) are in > the search path of your system's ld. > radiusd.conf[4]: sql: Module instantiation failed. > You'll get this until you compile FreeRADIUS with the MySQL development libraries installed. - 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: RedHat Enterprise 2.1, FreeRadius 0.9.3 with MySQL
On Thu, 2003-12-11 at 16:00, Deramus, Chris wrote: > To all -- > > I recently upgraded my development RADIUS box which was running RedHat > 8.0 to RedHat Enterprise Linux 2.1 ES. This was a fresh install which > included all Mysql related packages contained on the CD's. It was > noted that the Enterprise installation did not contain a Mysql-devel > package, I am assuming it is now bundled in with one of the other > rpm's. I tested SQL queries from both web applications and command > line and everything seemed to be a go so I then configured freeradius. > I believe you are mistaken. The current MySQL development package for RHEL ES 2.1 is mysql-devel-3.23.58-1.72. You can grab the package from the RHEL installation media, or, you can download the SRPM from a Red Hat mirror and rebuild the package: ftp://redhat.netnitco.net/pub/mirrors/redhat/updates/enterprise/2.1ES/en/os/SRPMS/mysql-3.23.58-1.72.src.rpm > rlm_sql (sql): Could not link driver rlm_sql_mysql: file not found > rlm_sql (sql): Make sure it (and all its dependent libraries!) are in > the search path of your system's ld. > radiusd.conf[4]: sql: Module instantiation failed. > You'll get this until you compile FreeRADIUS with the MySQL development libraries installed. - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
RedHat Enterprise 2.1, FreeRadius 0.9.3 with MySQL
Title: RedHat Enterprise 2.1, FreeRadius 0.9.3 with MySQL To all -- I recently upgraded my development RADIUS box which was running RedHat 8.0 to RedHat Enterprise Linux 2.1 ES. This was a fresh install which included all Mysql related packages contained on the CD's. It was noted that the Enterprise installation did not contain a Mysql-devel package, I am assuming it is now bundled in with one of the other rpm's. I tested SQL queries from both web applications and command line and everything seemed to be a go so I then configured freeradius. I used the following configure line: ./configure --with-mysql-include-dir=/usr/include/mysql --with-mysql-dir=/usr/lib/mysql --with-mysql I configured the flat configuration files including radiusd.conf to match my desired configuration. SQL is setup like so: --- Pasted from radiusd.conf --- $INCLUDE ${confdir}/sql.conf $INCLUDE ${confdir}/sql2.conf authorize { # # The preprocess module takes care of sanitizing some bizarre # attributes in the request, and turning them into attributes # which are more standard. # # It takes care of processing the 'raddb/hints' and the # 'raddb/huntgroups' files. # # It also adds a Client-IP-Address attribute to the request. autztype sql1 { sql } autztype sql2 { sql2 } accounting { detail acctype sql1 { sql } acctype sql2 { sql2 } radutmp My sql.conf and sql2.conf files repesctively called the driver rlm_sql_mysql. Upon launching radiusd with debugging turned on I get the following message: rlm_sql (sql): Could not link driver rlm_sql_mysql: file not found rlm_sql (sql): Make sure it (and all its dependent libraries!) are in the search path of your system's ld. radiusd.conf[4]: sql: Module instantiation failed. I have re-configured the sql_mysql module multiple times, even as a static module and no luck. I am wondering if this has to do with differences in the way MySQL is setup in the Enterprise 2.1 ES distro? Any light that you can shed on this issue would be greatly appreciated. Thanks and have a great day, Chris DeRamus
Re: Freeradius 0.9.3 with mysql
Dan Monjar <[EMAIL PROTECTED]> wrote: > Were you able to address the occasional server crash in response to the > HUP? Yes. Alan DeKok. - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
Re: Freeradius 0.9.3 with mysql
--On Thursday, December 11, 2003 01:40:40 PM -0500 Alan DeKok <[EMAIL PROTECTED]> wrote: Graeme Hinchliffe <[EMAIL PROTECTED]> wrote: Will a HUP force a reload of the config? Yes. Alan DeKok. - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html Were you able to address the occasional server crash in response to the HUP? -- Daniel Monjar IS Manager, Technical Services bioMérieux, Inc. Durham, NC US - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
Re: Freeradius 0.9.3 with mysql
Graeme Hinchliffe <[EMAIL PROTECTED]> wrote: > Will a HUP force a reload of the config? Yes. Alan DeKok. - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
Re: Freeradius 0.9.3 with mysql
On Wed, 10 Dec 2003 13:56:44 -0500 "Alan DeKok" <[EMAIL PROTECTED]> wrote: > "Justin Williams" <[EMAIL PROTECTED]> wrote: > > By the way, I did not see a command in the man pages to restart radiusd > > after making config changes. Is there such? > > Huh? It's a normal program. You just kill it, and re-start it. Will a HUP force a reload of the config? -- - Graeme Hinchliffe (BSc) Core Team Member Zen Internet (http://www.zen.co.uk) ICQ 3842605 (link) Direct: 0845 058 9074 Main : 0845 058 9000 Fax : 0845 058 9005 - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
RE: Freeradius 0.9.3 with mysql
In Mandrake (very similar to redhat in most respects), service radiusd restart returned the error that radiusd was not registered as a service... For the moment, kill works... ;-) Thanks! -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Guy Fraser Sent: Wednesday, December 10, 2003 5:46 PM To: [EMAIL PROTECTED] Subject: Re: Freeradius 0.9.3 with mysql The init command will depend on the distribution you are using. On RH, as root it should be somthing like : /sbin/service radiusd restart On Debian : /etc/init.d/freeradius restart On Suse: /etc/init.d/radiusd restart On FreeBSD :-) /usr/local/etc/rc.d/radiusd.sh restart Good luck. Justin Williams wrote: >Thanks! Was thinking in terms of daemons like httpd, which have their >own start/stop commands. > >-Original Message- >From: [EMAIL PROTECTED] >[mailto:[EMAIL PROTECTED] On Behalf Of Alan >DeKok >Sent: Wednesday, December 10, 2003 1:57 PM >To: [EMAIL PROTECTED] >Subject: Re: Freeradius 0.9.3 with mysql > > >"Justin Williams" <[EMAIL PROTECTED]> wrote: > > >>By the way, I did not see a command in the man pages to restart >>radiusd after making config changes. Is there such? >> >> > > Huh? It's a normal program. You just kill it, and re-start it. > > 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 - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
Re: Freeradius 0.9.3 with mysql
The init command will depend on the distribution you are using. On RH, as root it should be somthing like : /sbin/service radiusd restart On Debian : /etc/init.d/freeradius restart On Suse: /etc/init.d/radiusd restart On FreeBSD :-) /usr/local/etc/rc.d/radiusd.sh restart Good luck. Justin Williams wrote: Thanks! Was thinking in terms of daemons like httpd, which have their own start/stop commands. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Alan DeKok Sent: Wednesday, December 10, 2003 1:57 PM To: [EMAIL PROTECTED] Subject: Re: Freeradius 0.9.3 with mysql "Justin Williams" <[EMAIL PROTECTED]> wrote: By the way, I did not see a command in the man pages to restart radiusd after making config changes. Is there such? Huh? It's a normal program. You just kill it, and re-start it. 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: Freeradius 0.9.3 with mysql
Thanks! Was thinking in terms of daemons like httpd, which have their own start/stop commands. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Alan DeKok Sent: Wednesday, December 10, 2003 1:57 PM To: [EMAIL PROTECTED] Subject: Re: Freeradius 0.9.3 with mysql "Justin Williams" <[EMAIL PROTECTED]> wrote: > By the way, I did not see a command in the man pages to restart > radiusd after making config changes. Is there such? Huh? It's a normal program. You just kill it, and re-start it. 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: Freeradius 0.9.3 with mysql
"Justin Williams" <[EMAIL PROTECTED]> wrote: > By the way, I did not see a command in the man pages to restart radiusd > after making config changes. Is there such? Huh? It's a normal program. You just kill it, and re-start it. Alan DeKok. - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
RE: Freeradius 0.9.3 with mysql
Thank you! By the way, I did not see a command in the man pages to restart radiusd after making config changes. Is there such? Thanks again! -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Alan DeKok Sent: Wednesday, December 10, 2003 1:48 PM To: [EMAIL PROTECTED] Subject: Re: Freeradius 0.9.3 with mysql "Justin Williams" <[EMAIL PROTECTED]> wrote: > Bingo... That worked... I was missing the sql entry in the authorize > section... That's good to hear. > Would still love to go read up on radius, though! Buy the RADIUS book. See the web site for details. 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: Freeradius 0.9.3 with mysql
"Justin Williams" <[EMAIL PROTECTED]> wrote: > Bingo... That worked... I was missing the sql entry in the authorize > section... That's good to hear. > Would still love to go read up on radius, though! Buy the RADIUS book. See the web site for details. Alan DeKok. - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
RE: Freeradius 0.9.3 with mysql
Bingo... That worked... I was missing the sql entry in the authorize section... Would still love to go read up on radius, though! -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Justin Williams Sent: Wednesday, December 10, 2003 1:43 PM To: [EMAIL PROTECTED] Subject: RE: Freeradius 0.9.3 with mysql Already running in debugging mode, but, too ignorant of what it all means. If there is a reference you recommend that would help me learn more about radius, in general, I'll be happy to go hunting in there too. I added sql to the accounting section in radius.conf, but I did not add it into the authorize section... Added that and will hope that it works... -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Alan DeKok Sent: Wednesday, December 10, 2003 1:30 PM To: [EMAIL PROTECTED] Subject: Re: Freeradius 0.9.3 with mysql "Justin Williams" <[EMAIL PROTECTED]> wrote: > At any rate, with the user "test" in the users file, it authenticates > just fine. When I comment that out and add the user to the mysql > table, usergroups, it does not authenticate, and I don't notice any > reference to mysql in the rejection notice So run it in debugging mode to see what's going wrong. Also, you *do* need to configure 'radiusd.conf' to use the SQL module. You can't just put users into an SQL database, and hope that the server magically knows where to look. 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: Freeradius 0.9.3 with mysql
Already running in debugging mode, but, too ignorant of what it all means. If there is a reference you recommend that would help me learn more about radius, in general, I'll be happy to go hunting in there too. I added sql to the accounting section in radius.conf, but I did not add it into the authorize section... Added that and will hope that it works... -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Alan DeKok Sent: Wednesday, December 10, 2003 1:30 PM To: [EMAIL PROTECTED] Subject: Re: Freeradius 0.9.3 with mysql "Justin Williams" <[EMAIL PROTECTED]> wrote: > At any rate, with the user "test" in the users file, it authenticates > just fine. When I comment that out and add the user to the mysql > table, usergroups, it does not authenticate, and I don't notice any > reference to mysql in the rejection notice So run it in debugging mode to see what's going wrong. Also, you *do* need to configure 'radiusd.conf' to use the SQL module. You can't just put users into an SQL database, and hope that the server magically knows where to look. 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: Freeradius 0.9.3 with mysql
"Justin Williams" <[EMAIL PROTECTED]> wrote: > At any rate, with the user "test" in the users file, it authenticates > just fine. When I comment that out and add the user to the mysql table, > usergroups, it does not authenticate, and I don't notice any reference > to mysql in the rejection notice So run it in debugging mode to see what's going wrong. Also, you *do* need to configure 'radiusd.conf' to use the SQL module. You can't just put users into an SQL database, and hope that the server magically knows where to look. Alan DeKok. - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
Freeradius 0.9.3 with mysql
Hi all I have freeradius 0.9.3 set up on a linux box with (presumably) mysql compiled in as well. I have the mysql-devel files installed before configure/make/make installing. I followed through the how-to found at http://www.frontios.com/freeradius.html, but, that is a set of how-to for a somewhat older version. At any rate, with the user "test" in the users file, it authenticates just fine. When I comment that out and add the user to the mysql table, usergroups, it does not authenticate, and I don't notice any reference to mysql in the rejection notice (I can copy/paste that notice in if it will help anybody). I did notice an extra table in the current version that was not mentioned in the how-to, and that is the table radacct. Is that where I need to be adding users, later on (when this thing actually goes live)? On a different note, has anybody used this radius daemon with the Venturi acceleration server? Any pointers on that would be helpful too! Thanks!! --===-- Justin Williams Penguin Herder Power Shift Online Services 571 South Main Street Stowe, VT 05672 877-949-9967 Who shook my snow globe?? - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html