LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Wireless Networking (https://www.linuxquestions.org/questions/linux-wireless-networking-41/)
-   -   Wifi + FreeRadius + MySQL (https://www.linuxquestions.org/questions/linux-wireless-networking-41/wifi-freeradius-mysql-622985/)

saman 02-22-2008 03:53 AM

Wifi + FreeRadius + MySQL
 
Hi all,

Recently I try to setup wifi AP with Freeradius in RHEL4. I started to edit files below:
#>clients.conf
#>eap.conf
#>user
#>radiusd.conf

and replace the latest root.der after that I can't start radiusd anymore.
here the radius.log

Fri Feb 22 10:39:12 2008 : Info: Using deprecated naslist file. Support for this will go away soon.
Fri Feb 22 10:39:12 2008 : Info: rlm_exec: Wait=yes but no output defined. Did you mean output=none?
Fri Feb 22 10:39:12 2008 : Error: ERROR: Cannot find a configuration entry for module "auth_log".
Fri Feb 22 16:02:29 2008 : Info: Using deprecated naslist file. Support for this will go away soon.
Fri Feb 22 16:02:29 2008 : Info: rlm_exec: Wait=yes but no output defined. Did you mean output=none?
Fri Feb 22 16:02:29 2008 : Error: ERROR: Cannot find a configuration entry for module "auth_log".
Fri Feb 22 16:13:45 2008 : Info: Using deprecated naslist file. Support for this will go away soon.
Fri Feb 22 16:13:45 2008 : Info: rlm_exec: Wait=yes but no output defined. Did you mean output=none?
Fri Feb 22 16:13:45 2008 : Error: ERROR: Cannot find a configuration entry for module "auth_log".

Anyone have any idea what went wrong?

acid_kewpie 02-22-2008 04:16 AM

well with all due respect, there are two very clear pointers in that log output, yet you've not made any comment on them. address those two, most notably the lack of the auth_log configuration and we'll go from there.

Brian1 02-22-2008 06:36 PM

I am curious as whether you have resolved the info related in this post?
http://www.linuxquestions.org/questi...tables-607528/

Brian

saman 02-25-2008 09:55 AM

after I make some changes and here the radius.log

Mon Feb 25 22:39:03 2008 : Info: Using deprecated naslist file. Support for this will go away soon.
Mon Feb 25 22:39:03 2008 : Info: rlm_exec: Wait=yes but no output defined. Did you mean output=none?
Mon Feb 25 22:39:04 2008 : Error: rlm_sql (sql): Could not link driver rlm_sql_mysql: rlm_sql_mysql.so: cannot open shared object file: No such file or directory
Mon Feb 25 22:39:04 2008 : Error: rlm_sql (sql): Make sure it (and all its dependent libraries!) are in the search path of your system's ld.
Mon Feb 25 22:39:04 2008 : Error: radiusd.conf[14]: sql: Module instantiation failed.

I spent some time to look for such file 'rlm_sql_mysql.so' but couldn't find it. Here below the file I found

/etc/logrotate.d/radiusd
/etc/pam.d/radiusd
/etc/raddb/acct_users
/etc/raddb/attrs
/etc/raddb/certs
/etc/raddb/certs/README
/etc/raddb/certs/cert-clt.der
/etc/raddb/certs/cert-clt.p12
/etc/raddb/certs/cert-clt.pem
/etc/raddb/certs/cert-srv.der
/etc/raddb/certs/cert-srv.p12
/etc/raddb/certs/cert-srv.pem
/etc/raddb/certs/demoCA
/etc/raddb/certs/demoCA/cacert.pem
/etc/raddb/certs/demoCA/index.txt
/etc/raddb/certs/demoCA/index.txt.old
/etc/raddb/certs/demoCA/serial
/etc/raddb/certs/demoCA/serial.old
/etc/raddb/certs/dh
/etc/raddb/certs/newcert.pem
/etc/raddb/certs/newreq.pem
/etc/raddb/certs/random
/etc/raddb/certs/root.der
/etc/raddb/certs/root.p12
/etc/raddb/certs/root.pem
/etc/raddb/clients
/etc/raddb/clients.conf
/etc/raddb/dictionary
/etc/raddb/eap.conf
/etc/raddb/experimental.conf
/etc/raddb/hints
/etc/raddb/huntgroups
/etc/raddb/ldap.attrmap
/etc/raddb/mssql.conf
/etc/raddb/naslist
/etc/raddb/naspasswd
/etc/raddb/oraclesql.conf
/etc/raddb/postgresql.conf
/etc/raddb/preproxy_users
/etc/raddb/proxy.conf
/etc/raddb/radiusd.conf
/etc/raddb/realms
/etc/raddb/snmp.conf
/etc/raddb/sql.conf
/etc/raddb/users
/etc/raddb/x99.conf
/etc/raddb/x99passwd.sample
/etc/rc.d/init.d/radiusd
/usr/bin/radclient
/usr/bin/radeapclient
/usr/bin/radlast
/usr/bin/radrelay
/usr/bin/radtest
/usr/bin/radwho
/usr/bin/radzap
/usr/bin/rlm_dbm_cat
/usr/bin/rlm_dbm_parser
/usr/bin/rlm_ippool_tool
/usr/bin/smbencrypt
/usr/lib/libeap-1.0.1.so
/usr/lib/libeap.so
/usr/lib/libradius-1.0.1.so
/usr/lib/libradius.so
/usr/lib/rlm_acct_unique-1.0.1.so
/usr/lib/rlm_acct_unique.so
/usr/lib/rlm_always-1.0.1.so
/usr/lib/rlm_always.so
/usr/lib/rlm_attr_filter-1.0.1.so
/usr/lib/rlm_attr_filter.so
/usr/lib/rlm_attr_rewrite-1.0.1.so
/usr/lib/rlm_attr_rewrite.so
/usr/lib/rlm_chap-1.0.1.so
/usr/lib/rlm_chap.so
/usr/lib/rlm_checkval-1.0.1.so
/usr/lib/rlm_checkval.so
/usr/lib/rlm_counter-1.0.1.so
/usr/lib/rlm_counter.so
/usr/lib/rlm_dbm-1.0.1.so
/usr/lib/rlm_dbm.so
/usr/lib/rlm_detail-1.0.1.so
/usr/lib/rlm_detail.so
/usr/lib/rlm_digest-1.0.1.so
/usr/lib/rlm_digest.so
/usr/lib/rlm_eap-1.0.1.so
/usr/lib/rlm_eap.so
/usr/lib/rlm_eap_gtc-1.0.1.so
/usr/lib/rlm_eap_gtc.so
/usr/lib/rlm_eap_leap-1.0.1.so
/usr/lib/rlm_eap_leap.so
/usr/lib/rlm_eap_md5-1.0.1.so
/usr/lib/rlm_eap_md5.so
/usr/lib/rlm_eap_mschapv2-1.0.1.so
/usr/lib/rlm_eap_mschapv2.so
/usr/lib/rlm_eap_peap-1.0.1.so
/usr/lib/rlm_eap_peap.so
/usr/lib/rlm_eap_sim-1.0.1.so
/usr/lib/rlm_eap_sim.so
/usr/lib/rlm_eap_tls-1.0.1.so
/usr/lib/rlm_eap_tls.so
/usr/lib/rlm_eap_ttls-1.0.1.so
/usr/lib/rlm_eap_ttls.so
/usr/lib/rlm_exec-1.0.1.so
/usr/lib/rlm_exec.so
/usr/lib/rlm_expr-1.0.1.so
/usr/lib/rlm_expr.so
/usr/lib/rlm_fastusers-1.0.1.so
/usr/lib/rlm_fastusers.so
/usr/lib/rlm_files-1.0.1.so
/usr/lib/rlm_files.so
/usr/lib/rlm_ippool-1.0.1.so
/usr/lib/rlm_ippool.so
/usr/lib/rlm_krb5-1.0.1.so
/usr/lib/rlm_krb5.so
/usr/lib/rlm_ldap-1.0.1.so
/usr/lib/rlm_ldap.so
/usr/lib/rlm_mschap-1.0.1.so
/usr/lib/rlm_mschap.so
/usr/lib/rlm_ns_mta_md5-1.0.1.so
/usr/lib/rlm_ns_mta_md5.so
/usr/lib/rlm_pam-1.0.1.so
/usr/lib/rlm_pam.so
/usr/lib/rlm_pap-1.0.1.so
/usr/lib/rlm_pap.so
/usr/lib/rlm_passwd-1.0.1.so
/usr/lib/rlm_passwd.so
/usr/lib/rlm_preprocess-1.0.1.so
/usr/lib/rlm_preprocess.so
/usr/lib/rlm_radutmp-1.0.1.so
/usr/lib/rlm_radutmp.so
/usr/lib/rlm_realm-1.0.1.so
/usr/lib/rlm_realm.so
/usr/lib/rlm_sql-1.0.1.so
/usr/lib/rlm_sql.so

/usr/lib/rlm_unix-1.0.1.so
/usr/lib/rlm_unix.so
/usr/lib/rlm_x99_token-1.0.1.so
/usr/lib/rlm_x99_token.so
/usr/sbin/check-radiusd-config
/usr/sbin/checkrad
/usr/sbin/radiusd
/usr/sbin/radwatch
/usr/share/doc/freeradius-1.0.1
/usr/share/doc/freeradius-1.0.1/Autz-Type
/usr/share/doc/freeradius-1.0.1/DIFFS
/usr/share/doc/freeradius-1.0.1/MACOSX
/usr/share/doc/freeradius-1.0.1/OS2
/usr/share/doc/freeradius-1.0.1/RADIUS-LDAP.schema
/usr/share/doc/freeradius-1.0.1/RADIUS-LDAPv3.schema
/usr/share/doc/freeradius-1.0.1/RADIUS-SQL.schema
/usr/share/doc/freeradius-1.0.1/README
/usr/share/doc/freeradius-1.0.1/Simultaneous-Use
/usr/share/doc/freeradius-1.0.1/aaa.txt
/usr/share/doc/freeradius-1.0.1/ascend
/usr/share/doc/freeradius-1.0.1/bay
/usr/share/doc/freeradius-1.0.1/bugs
/usr/share/doc/freeradius-1.0.1/cisco
/usr/share/doc/freeradius-1.0.1/coding-methods.txt
/usr/share/doc/freeradius-1.0.1/configurable_failover
/usr/share/doc/freeradius-1.0.1/db_mysql.sql
/usr/share/doc/freeradius-1.0.1/db_oracle.sql
/usr/share/doc/freeradius-1.0.1/db_postgresql.sql
/usr/share/doc/freeradius-1.0.1/duplicate-users
/usr/share/doc/freeradius-1.0.1/module_interface
/usr/share/doc/freeradius-1.0.1/performance-testing
/usr/share/doc/freeradius-1.0.1/processing_users_file
/usr/share/doc/freeradius-1.0.1/proxy
/usr/share/doc/freeradius-1.0.1/radrelay
/usr/share/doc/freeradius-1.0.1/rfc
/usr/share/doc/freeradius-1.0.1/rfc/attributes.html
/usr/share/doc/freeradius-1.0.1/rfc/draft-kamath-pppext-eap-mschapv2-00.txt
/usr/share/doc/freeradius-1.0.1/rfc/draft-sterman-aaa-sip-00.txt
/usr/share/doc/freeradius-1.0.1/rfc/leap.txt
/usr/share/doc/freeradius-1.0.1/rfc/pppext-eap-sim-12.txt
/usr/share/doc/freeradius-1.0.1/rfc/rfc1157.txt
/usr/share/doc/freeradius-1.0.1/rfc/rfc1227.txt
/usr/share/doc/freeradius-1.0.1/rfc/rfc1448.txt
/usr/share/doc/freeradius-1.0.1/rfc/rfc1901.txt
/usr/share/doc/freeradius-1.0.1/rfc/rfc1905.txt
/usr/share/doc/freeradius-1.0.1/rfc/rfc2058.txt
/usr/share/doc/freeradius-1.0.1/rfc/rfc2059.txt
/usr/share/doc/freeradius-1.0.1/rfc/rfc2138.txt
/usr/share/doc/freeradius-1.0.1/rfc/rfc2139.txt
/usr/share/doc/freeradius-1.0.1/rfc/rfc2243.txt
/usr/share/doc/freeradius-1.0.1/rfc/rfc2289.txt
/usr/share/doc/freeradius-1.0.1/rfc/rfc2433.txt
/usr/share/doc/freeradius-1.0.1/rfc/rfc2548.txt
/usr/share/doc/freeradius-1.0.1/rfc/rfc2618.txt
/usr/share/doc/freeradius-1.0.1/rfc/rfc2619.txt
/usr/share/doc/freeradius-1.0.1/rfc/rfc2620.txt
/usr/share/doc/freeradius-1.0.1/rfc/rfc2621.txt
/usr/share/doc/freeradius-1.0.1/rfc/rfc2716.txt
/usr/share/doc/freeradius-1.0.1/rfc/rfc2759.txt
/usr/share/doc/freeradius-1.0.1/rfc/rfc2809.txt
/usr/share/doc/freeradius-1.0.1/rfc/rfc2865.txt
/usr/share/doc/freeradius-1.0.1/rfc/rfc2866.txt
/usr/share/doc/freeradius-1.0.1/rfc/rfc2867.txt
/usr/share/doc/freeradius-1.0.1/rfc/rfc2868.txt
/usr/share/doc/freeradius-1.0.1/rfc/rfc2869.txt
/usr/share/doc/freeradius-1.0.1/rfc/rfc2882.txt
/usr/share/doc/freeradius-1.0.1/rfc/rfc2924.txt
/usr/share/doc/freeradius-1.0.1/rfc/rfc3162.txt
/usr/share/doc/freeradius-1.0.1/rfc/rfc3575.txt
/usr/share/doc/freeradius-1.0.1/rfc/rfc3576.txt
/usr/share/doc/freeradius-1.0.1/rfc/rfc3579.txt
/usr/share/doc/freeradius-1.0.1/rfc/rfc3580.txt
/usr/share/doc/freeradius-1.0.1/rlm_attr_filter
/usr/share/doc/freeradius-1.0.1/rlm_dbm
/usr/share/doc/freeradius-1.0.1/rlm_digest
/usr/share/doc/freeradius-1.0.1/rlm_eap
/usr/share/doc/freeradius-1.0.1/rlm_fastusers
/usr/share/doc/freeradius-1.0.1/rlm_krb5
/usr/share/doc/freeradius-1.0.1/rlm_ldap
/usr/share/doc/freeradius-1.0.1/rlm_pam
/usr/share/doc/freeradius-1.0.1/rlm_passwd
/usr/share/doc/freeradius-1.0.1/rlm_python
/usr/share/doc/freeradius-1.0.1/rlm_sim_triplets
/usr/share/doc/freeradius-1.0.1/rlm_sql
/usr/share/doc/freeradius-1.0.1/rlm_sqlcounter
/usr/share/doc/freeradius-1.0.1/rlm_x99_token
/usr/share/doc/freeradius-1.0.1/supervise-radiusd.txt
/usr/share/doc/freeradius-1.0.1/tuning_guide
/usr/share/doc/freeradius-1.0.1/variables.txt
/usr/share/freeradius
/usr/share/freeradius/dictionary
/usr/share/freeradius/dictionary.3com
/usr/share/freeradius/dictionary.3gpp
/usr/share/freeradius/dictionary.3gpp2
/usr/share/freeradius/dictionary.acc
/usr/share/freeradius/dictionary.alcatel
/usr/share/freeradius/dictionary.alteon
/usr/share/freeradius/dictionary.altiga
/usr/share/freeradius/dictionary.aptis
/usr/share/freeradius/dictionary.ascend
/usr/share/freeradius/dictionary.bay
/usr/share/freeradius/dictionary.bintec
/usr/share/freeradius/dictionary.bristol
/usr/share/freeradius/dictionary.cabletron
/usr/share/freeradius/dictionary.cisco
/usr/share/freeradius/dictionary.cisco.bbsm
/usr/share/freeradius/dictionary.cisco.vpn3000
/usr/share/freeradius/dictionary.cisco.vpn5000
/usr/share/freeradius/dictionary.colubris
/usr/share/freeradius/dictionary.columbia_university
/usr/share/freeradius/dictionary.compat
/usr/share/freeradius/dictionary.erx
/usr/share/freeradius/dictionary.extreme
/usr/share/freeradius/dictionary.foundry
/usr/share/freeradius/dictionary.freeradius
/usr/share/freeradius/dictionary.gandalf
/usr/share/freeradius/dictionary.itk
/usr/share/freeradius/dictionary.juniper
/usr/share/freeradius/dictionary.karlnet
/usr/share/freeradius/dictionary.livingston
/usr/share/freeradius/dictionary.merit
/usr/share/freeradius/dictionary.microsoft
/usr/share/freeradius/dictionary.mikrotik
/usr/share/freeradius/dictionary.navini
/usr/share/freeradius/dictionary.netscreen
/usr/share/freeradius/dictionary.nokia
/usr/share/freeradius/dictionary.nomadix
/usr/share/freeradius/dictionary.propel
/usr/share/freeradius/dictionary.quintum
/usr/share/freeradius/dictionary.redback
/usr/share/freeradius/dictionary.redcreek
/usr/share/freeradius/dictionary.shasta
/usr/share/freeradius/dictionary.shiva
/usr/share/freeradius/dictionary.sonicwall
/usr/share/freeradius/dictionary.springtide
/usr/share/freeradius/dictionary.telebit
/usr/share/freeradius/dictionary.trapeze
/usr/share/freeradius/dictionary.tunnel
/usr/share/freeradius/dictionary.unix
/usr/share/freeradius/dictionary.usr
/usr/share/freeradius/dictionary.valemount
/usr/share/freeradius/dictionary.versanet
/usr/share/freeradius/dictionary.wispr
/usr/share/freeradius/dictionary.xedia
/usr/share/man/man1/radclient.1.gz
/usr/share/man/man1/radeapclient.1.gz
/usr/share/man/man1/radlast.1.gz
/usr/share/man/man1/radtest.1.gz
/usr/share/man/man1/radwho.1.gz
/usr/share/man/man1/radzap.1.gz
/usr/share/man/man5/acct_users.5.gz
/usr/share/man/man5/clients.5.gz
/usr/share/man/man5/dictionary.5.gz
/usr/share/man/man5/naslist.5.gz
/usr/share/man/man5/radiusd.conf.5.gz
/usr/share/man/man5/rlm_acct_unique.5.gz
/usr/share/man/man5/rlm_always.5.gz
/usr/share/man/man5/rlm_attr_filter.5.gz
/usr/share/man/man5/rlm_attr_rewrite.5.gz
/usr/share/man/man5/rlm_chap.5.gz
/usr/share/man/man5/rlm_counter.5.gz
/usr/share/man/man5/rlm_detail.5.gz
/usr/share/man/man5/rlm_expr.5.gz
/usr/share/man/man5/rlm_files.5.gz
/usr/share/man/man5/rlm_mschap.5.gz
/usr/share/man/man5/rlm_pap.5.gz
/usr/share/man/man5/rlm_passwd.5.gz
/usr/share/man/man5/rlm_realm.5.gz
/usr/share/man/man5/rlm_sql.5.gz
/usr/share/man/man5/rlm_unix.5.gz
/usr/share/man/man5/users.5.gz
/usr/share/man/man8/radiusd.8.gz
/usr/share/man/man8/radrelay.8.gz
/usr/share/man/man8/radwatch.8.gz
/usr/share/man/man8/rlm_ippool_tool.8.gz
/var/log/radius
/var/log/radius/radacct
/var/log/radius/radius.log
/var/log/radius/radutmp
/var/log/radius/radwtmp
/var/run/radiusd

saman 02-25-2008 10:09 AM

here the error after I put '/usr/lib/rlm_sql-1.0.1.so' in sql.conf.

Mon Feb 25 22:58:56 2008 : Info: Using deprecated naslist file. Support for this will go away soon.
Mon Feb 25 22:58:56 2008 : Info: rlm_exec: Wait=yes but no output defined. Did you mean output=none?
Mon Feb 25 22:58:56 2008 : Error: rlm_sql (sql): "/usr/lib/rlm_sql-1.0.1" is NOT an SQL driver!
Mon Feb 25 22:58:56 2008 : Error: radiusd.conf[14]: sql: Module instantiation failed.

or '/usr/lib/rlm_sql.so'

Mon Feb 25 23:05:47 2008 : Info: Using deprecated naslist file. Support for this will go away soon.
Mon Feb 25 23:05:47 2008 : Info: rlm_exec: Wait=yes but no output defined. Did you mean output=none?
Mon Feb 25 23:05:47 2008 : Error: rlm_sql (sql): "/usr/lib/rlm_sql" is NOT an SQL driver!
Mon Feb 25 23:05:47 2008 : Error: radiusd.conf[14]: sql: Module instantiation failed.

Anything that's missing hence such a file doesn't exist?

Brian1 02-26-2008 03:24 PM

Maybe posting the orginal portion of the config files with the portion you changed it might make since to the issue.

Brian

saman 03-05-2008 09:19 AM

Hi Brian,

sorry for late replying. here the changes

$/usr/raddb/sql.conf

sql {

# Database type
# Current supported are: rlm_sql_mysql, rlm_sql_postgresql,
# rlm_sql_iodbc, rlm_sql_oracle, rlm_sql_unixodbc, rlm_sql_freetds
driver = "/usr/local/lib/lib/rlm_sql_mysql"

I had tried to put the driver in
/usr/share/doc/freeradius-1.0.0/
/usr/share/doc/radiusd/src/modules/rlm_sql/drivers/

all above got the same error.

then I installed all of 14 applications in MySQl, even try to upgrade to freeradius 2.0.2 or MySQL 5 but still no luck.

Red Hat ready a mess..very hard to find a file and alway different the others.

Here the some comment from http://wiki.freeradius.org/index.php/FAQ

It says "Could not link ... file not found", what do I do?

You may see an error message like the one below, when you try to run the server:

Module: Loaded SQL rlm_sql: Could not link driver rlm_sql_mysql: file not found rlm_sql: Make sure it (and all its dependent libraries!) are in the search path of your system's ld. radiusd.conf[50]: sql: Module instantiation failed.

There are only a few things that can be happening:

1) The 'mysql_config' cannot be found in $PATH. Try running "./configure | grep mysql_config" and see if you get the follows:

checking for mysql_config... no
configure: WARNING: mysql libraries not found. Use --with-mysql-lib-dir=<path>.
configure: WARNING: sql submodule 'mysql' disabled

If it is, simply do something like "export $PATH=$PATH:/usr/local/mysql/bin" and "./configure | grep mysql_config" again to make sure you get:

checking for mysql_config... yes

Then you should run "make;make install" again.

2) You put shared libraries into a place where your linker cannot find them.

Everyone blames FreeRADIUS because it's the one printing the error message. But it just gets the error message from your linker.

3) You don't have static libraries for SQL clients on your system. So doing "./configure --disable-shared;make" doesn't help.

