radwho and radlast error (was libradius error)
Nicolas Baradakis wrote: Roberto Greiner wrote: I've tried another way, setting 'LD_LIBRARY_PATH=/usr/lib/freeradius/', but now I'm getting a new error: ibatubi:/etc# radwho Wed Apr 25 09:58:08 2007 : Error: Unable to open file /usr/local/etc/raddb/radiusd.conf: No such file or directory radwho: Error reading radiusd.conf. This isn't the path set by dpkg-buildpackage during the build. Please run which radwho to double check you aren't running a binary from an older installation. I guess you have two binaries in /usr/bin/radwho and /usr/local/bin/radwho. Actually yes. I found that there really was an old radwho. I uninstalled everything and cleaned the system properly before reinstalling again using the new packages. But radwho is still giving me an error: ibatubi:~# radwho radwho: Error reading /var/log/freeradius/radutmp: No such file or directory In that path, there are only the radacct folder, radius.log and radwtmp. In radius.conf I did the following modifications: Line 296 log_auth = yes Line 650 unix { .. # shadow = /etc/shadow } Lines 1848 and 1859 Authorize { . # eap sql Line 1946 Authenticate { . # unix Line 1987 preacct { # files } Line 2021 accounting { . sql ... } Lines 2039-2043 session { # radutmp sql } The rest of the radius.conf file was left as installed. The radius server itself is working fine. Basides the radwho error, radlast is also not working. It doesn't give any error messages, but the connected users do not appear. Did I mess it with any of the config lines above? ibatubi:/etc# radlast radwtmp begins Fri May 4 10:22:15 2007 Thank you for your help, Marcos Roberto Greiner -- - Marcos Roberto Greiner Os otimistas acham que estamos no melhor dos mundos Os pessimistas tem medo de que isto seja verdade Murphy - - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
Re: radwho and radlast error (was libradius error)
Ok, I found the error. Actually, there was no error. Just me is moron. :-p Thank you very much and good weekend for everybody Roberto Roberto Greiner wrote: Nicolas Baradakis wrote: Roberto Greiner wrote: I've tried another way, setting 'LD_LIBRARY_PATH=/usr/lib/freeradius/', but now I'm getting a new error: ibatubi:/etc# radwho Wed Apr 25 09:58:08 2007 : Error: Unable to open file /usr/local/etc/raddb/radiusd.conf: No such file or directory radwho: Error reading radiusd.conf. This isn't the path set by dpkg-buildpackage during the build. Please run which radwho to double check you aren't running a binary from an older installation. I guess you have two binaries in /usr/bin/radwho and /usr/local/bin/radwho. Actually yes. I found that there really was an old radwho. I uninstalled everything and cleaned the system properly before reinstalling again using the new packages. But radwho is still giving me an error: ibatubi:~# radwho radwho: Error reading /var/log/freeradius/radutmp: No such file or directory In that path, there are only the radacct folder, radius.log and radwtmp. In radius.conf I did the following modifications: Line 296 log_auth = yes Line 650 unix { .. # shadow = /etc/shadow } Lines 1848 and 1859 Authorize { . # eap sql Line 1946 Authenticate { . # unix Line 1987 preacct { # files } Line 2021 accounting { . sql ... } Lines 2039-2043 session { # radutmp sql } The rest of the radius.conf file was left as installed. The radius server itself is working fine. Basides the radwho error, radlast is also not working. It doesn't give any error messages, but the connected users do not appear. Did I mess it with any of the config lines above? ibatubi:/etc# radlast radwtmp begins Fri May 4 10:22:15 2007 Thank you for your help, Marcos Roberto Greiner -- - Marcos Roberto Greiner Os otimistas acham que estamos no melhor dos mundos Os pessimistas tem medo de que isto seja verdade Murphy - - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
Re: libradius error
Roberto Greiner wrote: I've tried another way, setting 'LD_LIBRARY_PATH=/usr/lib/freeradius/', but now I'm getting a new error: ibatubi:/etc# radwho Wed Apr 25 09:58:08 2007 : Error: Unable to open file /usr/local/etc/raddb/radiusd.conf: No such file or directory radwho: Error reading radiusd.conf. This isn't the path set by dpkg-buildpackage during the build. Please run which radwho to double check you aren't running a binary from an older installation. I guess you have two binaries in /usr/bin/radwho and /usr/local/bin/radwho. -- Nicolas Baradakis - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
Re: libradius error
Alan DeKok wrote: Roberto Greiner wrote: When I give a 'radwho' command, I receive the following error: radwho: error while loading shared libraries: libradius-1.1.6.so: cannot open shared object file: No such file or directory Try doing: ldd radwho ibatubi:~# ldd /usr/bin/radwho libnsl.so.1 = /lib/tls/i686/cmov/libnsl.so.1 (0xb7f25000) libresolv.so.2 = /lib/tls/i686/cmov/libresolv.so.2 (0xb7f12000) libpthread.so.0 = /lib/tls/i686/cmov/libpthread.so.0 (0xb7eff000) libradius-1.1.6.so = /usr/lib/freeradius/libradius-1.1.6.so (0xb7ee8000) libc.so.6 = /lib/tls/i686/cmov/libc.so.6 (0xb7db7000) /lib/ld-linux.so.2 (0xb7f43000) libcrypt.so.1 = /lib/tls/i686/cmov/libcrypt.so.1 (0xb7d89000) ibatubi:~# radwho radwho: error while loading shared libraries: libradius-1.1.6.so: cannot open shared object file: No such file or directory ibatubi:~# locate libradius-1.1.6.so /usr/lib/freeradius/libradius-1.1.6.so If I understood it correctly, radwho is looking at the correct place. I've tried to uninstall everything again, checking if that library was removed (it was), and then reinstalling. The error remains. Any ideas? The mentioned libradius file is in /usr/lib/freeradius Hmm... that's likely the issue. The dynamic linker doesn't know about /usr/lib/freeradius, and radwho isnt' smart enough to read the config files set up libdir appropriately. Hmmm, I suppose that I should then compile it with static libraries, right? What would be the appropriate way to do it? The wiki only has the default way, and I couldn't find info in 'man dpkg-buildpackage' about it. Thank you very much, Marcos Roberto Greiner -- - Marcos Roberto Greiner Os otimistas acham que estamos no melhor dos mundos Os pessimistas tem medo de que isto seja verdade Murphy - - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
Re: libradius error
Roberto Greiner wrote: The impression I get is that there was something wrong in the configs for radwho when it was compiled by dpkg-buildpackage instead of using the standard configure/make/make install. Looks like that's the case, yes. 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
libradius error
Hi, I'm having a small problem with radwho/libradius. When I give a 'radwho' command, I receive the following error: radwho: error while loading shared libraries: libradius-1.1.6.so: cannot open shared object file: No such file or directory I've installed FreeRadius following the guidelines for Debian from de wiki, including mysql support. FreeRadius itself works fine, as does access to the mysql base. The mentioned libradius file is in /usr/lib/freeradius, and the radius.conf file has the following entry(it's the pre-installed entry, I didn't change it): libdir = /usr/lib/freeradius So freeradius should find the library file. I'm running FreeRadius version 1.1.6, in a fresh Debian Etch install. Any Ideas? Thank you very much, Marcos Roberto Greiner The -x entry from freeradius is the following (although, as I said, FreeRadius itself works fine). Starting - reading configuration files ... Using deprecated naslist file. Support for this will go away soon. Module: Loaded exec rlm_exec: Wait=yes but no output defined. Did you mean output=none? Module: Instantiated exec (exec) Module: Loaded expr Module: Instantiated expr (expr) Module: Loaded PAP Module: Instantiated pap (pap) Module: Loaded CHAP Module: Instantiated chap (chap) Module: Loaded MS-CHAP Module: Instantiated mschap (mschap) Module: Loaded eap rlm_eap: Loaded and initialized type md5 rlm_eap: Loaded and initialized type leap rlm_eap: Loaded and initialized type gtc rlm_eap: Loaded and initialized type mschapv2 Module: Instantiated eap (eap) Module: Loaded preprocess Module: Instantiated preprocess (preprocess) Module: Loaded realm Module: Instantiated realm (suffix) Module: Loaded files Module: Instantiated files (files) Module: Loaded SQL rlm_sql (sql): Driver rlm_sql_mysql (module rlm_sql_mysql) loaded and linked rlm_sql (sql): Attempting to connect to [EMAIL PROTECTED]:/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=local,secret=foobar rlm_sql (sql): Adding client 127.0.0.1 (local) to clients list rlm_sql (sql): Read entry nasname=a.b.c.d,shortname=xxx,secret=s3mf!o/ rlm_sql (sql): Adding client a.b.c.d (xxx) to clients list rlm_sql (sql): Read entry Cut = more entries from the nas table in mysql rlm_sql (sql): Released sql socket id: 4 Module: Instantiated sql (sql) Module: Loaded Acct-Unique-Session-Id Module: Instantiated acct_unique (acct_unique) Module: Loaded detail Module: Instantiated detail (detail) Module: Loaded System Module: Instantiated unix (unix) Module: Loaded radutmp Module: Instantiated radutmp (radutmp) Initializing the thread pool... Listening on authentication *:1812 Listening on accounting *:1813 Ready to process requests. -- - Marcos Roberto Greiner Os otimistas acham que estamos no melhor dos mundos Os pessimistas tem medo de que isto seja verdade Murphy - - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
Re: libradius error
Roberto Greiner wrote: When I give a 'radwho' command, I receive the following error: radwho: error while loading shared libraries: libradius-1.1.6.so: cannot open shared object file: No such file or directory Try doing: ldd radwho The mentioned libradius file is in /usr/lib/freeradius Hmm... that's likely the issue. The dynamic linker doesn't know about /usr/lib/freeradius, and radwho isnt' smart enough to read the config files set up libdir appropriately. 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