Trouble with Freeradius 1.1.1 built with FreeBSD ports on 4.11

2006-05-21 Thread Mark Hennessy
I have just built Freeradius 1.1.1 with ports on a FreeBSD machine that was
previously running 0.9.3.  I had to get rid of the old ltdl libs and headers
before Freeradius 1.1.1 was able to built fully (it would die at rlm_eap
before I did that).  Now, whenever I try to start it, I get as far as the
below attached debug output and end with a Bus Error.

Is there anything else I can do to provide more info as to what could be
causing this issue?

What should I check next?

The machine is running FreeBSD 4.11 with MySQL 5.0.20a built with Jeremy
Zawodny's script for LinuxThreads.

--
 Mark Hennessy

Here is the debug output using radiusd -sfxxyz -l stdout :

Starting - reading configuration files ...
reread_config:  reading radiusd.conf
Config:   including file: /usr/local/etc/raddb/clients.conf
Config:   including file: /usr/local/etc/raddb/snmp.conf
Config:   including file: /usr/local/etc/raddb/sql.conf
 main: prefix = /usr/local
 main: localstatedir = /var
 main: logdir = /var/log
 main: libdir = /usr/local/lib
 main: radacctdir = /var/log/radacct
 main: hostname_lookups = no
 main: max_request_time = 30
 main: cleanup_delay = 5
 main: max_requests = 1024
 main: delete_blocked_requests = 0
 main: port = 1645
 main: allow_core_dumps = no
 main: log_stripped_names = yes
 main: log_file = /var/log/radius.log
 main: log_auth = no
 main: log_auth_badpass = no
 main: log_auth_goodpass = no
 main: pidfile = /var/run/radiusd/radiusd.pid
 main: bind_address = 192.168.1.3 IP address [192.168.1.3]
 main: user = (null)
 main: group = (null)
 main: usercollide = no
 main: lower_user = after
 main: lower_pass = no
 main: nospace_user = after
 main: nospace_pass = after
 main: checkrad = /usr/local/sbin/checkrad
 main: proxy_requests = no
 security: max_attributes = 200
 security: reject_delay = 1
 security: status_server = no
 main: debug_level = 0
read_config_files:  reading dictionary
read_config_files:  reading naslist
read_config_files:  reading clients
read_config_files:  reading realms
radiusd:  entering modules setup
Module: Library search path is /usr/local/lib
Module: Loaded System
 unix: cache = no
 unix: passwd = (null)
 unix: shadow = (null)
 unix: group = (null)
 unix: radwtmp = /var/log/radwtmp
 unix: usegroup = no
 unix: cache_reload = 600
Module: Instantiated unix (unix)
Module: Loaded PAP
 pap: encryption_scheme = crypt
Module: Instantiated pap (pap)
Module: Loaded preprocess
 preprocess: huntgroups = /usr/local/etc/raddb/huntgroups
 preprocess: hints = /usr/local/etc/raddb/hints
 preprocess: with_ascend_hack = no
 preprocess: ascend_channels_per_line = 23
 preprocess: with_ntdomain_hack = yes
 preprocess: with_specialix_jetstream_hack = no
 preprocess: with_cisco_vsa_hack = no
Module: Instantiated preprocess (preprocess)
Module: Loaded realm
 realm: format = suffix
 realm: delimiter = @
 realm: ignore_default = no
 realm: ignore_null = no
Module: Instantiated realm (suffix)
Module: Loaded SQL
 sql: driver = rlm_sql_mysql
 sql: server = localhost
 sql: port = 
 sql: login = freeradius
 sql: password = bogus
 sql: radius_db = freeradius
 sql: acct_table = radacct
 sql: acct_table2 = radacct
 sql: authcheck_table = radcheck
 sql: authreply_table = radreply
 sql: groupcheck_table = radgroupcheck
 sql: groupreply_table = radgroupreply
 sql: usergroup_table = usergroup
 sql: nas_table = nas
 sql: dict_table = dictionary
 sql: sqltrace = no
 sql: sqltracefile = /var/log/sqltrace.sql
 sql: readclients = no
 sql: deletestalesessions = yes
 sql: num_sql_socks = 50
 sql: sql_user_name = %{Stripped-User-Name:-%{User-Name:-none}}
 sql: default_user_profile = 
 sql: query_on_not_found = no
 sql: authorize_check_query = SELECT id,UserName,Attribute,Value,op FROM
radcheck WHERE Username = '%{SQL-User-Name}' ORDER BY id
 sql: authorize_reply_query = SELECT id,UserName,Attribute,Value,op FROM
radreply WHERE Username = '%{SQL-User-Name}' ORDER BY id
 sql: authorize_group_check_query = SELECT
radgroupcheck.id,radgroupcheck.GroupName,radgroupcheck.Attribute,radgroupchec
k.Value,radgroupcheck.op  FROM radgroupcheck,usergroup WHERE
usergroup.Username = '%{SQL-User-Name}' AND usergroup.GroupName =
radgroupcheck.GroupName ORDER BY radgroupcheck.id
 sql: authorize_group_reply_query = SELECT
