Found how to do run this against gdb from a different post. Here's the output:

...
...
...
rlm_eap: Loaded and initialized type md5
 tls: rsa_key_exchange = no
 tls: dh_key_exchange = yes
 tls: rsa_key_length = 512
 tls: dh_key_length = 512
 tls: verify_depth = 0
 tls: CA_path = "(null)"
 tls: pem_file_type = yes
 tls: private_key_file = "/usr/local/etc/raddb/scripts/cert-srv.pem"
 tls: certificate_file = "/usr/local/etc/raddb/scripts/cert-srv.pem"
 tls: CA_file = "/usr/local/etc/raddb/scripts/demoCA/cacert.pem"
 tls: private_key_password = "alskdjf9983faSF"
 tls: dh_file = "/usr/local/etc/raddb/scripts/dh"
 tls: random_file = "/dev/urandom"
 tls: fragment_size = 1024
 tls: include_length = yes
 tls: check_crl = no
 tls: check_cert_cn = "(null)"
rlm_eap: Loaded and initialized type tls
 peap: default_eap_type = "mschapv2"
 peap: copy_request_to_tunnel = no
 peap: use_tunneled_reply = no
 peap: proxy_tunneled_request_as_eap = yes
rlm_eap: Loaded and initialized type peap
 mschapv2: with_ntdomain_hack = no
rlm_eap: Loaded and initialized type mschapv2
Module: Instantiated eap (eap)
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 = no
 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)

Program received signal SIGSEGV, Segmentation fault.
0x28128172 in lt_dlsym (handle=0x8183a00, symbol=0xbfbfe7c0 "rlm_sql_auth") at ltdl.c:3330
3330 lensym = LT_STRLEN (symbol) + LT_STRLEN (handle->loader->sym_prefix)
(gdb) bt
#0 0x28128172 in lt_dlsym (handle=0x8183a00, symbol=0xbfbfe7c0 "rlm_sql_auth") at ltdl.c:3330
#1 0x80553a0 in linkto_module (module_name=0xbfbfe910 "rlm_sql_auth", cffilename=0x8062887 "radiusd.conf", cflineno=14) at modules.c:230
#2 0x805560e in find_module_instance (instname=0x80bc240 "sql_auth") at modules.c:347
#3 0x805695d in do_compile_modsingle (component=1, ci=0x80c0e00, filename=0x8062887 "radiusd.conf", grouptype=0, modname=0xbfbfeaac) at modcall.c:814
#4 0x8056cec in compile_modsingle (component=1, ci=0x80c0e00, filename=0x8062887 "radiusd.conf", modname=0xbfbfeaac) at modcall.c:829
#5 0x80559d4 in load_component_section (cs=0x80c0d40, comp=1, filename=0x8062887 "radiusd.conf") at modules.c:584
#6 0x8055e99 in setup_modules () at modules.c:874
#7 0x804cf88 in main (argc=2, argv=0xbfbffc28) at radiusd.c:965
(gdb)



On Dec 2, 2004, at 4:13 PM, Jason Lixfeld wrote:

I'm getting segmentation faults when it tried to load the SQL module after implementing Thor's changes:

bash# radiusd -X
...
...
...
Module: Instantiated realm (suffix)
Segmentation fault
bash#

Configuration:

sql.conf:

sql_acct {
        driver = "rlm_sql_mysql"
}

sql_auth {
        driver = "rlm_sql_mysql"
}

radiusd.conf:

authorize {
        preprocess
        chap
        mschap
        suffix
        eap
        sql_auth
}

accounting {
        sql_acct

}

session {
        sql_acct
}

post-auth {
        sql_acct
}

I think the problem has something to do with the sql.conf because if I comment out "$INCLUDE ${confdir}/sql.conf" line in radiusd.conf, I get different errors:

Module: Instantiated realm (suffix)
ERROR: Cannot find a configuration entry for module "sql_auth".

FYI: I stripped everything out of the sql.conf in these tests because I wanted to see if I fat fingered something which could be causing the segfaults.

To that end, I have verified that if I drop in an old working config with the above radiusd.conf "sql_[acct|auth]" stuff substituted with just "sql" and use a stripped sql.conf configuration with only this: sql { driver = "rlm_sql_mysql" } in it, the server does load (but obviously complains about not being able to connect to the database).

Developer fellows?  Alan?  Any ideas?

I'm sure the responses will be something like "run against GDB" so in preparation, can someone give me some pointers on how to run this through GDB to get you guys some useful stuff back?

On Dec 2, 2004, at 1:18 PM, Thor Spruyt wrote:

Yes,
Configure 2 sql instances by copying the standard sql {} instance:

sql_auth {
   server = ...
   ...
}
sql_acct {
   server = ...
   ...
}

And then tell freeradius to use which instance where:

authorize {
   ...
   sql_auth
   ...
}
accounting {
   ...
   sql_acct
   ...
}


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



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

Reply via email to