The 'make' process WILL print out error messages saying it's creating a static library which links to a dynamic one. If your linker is misconfigured (see #1), then FreeRADIUS still won't work.

So you probably ignored the error/warning messages produced during the 'make' stage. That's bad.

And libtool still does dynamic linking when told to do static linking, instead of failing to do the build. It should be taken out and shot.


There is nothing you can do to FreeRADIUS to fix issues with non-FreeRADIUS shared libraries. Fix your SQL libraries so that:

a) your linker can find them

or

b) There are static versions of those libraries available.


You can use the LD_LIBRARY_PATH environment variable in a script which starts the server, to set the paths where these libraries may be found.

One some systems, you can edit /etc/ld.so.conf, ('man ld.so', or 'man ldconfig'), and add the directory containing the dynamic libraries to that list.

See also the 'libdir' configuration directive in the 'radiusd.conf' file which is distributed with the server. It contains additional information.

If none of these solutions work, then your ONLY option is to build FreeRADIUS without dynamic libraries. This may be done via:

./configure --disable-shared
make
make install

Please READ the messages produced during the 'make' and 'make install' stages. While there is a lot of text to wade through, these messages may be the ONLY source of information as to what's wrong your system.
[edit]
I see only one radiusd in the process list. What is wrong?

If you have configured FreeRADIUS to use threads, then nothing is wrong. Newer Linux kernels / procps utilities report one thread by default. You can execute ps in the following ways to see all threads:

For older versions of ps / kernel (2.4), use:

* ps -efm
* ps auxm

For newer versions of ps / kernel (2.6+), you may prefer to use:

* ps -efL
* ps auxH

[edit]

I could not find LD_LIBRARY_PATH.
$env | grep LD ---- return nothing.

Other changes
$/usr/raddb/radiusd.conf
libdir = /usr/lib:/usr/local/lib:/usr/share/doc/freeradius-1.0.2:/usr/share/doc/radiusd/src/modules/rlm_sql/drivers

still no out come.

Ready no idea what should I do anymore. It's like dead end!

Paris Heng 03-07-2008 02:13 AM

I also having the problem in running the FreeRADIUS, after is run the radiusd -X, i get the following lines in the output terminal. Please assist. I just installed the radius server and i never configure anything on any config files. What does it mean by the error on port 1812? Do I have to set it?


Quote:

ERROR: Failed to open socket:
/usr/local/etc/raddb/radiusd.conf[210]: Error binding to port for 0.0.0.0 port 1812

acid_kewpie 03-07-2008 03:19 AM

Please don't hijack other peoples threads. new question = new thread.

danilom 03-09-2008 10:21 PM

from this "Could not link driver rlm_sql_mysql: file not found rlm_sql"

it is obvious that you are missing a freeradius-mysql package...
just find the right version of the package (as I see you are using a very old version 1.0.1 try to update to at least 1.1.7 while you are at it)and install it... its 17kB file :)