radgroupreply.id,radgroupreply.GroupName,radgroupreply.Attribute,radgrouprepl
y.Value,radgroupreply.op  FROM radgroupreply,usergroup WHERE
usergroup.Username = '%{SQL-User-Name}' AND usergroup.GroupName =
radgroupreply.GroupName ORDER BY radgroupreply.id
 sql: accounting_onoff_query = UPDATE radacct SET AcctStopTime='%S',
AcctSessionTime=unix_timestamp('%S') - unix_timestamp(AcctStartTime),
AcctTerminateCause='%{Acct-Terminate-Cause}', AcctStopDelay =
%{Acct-Delay-Time} WHERE AcctSessionTime=0 AND AcctStopTime=0 AND
NASIPAddress= '%{NAS-IP-Address}' AND AcctStartTime = '%S'
 sql: accounting_update_query = UPDATE radacct SET FramedIPAddress =
'%{Framed-IP-Address}' WHERE AcctSessionId = '%{Acct-Session-Id}' AND
UserName = '%{SQL-User-Name

Re: Trouble with Freeradius 1.1.1 built with FreeBSD ports on 4.11

2006-05-21 Thread Mark Hennessy
Hi Mark,

 sql: postauth_table = radpostauth
 sql: postauth_query = 
 sql: safe-characters =
 @abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789.-_: /
 Bus error

I went through the same thing not to long ago.

Compile FreeRadius without thread support (--without-threads), and make sure

Perl does not have threads support either...   That solved my issues.

It would seem that there are *still* threading issues with FreeRadius on 
FreeBSD...

--
Chris.

Thanks!  I wonder if the ports collection people should perhaps make a rule
in the Makefile to catch that for any remaining 4.x users.

--
 Mark Hennessy

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


Compiling freeradius 1.1.1 in FreeBSD 6.0 with mysql support

2006-04-05 Thread Mark Hennessy
I'm trying to build freeradius 1.1.1 on a FreeBSD 6.0 system with MySQL
4.1.15

I'm using the following configure commandline:
./configure --with-mysql-lib=/usr/local/mysql/lib/mysql
--with-mysql-include=/usr/local/mysql/include/mysql
--prefix=/usr/local/adm/freeradius-1.1.1

I'd include the full output, but I figure that I should only do that if
asked.
Here's the problematic section:

configuring in ./drivers/rlm_sql_mysql
running /bin/sh ./configure  --with-mysql-lib-dir=/usr/local/mysql/lib/mysql
--with-mysql-include-dir=/usr/local/mysql/include/mysql
--prefix=/usr/local/adm/freeradius-1.1.1 --enable-ltdl-install
--enable-ltdl-install --cache-file=../../../../.././config.cache --srcdir=.
loading cache ../../../../.././config.cache
checking for gcc... (cached) gcc
checking whether the C compiler (gcc -g -O2 -D_REENTRANT
-D_POSIX_PTHREAD_SEMANTICS -Wall -D_GNU_SOURCE -DNDEBUG ) works... yes
checking whether the C compiler (gcc -g -O2 -D_REENTRANT
-D_POSIX_PTHREAD_SEMANTICS -Wall -D_GNU_SOURCE -DNDEBUG ) is a
cross-compiler... no
checking whether we are using GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for mysql_config... (cached) yes
checking for pthread_create in -lpthread... (cached) yes
checking for mysql_init in -lmysqlclient_r (using mysql_config)... no
checking for mysql_init in -lmysqlclient_r... no
configure: warning: mysql libraries not found. Use
--with-mysql-lib-dir=path.
checking for mysql.h (using mysql_config)... yes
configure: warning: sql submodule 'mysql' disabled
updating cache ../../../../.././config.cache
creating ./config.status
creating Makefile
creating config.h
config.h is unchanged

It's not seeing mysql libraries, but they do indeed exist:
# ls -al /usr/local/mysql/lib/mysql
total 1974
drwxr-xr-x  2 root  wheel 512 Apr  5 10:39 .
drwxr-xr-x  3 root  wheel 512 Apr  5 10:39 ..
-rw-r--r--  1 root  wheel   14446 Apr  5 10:39 libdbug.a
-rw-r--r--  1 root  wheel   41928 Apr  5 10:39 libheap.a
-rw-r--r--  1 root  wheel   13640 Apr  5 10:39 libmerge.a
-rw-r--r--  1 root  wheel  331488 Apr  5 10:39 libmyisam.a
-rw-r--r--  1 root  wheel   24934 Apr  5 10:39 libmyisammrg.a
-rw-r--r--  1 root  wheel  472466 Apr  5 10:39 libmysqlclient.a
-rwxr-xr-x  1 root  wheel 871 Apr  5 10:39 libmysqlclient.la
lrwxr-xr-x  1 root  wheel  20 Apr  5 10:39 libmysqlclient.so -
libmysqlclient.so.14
-rwxr-xr-x  1 root  wheel  387482 Apr  5 10:39 libmysqlclient.so.14
-rw-r--r--  1 root  wheel  237570 Apr  5 10:39 libmystrings.a
-rw-r--r--  1 root  wheel  253852 Apr  5 10:39 libmysys.a
-rw-r--r--  1 root  wheel  105640 Apr  5 10:39 libnisam.a
-rw-r--r--  1 root  wheel5472 Apr  5 10:39 libvio.a

# ls -al /usr/local/mysql/include/mysql
total 288
drwxr-xr-x  2 root  wheel   1024 Apr  5 10:39 .
drwxr-xr-x  3 root  wheel512 Apr  5 10:39 ..
-rw-r--r--  1 root  wheel   3428 Apr  5 10:39 errmsg.h
-rw-r--r--  1 root  wheel   6778 Apr  5 10:39 keycache.h
-rw-r--r--  1 root  wheel  17899 Apr  5 10:39 m_ctype.h
-rw-r--r--  1 root  wheel   8085 Apr  5 10:39 m_string.h
-rw-r--r--  1 root  wheel   1859 Apr  5 10:39 my_alloc.h
-rw-r--r--  1 root  wheel  28650 Apr  5 10:39 my_config.h
-rw-r--r--  1 root  wheel   3463 Apr  5 10:39 my_dbug.h
-rw-r--r--  1 root  wheel   3509 Apr  5 10:39 my_dir.h
-rw-r--r--  1 root  wheel   3000 Apr  5 10:39 my_getopt.h
-rw-r--r--  1 root  wheel  39298 Apr  5 10:39 my_global.h
-rw-r--r--  1 root  wheel   1515 Apr  5 10:39 my_list.h
-rw-r--r--  1 root  wheel   3588 Apr  5 10:39 my_net.h
-rw-r--r--  1 root  wheel   1245 Apr  5 10:39 my_no_pthread.h
-rw-r--r--  1 root  wheel  24387 Apr  5 10:39 my_pthread.h
-rw-r--r--  1 root  wheel   1784 Apr  5 10:39 my_semaphore.h
-rw-r--r--  1 root  wheel  32346 Apr  5 10:39 my_sys.h
-rw-r--r--  1 root  wheel   2007 Apr  5 10:39 my_xml.h
-rw-r--r--  1 root  wheel  27615 Apr  5 10:39 mysql.h
-rw-r--r--  1 root  wheel  15028 Apr  5 10:39 mysql_com.h
-rw-r--r--  1 root  wheel   1241 Apr  5 10:39 mysql_embed.h
-rw-r--r--  1 root  wheel   2184 Apr  5 10:39 mysql_time.h
-rw-r--r--  1 root  wheel781 Apr  5 10:39 mysql_version.h
-rw-r--r--  1 root  wheel  11315 Apr  5 10:39 mysqld_error.h
-rw-r--r--  1 root  wheel   5841 Apr  5 10:39 raid.h
-rw-r--r--  1 root  wheel   6499 Apr  5 10:39 readline.h
-rw-r--r--  1 root  wheel   1751 Apr  5 10:39 sql_common.h
-rw-r--r--  1 root  wheel   6401 Apr  5 10:39 sql_state.h
-rw-r--r--  1 root  wheel   1055 Apr  5 10:39 sslopt-case.h
-rw-r--r--  1 root  wheel   1883 Apr  5 10:39 sslopt-longopts.h
-rw-r--r--  1 root  wheel970 Apr  5 10:39 sslopt-vars.h
-rw-r--r--  1 root  wheel   1265 Apr  5 10:39 typelib.h

I'm thoroughly perplexed.  What should I try next?

--
 Mark Hennessy

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


RE: Compiling freeradius 1.1.1 in FreeBSD 6.0 with mysql support

2006-04-05 Thread Mark Hennessy
I'm sorry, I did indeed use the following commandline:
./configure --with-mysql-lib-dir=/usr/local/mysql/lib/mysql
--with-mysql-include-dir=/usr/local/mysql/include/mysql
--prefix=/usr/local/adm/freeradius-1.1.1

and got the same results below.