saman 03-11-2008 09:14 AM

I had installed CVS 2.0.2 by running such command
#cvs -d:pserver:anoncvs@cvs.freeradius.org:/source login
....
then
#./configure --with-openssl-includes=/usr/include/openssl --with-openssl-libraries=/usr/lib/libxm --with-prefix=/usr/local/radius

#make
#make install

Everything seems fine but one thing that I have no idea where to exec radiusd -X.Where should I run such command after install it?

Am I install the correct freeradius because as I know there is one more version called "stable-snapshot".

danilom 03-13-2008 05:57 PM

Yes you installed it but becouse you didnt use let say "yum install freeradius" the dependencies were not resolved most probably as well as the mysql package was not installed. you can run radius -x when you login as root

saman 03-14-2008 10:22 AM

Hi danilom,
I try to execute it in /usr/local/var/run/radiusd/radiusd -X under root..no luck..then in /usr/local/radius/var/run/radiusd/radiusd -X...command not found.
When I looked inside the folder, there is not radiusd.pid file.
What should I do?

danilom 03-14-2008 06:44 PM

Log in just like root (not with su) and you would be able to run radiusd -x from any place. I start it like that in Fedora 8 and Trustix.

saman 03-15-2008 12:15 AM

ok..I run in root a/c
radiusd: error while loading shared libraries: libradius-1.1.7.so: cannot open shared object file: No such file or directory

do I have to install "libtool" to solve the problem or any other solutions?


All times are GMT -5. The time now is 11:51 AM.