--
 Mark Hennessy

 -Original Message-
 From: 
 [EMAIL PROTECTED]
 .org 
 [mailto:[EMAIL PROTECTED]
 eeradius.org] On Behalf Of Mark Hennessy
 Sent: Wednesday, April 05, 2006 12:50 PM
 To: freeradius-users@lists.freeradius.org
 Subject: Compiling freeradius 1.1.1 in FreeBSD 6.0 with mysql support
 
 I'm trying to build freeradius 1.1.1 on a FreeBSD 6.0 system 
 with MySQL
 4.1.15
 
 I'm using the following configure commandline:
 ./configure --with-mysql-lib=/usr/local/mysql/lib/mysql
 --with-mysql-include=/usr/local/mysql/include/mysql
 --prefix=/usr/local/adm/freeradius-1.1.1
 
 I'd include the full output, but I figure that I should only 
 do that if
 asked.
 Here's the problematic section:
 
 configuring in ./drivers/rlm_sql_mysql
 running /bin/sh ./configure  
 --with-mysql-lib-dir=/usr/local/mysql/lib/mysql
 --with-mysql-include-dir=/usr/local/mysql/include/mysql
 --prefix=/usr/local/adm/freeradius-1.1.1 --enable-ltdl-install
 --enable-ltdl-install 
 --cache-file=../../../../.././config.cache --srcdir=.
 loading cache ../../../../.././config.cache
 checking for gcc... (cached) gcc
 checking whether the C compiler (gcc -g -O2 -D_REENTRANT
 -D_POSIX_PTHREAD_SEMANTICS -Wall -D_GNU_SOURCE -DNDEBUG ) works... yes
 checking whether the C compiler (gcc -g -O2 -D_REENTRANT
 -D_POSIX_PTHREAD_SEMANTICS -Wall -D_GNU_SOURCE -DNDEBUG ) is a
 cross-compiler... no
 checking whether we are using GNU C... (cached) yes
 checking whether gcc accepts -g... (cached) yes
 checking for mysql_config... (cached) yes
 checking for pthread_create in -lpthread... (cached) yes
 checking for mysql_init in -lmysqlclient_r (using mysql_config)... no
 checking for mysql_init in -lmysqlclient_r... no
 configure: warning: mysql libraries not found. Use
 --with-mysql-lib-dir=path.
 checking for mysql.h (using mysql_config)... yes
 configure: warning: sql submodule 'mysql' disabled
 updating cache ../../../../.././config.cache
 creating ./config.status
 creating Makefile
 creating config.h
 config.h is unchanged
 
 It's not seeing mysql libraries, but they do indeed exist:
 # ls -al /usr/local/mysql/lib/mysql
 total 1974
 drwxr-xr-x  2 root  wheel 512 Apr  5 10:39 .
 drwxr-xr-x  3 root  wheel 512 Apr  5 10:39 ..
 -rw-r--r--  1 root  wheel   14446 Apr  5 10:39 libdbug.a
 -rw-r--r--  1 root  wheel   41928 Apr  5 10:39 libheap.a
 -rw-r--r--  1 root  wheel   13640 Apr  5 10:39 libmerge.a
 -rw-r--r--  1 root  wheel  331488 Apr  5 10:39 libmyisam.a
 -rw-r--r--  1 root  wheel   24934 Apr  5 10:39 libmyisammrg.a
 -rw-r--r--  1 root  wheel  472466 Apr  5 10:39 libmysqlclient.a
 -rwxr-xr-x  1 root  wheel 871 Apr  5 10:39 libmysqlclient.la
 lrwxr-xr-x  1 root  wheel  20 Apr  5 10:39 libmysqlclient.so -
 libmysqlclient.so.14
 -rwxr-xr-x  1 root  wheel  387482 Apr  5 10:39 libmysqlclient.so.14
 -rw-r--r--  1 root  wheel  237570 Apr  5 10:39 libmystrings.a
 -rw-r--r--  1 root  wheel  253852 Apr  5 10:39 libmysys.a
 -rw-r--r--  1 root  wheel  105640 Apr  5 10:39 libnisam.a
 -rw-r--r--  1 root  wheel5472 Apr  5 10:39 libvio.a
 
 # ls -al /usr/local/mysql/include/mysql
 total 288
 drwxr-xr-x  2 root  wheel   1024 Apr  5 10:39 .
 drwxr-xr-x  3 root  wheel512 Apr  5 10:39 ..
 -rw-r--r--  1 root  wheel   3428 Apr  5 10:39 errmsg.h
 -rw-r--r--  1 root  wheel   6778 Apr  5 10:39 keycache.h
 -rw-r--r--  1 root  wheel  17899 Apr  5 10:39 m_ctype.h
 -rw-r--r--  1 root  wheel   8085 Apr  5 10:39 m_string.h
 -rw-r--r--  1 root  wheel   1859 Apr  5 10:39 my_alloc.h
 -rw-r--r--  1 root  wheel  28650 Apr  5 10:39 my_config.h
 -rw-r--r--  1 root  wheel   3463 Apr  5 10:39 my_dbug.h
 -rw-r--r--  1 root  wheel   3509 Apr  5 10:39 my_dir.h
 -rw-r--r--  1 root  wheel   3000 Apr  5 10:39 my_getopt.h
 -rw-r--r--  1 root  wheel  39298 Apr  5 10:39 my_global.h
 -rw-r--r--  1 root  wheel   1515 Apr  5 10:39 my_list.h
 -rw-r--r--  1 root  wheel   3588 Apr  5 10:39 my_net.h
 -rw-r--r--  1 root  wheel   1245 Apr  5 10:39 my_no_pthread.h
 -rw-r--r--  1 root  wheel  24387 Apr  5 10:39 my_pthread.h
 -rw-r--r--  1 root  wheel   1784 Apr  5 10:39 my_semaphore.h
 -rw-r--r--  1 root  wheel  32346 Apr  5 10:39 my_sys.h
 -rw-r--r--  1 root  wheel   2007 Apr  5 10:39 my_xml.h
 -rw-r--r--  1 root  wheel  27615 Apr  5 10:39 mysql.h
 -rw-r--r--  1 root  wheel  15028 Apr  5 10:39 mysql_com.h
 -rw-r--r--  1 root  wheel   1241 Apr  5 10:39 mysql_embed.h
 -rw-r--r--  1 root  wheel   2184 Apr  5 10:39 mysql_time.h
 -rw-r--r--  1 root  wheel781 Apr  5 10:39 mysql_version.h
 -rw-r--r--  1 root  wheel  11315 Apr  5 10:39 mysqld_error.h
 -rw-r--r--  1 root  wheel   5841 Apr  5 10:39 raid.h
 -rw-r--r--  1 root  wheel   6499 Apr  5 10:39 readline.h
 -rw-r--r--  1 root  wheel   1751 Apr  5 10:39 sql_common.h
 -rw-r--r--  1

RE: Compiling freeradius 1.1.1 in FreeBSD 6.0 with mysql support

2006-04-05 Thread Mark Hennessy
/usr/local/src/freeradius-1.1.1/src/modules/rlm_sql/drivers/rlm_sql_mysql/con
fig.log:
...
/usr/bin/ld: cannot find -lmysqlclient_r
...

Why would that happen if everything is where I tell configure it should be?

--
 Mark Hennessy


 -Original Message-
 From: 
 [EMAIL PROTECTED]
 .org 
 [mailto:[EMAIL PROTECTED]
 eeradius.org] On Behalf Of Alan DeKok
 Sent: Wednesday, April 05, 2006 1:08 PM
 To: FreeRadius users mailing list
 Subject: Re: Compiling freeradius 1.1.1 in FreeBSD 6.0 with 
 mysql support 
 
 Mark Hennessy [EMAIL PROTECTED] wrote:
  I'm trying to build freeradius 1.1.1 on a FreeBSD 6.0 
 system with MySQL
  4.1.15
 
   Doesn't the ports system work?
 
  checking for mysql_init in -lmysqlclient_r (using 
 mysql_config)... no
 
   See the config.log for details.  Maybe libmysqlclient_r needs
 additional libraries for it to work.
 
   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: segmentation fault 1.0.1/suse 9.1

2004-09-29 Thread Mark Hennessy
I may have seen something similar.  I have FreeBSD 4.10 with gcc 2.95.4, and
I am trying to migrate from freeradius 0.9.3 to 1.0.1 but I get this segfault
at about the same point in startup when running in debug mode too.  When not
in debug mode, the daemon just starts and hangs.  I have provided gdb debug
info for this in a previous thread but it was for 1.0.0.

--
 Mark Hennessy
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
[EMAIL PROTECTED]
Sent: Wednesday, September 29, 2004 8:43 AM
To: [EMAIL PROTECTED]
Subject: segmentation fault 1.0.1/suse 9.1

I can't seem to get beyond this problem -- and it is
strange since I am simply moving from one server to
another. Both are SuSE 9.1 and yet it works on one, but not
on the second. Of course, I am cheating and copying all
files over. Although I have fully recompiled freeradius
1.0.1

Any suggestions??

From radiusd -X

Module: Instantiated radutmp (radutmp)
Listening on authentication *:1812
Listening on accounting *:1813
Ready to process requests.
rad_recv: Access-Request packet from host 10.10.10.10:1645,
id=182, length=126
User-Name = xyzzy
Framed-MTU = 1400
Called-Station-Id = 000f.3489.1a8c
Calling-Station-Id = 000d.ed49.e870
Message-Authenticator =
0x23b03a4e7bc400b704df8aa1eeed59f8
EAP-Message = 0x0201000a01716c6f636f
NAS-Port-Type = Virtual
NAS-Port = 399
NAS-IP-Address = 10.10.10.10
NAS-Identifier = W117_8A.ATL
  Processing the authorize section of radiusd.conf
modcall: entering group authorize for request 0
Segmentation fault

- 
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: Segmentation Fault on freeradius 1.0.0

2004-09-23 Thread Mark Hennessy
I do, but I have the various builds isolated from each other in their own
trees.
I tried renaming the old tree (0.9.3) and zeroing out its permissions but I
still get that segfault.  I even get it with this build of 1.0.1 I did just
now.

--
 Mark Hennessy
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Alan DeKok
Sent: Monday, August 30, 2004 3:11 PM
To: [EMAIL PROTECTED]
Subject: Re: Segmentation Fault on freeradius 1.0.0 

Mark Hennessy [EMAIL PROTECTED] wrote:
 I have followed the instructions provided to the other list subscriber =
 and here is my gdb output.

 sql_mysql.c:71
 71  memset(mysql_sock, 0, sizeof(*mysql_sock));
 (gdb) bt
 #0  0x283b0a54 in sql_init_socket (sqlsocket=3D0x81903c0, =
 config=3D0x80bc400) at
 sql_mysql.c:71

  Weird.  Are you sure you don't have two different versions of the
server on the same machine?

  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


Segmentation Fault on freeradius 1.0.0

2004-08-26 Thread Mark Hennessy
I have followed the instructions provided to the other list subscriber and
here is my gdb output.
Running FreeBSD 4.10 and freeradius 1.0.0

--
 Mark Hennessy

 gdb /usr/local/adm/freeradius/sbin/radiusd
GNU gdb 4.18 (FreeBSD)
Copyright 1998 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type show copying to see the conditions.
There is absolutely no warranty for GDB.  Type show warranty for details.
This GDB was configured as i386-unknown-freebsd...(no debugging symbols
found)...
(gdb) set args -X
(gdb) run
Starting program: /usr/local/adm/freeradius/sbin/radiusd -X
Deprecated bfd_read called at
/usr/src/gnu/usr.bin/binutils/gdb/../../../../contrib/gdb/gdb/dbxread.c line
2627 in elfstab_build_psymtabs
Deprecated bfd_read called at
/usr/src/gnu/usr.bin/binutils/gdb/../../../../contrib/gdb/gdb/dbxread.c line
933 in fill_symbuf
Starting - reading configuration files ...
reread_config:  reading radiusd.conf
Config:   including file: /usr/local/adm/freeradius/etc/raddb/clients.conf
Config:   including file: /usr/local/adm/freeradius/etc/raddb/snmp.conf
Config:   including file: /usr/local/adm/freeradius/etc/raddb/sql.conf
 main: prefix = /usr/local/adm/freeradius
 main: localstatedir = /usr/local/adm/freeradius/var
 main: logdir = /usr/local/adm/freeradius/var/log/radius
 main: libdir = /usr/local/adm/freeradius/lib
 main: radacctdir = /usr/local/adm/freeradius/radacct
 main: hostname_lookups = no
 main: max_request_time = 30
 main: cleanup_delay = 5
 main: max_requests = 1024
 main: delete_blocked_requests = 0
 main: port = 1645
 main: allow_core_dumps = no
 main: log_stripped_names = yes
 main: log_file = /usr/local/adm/freeradius/var/log/radius/radius.log
 main: log_auth = no
 main: log_auth_badpass = no
 main: log_auth_goodpass = no
 main: pidfile = /usr/local/adm/freeradius/var/run/radiusd/radiusd.pid
 main: bind_address = 192.168.20.3 IP address [192.168.20.3]
 main: user = (null)
 main: group = (null)
 main: usercollide = no
 main: lower_user = after
 main: lower_pass = no
 main: nospace_user = after
 main: nospace_pass = after
 main: checkrad = /usr/local/adm/freeradius/sbin/checkrad
 main: proxy_requests = no
 security: max_attributes = 200
 security: reject_delay = 1
 security: status_server = no
 main: debug_level = 0
read_config_files:  reading dictionary
read_config_files:  reading naslist
Using deprecated naslist file.  Support for this will go away soon.
read_config_files:  reading clients
read_config_files:  reading realms
Using deprecated realms file.  Support for this will go away soon.
radiusd:  entering modules setup
Module: Library search path is /usr/local/adm/freeradius/lib
Module: Loaded System
 unix: cache = no
 unix: passwd = (null)
 unix: shadow = (null)
 unix: group = (null)
 unix: radwtmp = /usr/local/adm/freeradius/var/log/radius/radwtmp
 unix: usegroup = no
 unix: cache_reload = 600
Module: Instantiated unix (unix)
Module: Loaded PAP
 pap: encryption_scheme = crypt
Module: Instantiated pap (pap)
Module: Loaded preprocess
 preprocess: huntgroups = /usr/local/adm/freeradius/etc/raddb/huntgroups
 preprocess: hints = /usr/local/adm/freeradius/etc/raddb/hints
 preprocess: with_ascend_hack = no
 preprocess: ascend_channels_per_line = 23
 preprocess: with_ntdomain_hack = yes
 preprocess: with_specialix_jetstream_hack = no
 preprocess: with_cisco_vsa_hack = no
Module: Instantiated preprocess (preprocess)
Module: Loaded realm
 realm: format = suffix
 realm: delimiter = @
 realm: ignore_default = no
 realm: ignore_null = no
Module: Instantiated realm (suffix)
Module: Loaded SQL
 sql: driver = rlm_sql_mysql
 sql: server = localhost
 sql: port = 
 sql: login = freeradius
 sql: password = pw
 sql: radius_db = freeradius
 sql: acct_table = radacct
 sql: acct_table2 = radacct
 sql: authcheck_table = radcheck
 sql: authreply_table = radreply
 sql: groupcheck_table = radgroupcheck
 sql: groupreply_table = radgroupreply
 sql: usergroup_table = usergroup
 sql: nas_table = nas
 sql: dict_table = dictionary
 sql: sqltrace = no
 sql: sqltracefile = /usr/local/adm/freeradius/var/log/radius/sqltrace.sql
 sql: readclients = no
 sql: deletestalesessions = yes
 sql: num_sql_socks = 20
 sql: sql_user_name = %{Stripped-User-Name:-%{User-Name:-none}}
 sql: default_user_profile = 
 sql: query_on_not_found = no
 sql: authorize_check_query = SELECT id,UserName,Attribute,Value,op FROM
radcheck WHERE Username = '%{SQL-User-Name}' ORDER BY id
 sql: authorize_reply_query = SELECT id,UserName,Attribute,Value,op FROM
radreply WHERE Username = '%{SQL-User-Name}' ORDER BY id
 sql: authorize_group_check_query = SELECT
radgroupcheck.id,radgroupcheck.GroupName,radgroupcheck.Attribute,radgroupchec
k.Value,radgroupcheck.op  FROM radgroupcheck,usergroup WHERE
usergroup.Username = '%{SQL-User-Name}' AND usergroup.GroupName =
radgroupcheck.GroupName ORDER BY radgroupcheck.id
 sql

RE: Segmentation Fault

2004-08-25 Thread Mark Hennessy
}' AND NASIPAddress= '%{NAS-IP-Address}' AND
AcctStopTime = 0
 sql: accounting_update_query_alt = 
 sql: accounting_start_query = INSERT into radacct (RadAcctId,
AcctSessionId, AcctUniqueId, UserName, Realm, NASIPAddress, NASPortId,
NASPortType, AcctStartTime, AcctStopTime, AcctSessionTime, AcctAuthentic,
ConnectInfo_start, ConnectInfo_stop, AcctInputOctets, AcctOutputOctets,
CalledStationId, CallingStationId, AcctTerminateCause, ServiceType,
FramedProtocol, FramedIPAddress, AcctStartDelay, AcctStopDelay) values('',
'%{Acct-Session-Id}', '%{Acct-Unique-Session-Id}', '%{SQL-User-Name}',
'%{Realm}', '%{NAS-IP-Address}', '%{NAS-Port-Id}', '%{NAS-Port-Type}', '%S',
'0', '0', '%{Acct-Authentic}', '%{Connect-Info}', '', '0', '0',
'%{Called-Station-Id}', '%{Calling-Station-Id}', '', '%{Service-Type}',
'%{Framed-Protocol}', '%{Framed-IP-Address}', '%{Acct-Delay-Time}', '0')
 sql: accounting_start_query_alt = UPDATE radacct SET AcctStartTime = '%S',
AcctStartDelay = '%{Acct-Delay-Time}', ConnectInfo_start = '%{Connect-Info}'
WHERE AcctSessionId = '%{Acct-Session-Id}' AND UserName = '%{SQL-User-Name}'
AND NASIPAddress = '%{NAS-IP-Address}' AND AcctStopTime = 0
 sql: accounting_stop_query = UPDATE radacct SET AcctStopTime = '%S',
AcctSessionTime = '%{Acct-Session-Time}', AcctInputOctets =
'%{Acct-Input-Octets}', AcctOutputOctets = '%{Acct-Output-Octets}',
AcctTerminateCause = '%{Acct-Terminate-Cause}', AcctStopDelay =
'%{Acct-Delay-Time}', ConnectInfo_stop = '%{Connect-Info}' WHERE
AcctSessionId = '%{Acct-Session-Id}' AND UserName = '%{SQL-User-Name}' AND
NASIPAddress = '%{NAS-IP-Address}' AND AcctStopTime = 0
 sql: accounting_stop_query_alt = INSERT into radacct (RadAcctId,
AcctSessionId, AcctUniqueId, UserName, Realm, NASIPAddress, NASPortId,
NASPortType, AcctStartTime, AcctStopTime, AcctSessionTime, AcctAuthentic,
ConnectInfo_start, ConnectInfo_stop, AcctInputOctets, AcctOutputOctets,
CalledStationId, CallingStationId, AcctTerminateCause, ServiceType,
FramedProtocol, FramedIPAddress, AcctStartDelay, AcctStopDelay) values('',
'%{Acct-Session-Id}', '%{Acct-Unique-Session-Id}', '%{SQL-User-Name}',
'%{Realm}', '%{NAS-IP-Address}', '%{NAS-Port-Id}', '%{NAS-Port-Type}', '0',
'%S', '%{Acct-Session-Time}', '%{Acct-Authentic}', '', '%{Connect-Info}',
'%{Acct-Input-Octets}', '%{Acct-Output-Octets}', '%{Called-Station-Id}',
'%{Calling-Station-Id}', '%{Acct-Terminate-Cause}', '%{Service-Type}',
'%{Framed-Protocol}', '%{Framed-IP-Address}', '0', '%{Acct-Delay-Time}')
 sql: group_membership_query = 
 sql: connect_failure_retry_delay = 60
 sql: simul_count_query = 
 sql: simul_verify_query = SELECT RadAcctId, AcctSessionId, UserName,
NASIPAddress, NASPortId, FramedIPAddress, CalledStationId FROM radacct WHERE
UserName='%{SQL-User-Name}' AND AcctStopTime = 0
 sql: postauth_table = radpostauth
 sql: postauth_query = 
 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 [EMAIL PROTECTED]:/freeradius
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
Segmentation fault

--
 Mark Hennessy

___

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of SPROUSE
Troy F
Sent: Wednesday, August 25, 2004 10:27 AM
To: [EMAIL PROTECTED]
Subject: Segmentation Fault



Okay, this may be a configuration problem but I cannot seem to find it.  When
I run radiusd in debug mode, I get a segmentation fault.  Please see below.


[EMAIL PROTECTED] raddb]# /usr/local/sbin/radiusd -X 
Starting - reading configuration files ... 
reread_config:  reading radiusd.conf 
Config:   including file: /usr/local/etc/raddb/proxy.conf 
Config:   including file: /usr/local/etc/raddb/clients.conf 
Config:   including file: /usr/local/etc/raddb/snmp.conf 
 main: prefix = /usr/local 
 main: localstatedir = /usr/local/var 
 main: logdir = /usr/local/var/log/radius 
 main: libdir = /usr/local/lib 
 main: radacctdir = /usr/local/var/log/radius/radacct 
 main: hostname_lookups = no 
 main: max_request_time = 10 
 main: cleanup_delay = 5 
 main: max_requests = 1024 
 main: delete_blocked_requests = 0 
 main: port = 0 
 main: allow_core_dumps = no 
 main: log_stripped_names = yes 
 main: log_file = /usr/local/var/log/radius/radius.log 
 main: log_auth = yes 
 main: log_auth_badpass = yes 
 main: log_auth_goodpass = yes 
 main: pidfile = /usr/local/var/run/radiusd/radiusd.pid 
 main: user = (null) 
 main: group = (null) 
 main: usercollide = no 
 main: lower_user = no 
 main: lower_pass = no 
 main: nospace_user = no 
 main: nospace_pass = no 
 main: checkrad = /usr/local/sbin/checkrad 
 main: proxy_requests = yes 
 proxy: retry_delay = 3 
 proxy: retry_count = 2 
 proxy: synchronous = no 
 proxy

RE: Cisco 7200 Series and PPPoE

2004-02-26 Thread Mark Hennessy
We did check the shared secret in the Cisco NAS, it was correct.

But there is a password configured for that user, that user would have been
able to check the password just fine if they connected through the redback.

How would it even be possible to get the username etc if the shared secret
was wrong?

-Original Message-
From: [EMAIL PROTECTED] on behalf of Alan DeKok
Sent: Thu 2/26/2004 6:15 PM
To: [EMAIL PROTECTED]
Subject: Re: Cisco 7200 Series and PPPoE 
 
Mark Hennessy [EMAIL PROTECTED] wrote:
 It seems that when trying to connect via PPPoE when the Cisco is the NAS
 the password is rejected.

  Nope.

 User-Password = WEIRD CRYPTED PW, characters are entered by
 escape-code

  That's a hint.

 auth: type Local
 auth: No password configured for the user

  That's a local configuration problem.

 auth: Failed to validate the user.
   WARNING: Unprintable characters in the password. ?  Double-check the
 shared secret on the server and the NAS!

  That message should be pretty self-explanatory.

  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: How to use freeradius 0.9.3 to give users Telnet session on UNIX or Windows servers

2004-01-02 Thread Mark Hennessy
Perhaps remove:

Service-Type = Framed-User
Framed-Protocol = PPP 

and add:

Service-Type = Login-User 

--
 Mark Hennessy

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of MG
Sent: Friday, January 02, 2004 4:46 PM
To: [EMAIL PROTECTED]
Subject: How to use freeradius 0.9.3 to give users Telnet session on UNIX or
Windows servers

Hi,
I have configured the freeRADIUS 0.9.3 server on RedHat 9. I am
required to use FreeRADIUS to authenticate valid users and give
them a Telnet session on either another Unix(192.168.20.7)
server or a Windows (192.168.20.14) server on the same network
as mu FreeRADIUS server. I configured my users file as below;
 
unixuser   Auth-Type := Local, User-Password == testunix
  Service-Type = Framed-User,
  Framed-Protocol = PPP,
  Login-Service = Telnet,
  Login-TCP-Port = Telnet,
  Login-IP-Host = 192.168.20.7
 
winuser   Auth-Type := Local, User-Password == testwin
  Service-Type = Framed-User,
  Framed-Protocol = PPP,
  Login-Service = Telnet,
  Login-TCP-Port = Telnet,
  Login-IP-Host = 192.168.20.14

 
However, the users get authenticated, but no Telnet session,
i.e., no Telnet username prompt. How do I accomplish this
project? Please help!

Thank you... .Mike



__
Do you Yahoo!?
New Yahoo! Photos - easier uploading and sharing.
http://photos.yahoo.com/

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




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