Hi everybody,
I am having problems using the auth_radius module. I manage to start the SER server with mysql support I login with a cisco ata 186 messeger and everthing worked ok.
I am tryin now to use the auth_radius. Radius is working on my server because i am using also a pptp + mppe + radius auth and this works ok. I tryed using the binaries and also i have compiled everting from scratch and i get the same Segmentation fault. When I try to start ser I get the folowing.
[root@main root#ser restart 0(29187) loading module /usr/local/lib/ser/modules/mysql.so 0(29187) loading module /usr/local/lib/ser/modules/sl.so 0(29187) loading module /usr/local/lib/ser/modules/tm.so 0(29187) loading module /usr/local/lib/ser/modules/rr.so 0(29187) loading module /usr/local/lib/ser/modules/maxfwd.so 0(29187) loading module /usr/local/lib/ser/modules/usrloc.so 0(29187) loading module /usr/local/lib/ser/modules/registrar.so 0(29187) loading module /usr/local/lib/ser/modules/auth.so 0(29187) loading module /usr/local/lib/ser/modules/auth_radius.so 0(29187) set_mod_param_regex: usrloc matches module usrloc 0(29187) set_mod_param_regex: found <db_mode> in module usrloc [/usr/local/lib/ser/modules/usrloc.so] 0(29187) set_mod_param_regex: auth_radius matches module auth_radius 0(29187) set_mod_param_regex: found <radius_config> in module auth_radius [/usr/local/lib/ser/modules/auth_radius.so] 0(29187) set_mod_param_regex: auth_radius matches module auth_radius 0(29187) set_mod_param_regex: found <service_type> in module auth_radius [/usr/local/lib/ser/modules/auth_radius.so] 0(29187) set_mod_param_regex: rr matches module rr 0(29187) set_mod_param_regex: found <enable_full_lr> in module rr [/usr/local/lib/ser/modules/rr.so] 0(29187) find_export: found <mf_process_maxfwd_header> in module maxfwd_module [/usr/local/lib/ser/modules/maxfwd.so] 0(29187) find_export: found <sl_send_reply> in module sl_module [/usr/local/lib/ser/modules/sl.so] 0(29187) find_export: found <sl_send_reply> in module sl_module [/usr/local/lib/ser/modules/sl.so] 0(29187) find_export: found <record_route> in module rr [/usr/local/lib/ser/modules/rr.so] 0(29187) find_export: found <loose_route> in module rr [/usr/local/lib/ser/modules/rr.so] 0(29187) find_export: found <t_relay> in module tm [/usr/local/lib/ser/modules/tm.so] 0(29187) find_export: found <radius_www_authorize> in module auth_radius [/usr/local/lib/ser/modules/auth_radius.so] 0(29187) find_export: found <www_challenge> in module auth [/usr/local/lib/ser/modules/auth.so] 0(29187) find_export: found <save> in module registrar [/usr/local/lib/ser/modules/registrar.so] 0(29187) find_export: found <lookup> in module registrar [/usr/local/lib/ser/modules/registrar.so] 0(29187) find_export: found <sl_send_reply> in module sl_module [/usr/local/lib/ser/modules/sl.so] 0(29187) find_export: found <t_relay> in module tm [/usr/local/lib/ser/modules/tm.so] 0(29187) find_export: found <sl_reply_error> in module sl_module [/usr/local/lib/ser/modules/sl.so] 0(29187) routing table 0: 0(29187) if ( 0(29187) NOT( 0(29187) external_module_call( 0(29187) f_ptr<0x42255c60> 0(29187) , "10" 0(29187) ); 0(29187) external_module_call( 0(29187) f_ptr<0x42255c60> 0(29187) , "10" 0(29187) ); 0(29187) ) 0(29187) ) { 0(29187) external_module_call( 0(29187) f_ptr<0x400167b0> 0(29187) , "483" 0(29187) , "Too Many Hops" 0(29187) ); 0(29187) drop( 0(29187) type<0> 0(29187) ); 0(29187) } else { 0(29187) }; 0(29187) if ( 0(29187) UNKNOWN 0(29187) <UNKNOWN> 0(29187) 65535 0(29187) ) { 0(29187) external_module_call( 0(29187) f_ptr<0x400167b0> 0(29187) , "513" 0(29187) , "Message too big" 0(29187) ); 0(29187) drop( 0(29187) type<0> 0(29187) ); 0(29187) } else { 0(29187) }; 0(29187) external_module_call( 0(29187) f_ptr<0x42170b00> 0(29187) ); 0(29187) if ( 0(29187) external_module_call( 0(29187) f_ptr<0x4216ee40> 0(29187) ); 0(29187) external_module_call( 0(29187) f_ptr<0x4216ee40> 0(29187) ); 0(29187) ) { 0(29187) external_module_call( 0(29187) f_ptr<0x4222e680> 0(29187) ); 0(29187) drop( 0(29187) type<0> 0(29187) ); 0(29187) } else { 0(29187) }; 0(29187) if ( 0(29187) uri 0(29187) == 0(29187) _myself_ 0(29187) ) { 0(29187) if ( 0(29187) method 0(29187) == 0(29187) "REGISTER" 0(29187) ) { 0(29187) if ( 0(29187) NOT( 0(29187) external_module_call( 0(29187) f_ptr<0x42277f10> 0(29187) , "vpn.extra-net.ro" 0(29187) ); 0(29187) external_module_call( 0(29187) f_ptr<0x42277f10> 0(29187) , "vpn.extra-net.ro" 0(29187) ); 0(29187) ) 0(29187) ) { 0(29187) external_module_call( 0(29187) f_ptr<0x422736c0> 0(29187) , "vpn.extra-net.ro" 0(29187) , "1" 0(29187) ); 0(29187) } else { 0(29187) }; 0(29187) external_module_call( 0(29187) f_ptr<0x4226bdb0> 0(29187) , "location" 0(29187) ); 0(29187) drop( 0(29187) type<0> 0(29187) ); 0(29187) } else { 0(29187) }; 0(29187) if ( 0(29187) NOT( 0(29187) external_module_call( 0(29187) f_ptr<0x4226ac80> 0(29187) , "location" 0(29187) ); 0(29187) external_module_call( 0(29187) f_ptr<0x4226ac80> 0(29187) , "location" 0(29187) ); 0(29187) ) 0(29187) ) { 0(29187) external_module_call( 0(29187) f_ptr<0x400167b0> 0(29187) , "404" 0(29187) , "Not Found" 0(29187) ); 0(29187) drop( 0(29187) type<0> 0(29187) ); 0(29187) } else { 0(29187) }; 0(29187) } else { 0(29187) }; 0(29187) if ( 0(29187) NOT( 0(29187) external_module_call( 0(29187) f_ptr<0x4222e680> 0(29187) ); 0(29187) external_module_call( 0(29187) f_ptr<0x4222e680> 0(29187) ); 0(29187) ) 0(29187) ) { 0(29187) external_module_call( 0(29187) f_ptr<0x400167f0> 0(29187) ); 0(29187) } else { 0(29187) }; 0(29187) if ( 0(29187) UNKNOWN 0(29187) <UNKNOWN> 0(29187) 65535 0(29187) ) { 0(29187) external_module_call( 0(29187) f_ptr<0x400167b0> 0(29187) , "513" 0(29187) , "Message too big" 0(29187) ); 0(29187) drop( 0(29187) type<0> 0(29187) ); 0(29187) } else { 0(29187) }; 0(29187) external_module_call( 0(29187) f_ptr<0x42170b00> 0(29187) ); 0(29187) if ( 0(29187) external_module_call( 0(29187) f_ptr<0x4216ee40> 0(29187) ); 0(29187) external_module_call( 0(29187) f_ptr<0x4216ee40> 0(29187) ); 0(29187) ) { 0(29187) external_module_call( 0(29187) f_ptr<0x4222e680> 0(29187) ); 0(29187) drop( 0(29187) type<0> 0(29187) ); 0(29187) } else { 0(29187) }; 0(29187) if ( 0(29187) uri 0(29187) == 0(29187) _myself_ 0(29187) ) { 0(29187) if ( 0(29187) method 0(29187) == 0(29187) "REGISTER" 0(29187) ) { 0(29187) if ( 0(29187) NOT( 0(29187) external_module_call( 0(29187) f_ptr<0x42277f10> 0(29187) , "vpn.extra-net.ro" 0(29187) ); 0(29187) external_module_call( 0(29187) f_ptr<0x42277f10> 0(29187) , "vpn.extra-net.ro" 0(29187) ); 0(29187) ) 0(29187) ) { 0(29187) external_module_call( 0(29187) f_ptr<0x422736c0> 0(29187) , "vpn.extra-net.ro" 0(29187) , "1" 0(29187) ); 0(29187) } else { 0(29187) }; 0(29187) external_module_call( 0(29187) f_ptr<0x4226bdb0> 0(29187) , "location" 0(29187) ); 0(29187) drop( 0(29187) type<0> 0(29187) ); 0(29187) } else { 0(29187) }; 0(29187) if ( 0(29187) NOT( 0(29187) external_module_call( 0(29187) f_ptr<0x4226ac80> 0(29187) , "location" 0(29187) ); 0(29187) external_module_call( 0(29187) f_ptr<0x4226ac80> 0(29187) , "location" 0(29187) ); 0(29187) ) 0(29187) ) { 0(29187) external_module_call( 0(29187) f_ptr<0x400167b0> 0(29187) , "404" 0(29187) , "Not Found" 0(29187) ); 0(29187) drop( 0(29187) type<0> 0(29187) ); 0(29187) } else { 0(29187) }; 0(29187) } else { 0(29187) }; 0(29187) if ( 0(29187) NOT( 0(29187) external_module_call( 0(29187) f_ptr<0x4222e680> 0(29187) ); 0(29187) external_module_call( 0(29187) f_ptr<0x4222e680> 0(29187) ); 0(29187) ) 0(29187) ) { 0(29187) external_module_call( 0(29187) f_ptr<0x400167f0> 0(29187) ); 0(29187) } else { 0(29187) }; 0(29187) external_module_call( 0(29187) f_ptr<0x42170b00> 0(29187) ); 0(29187) if ( 0(29187) external_module_call( 0(29187) f_ptr<0x4216ee40> 0(29187) ); 0(29187) external_module_call( 0(29187) f_ptr<0x4216ee40> 0(29187) ); 0(29187) ) { 0(29187) external_module_call( 0(29187) f_ptr<0x4222e680> 0(29187) ); 0(29187) drop( 0(29187) type<0> 0(29187) ); 0(29187) } else { 0(29187) }; 0(29187) if ( 0(29187) uri 0(29187) == 0(29187) _myself_ 0(29187) ) { 0(29187) if ( 0(29187) method 0(29187) == 0(29187) "REGISTER" 0(29187) ) { 0(29187) if ( 0(29187) NOT( 0(29187) external_module_call( 0(29187) f_ptr<0x42277f10> 0(29187) , "vpn.extra-net.ro" 0(29187) ); 0(29187) external_module_call( 0(29187) f_ptr<0x42277f10> 0(29187) , "vpn.extra-net.ro" 0(29187) ); 0(29187) ) 0(29187) ) { 0(29187) external_module_call( 0(29187) f_ptr<0x422736c0> 0(29187) , "vpn.extra-net.ro" 0(29187) , "1" 0(29187) ); 0(29187) } else { 0(29187) }; 0(29187) external_module_call( 0(29187) f_ptr<0x4226bdb0> 0(29187) , "location" 0(29187) ); 0(29187) drop( 0(29187) type<0> 0(29187) ); 0(29187) } else { 0(29187) }; 0(29187) if ( 0(29187) NOT( 0(29187) external_module_call( 0(29187) f_ptr<0x4226ac80> 0(29187) , "location" 0(29187) ); 0(29187) external_module_call( 0(29187) f_ptr<0x4226ac80> 0(29187) , "location" 0(29187) ); 0(29187) ) 0(29187) ) { 0(29187) external_module_call( 0(29187) f_ptr<0x400167b0> 0(29187) , "404" 0(29187) , "Not Found" 0(29187) ); 0(29187) drop( 0(29187) type<0> 0(29187) ); 0(29187) } else { 0(29187) }; 0(29187) } else { 0(29187) }; 0(29187) if ( 0(29187) NOT( 0(29187) external_module_call( 0(29187) f_ptr<0x4222e680> 0(29187) ); 0(29187) external_module_call( 0(29187) f_ptr<0x4222e680> 0(29187) ); 0(29187) ) 0(29187) ) { 0(29187) external_module_call( 0(29187) f_ptr<0x400167f0> 0(29187) ); 0(29187) } else { 0(29187) }; 0(29187) if ( 0(29187) external_module_call( 0(29187) f_ptr<0x4216ee40> 0(29187) ); 0(29187) external_module_call( 0(29187) f_ptr<0x4216ee40> 0(29187) ); 0(29187) ) { 0(29187) external_module_call( 0(29187) f_ptr<0x4222e680> 0(29187) ); 0(29187) drop( 0(29187) type<0> 0(29187) ); 0(29187) } else { 0(29187) }; 0(29187) if ( 0(29187) uri 0(29187) == 0(29187) _myself_ 0(29187) ) { 0(29187) if ( 0(29187) method 0(29187) == 0(29187) "REGISTER" 0(29187) ) { 0(29187) if ( 0(29187) NOT( 0(29187) external_module_call( 0(29187) f_ptr<0x42277f10> 0(29187) , "vpn.extra-net.ro" 0(29187) ); 0(29187) external_module_call( 0(29187) f_ptr<0x42277f10> 0(29187) , "vpn.extra-net.ro" 0(29187) ); 0(29187) ) 0(29187) ) { 0(29187) external_module_call( 0(29187) f_ptr<0x422736c0> 0(29187) , "vpn.extra-net.ro" 0(29187) , "1" 0(29187) ); 0(29187) } else { 0(29187) }; 0(29187) external_module_call( 0(29187) f_ptr<0x4226bdb0> 0(29187) , "location" 0(29187) ); 0(29187) drop( 0(29187) type<0> 0(29187) ); 0(29187) } else { 0(29187) }; 0(29187) if ( 0(29187) NOT( 0(29187) external_module_call( 0(29187) f_ptr<0x4226ac80> 0(29187) , "location" 0(29187) ); 0(29187) external_module_call( 0(29187) f_ptr<0x4226ac80> 0(29187) , "location" 0(29187) ); 0(29187) ) 0(29187) ) { 0(29187) external_module_call( 0(29187) f_ptr<0x400167b0> 0(29187) , "404" 0(29187) , "Not Found" 0(29187) ); 0(29187) drop( 0(29187) type<0> 0(29187) ); 0(29187) } else { 0(29187) }; 0(29187) } else { 0(29187) }; 0(29187) if ( 0(29187) NOT( 0(29187) external_module_call( 0(29187) f_ptr<0x4222e680> 0(29187) ); 0(29187) external_module_call( 0(29187) f_ptr<0x4222e680> 0(29187) ); 0(29187) ) 0(29187) ) { 0(29187) external_module_call( 0(29187) f_ptr<0x400167f0> 0(29187) ); 0(29187) } else { 0(29187) }; 0(29187) if ( 0(29187) uri 0(29187) == 0(29187) _myself_ 0(29187) ) { 0(29187) if ( 0(29187) method 0(29187) == 0(29187) "REGISTER" 0(29187) ) { 0(29187) if ( 0(29187) NOT( 0(29187) external_module_call( 0(29187) f_ptr<0x42277f10> 0(29187) , "vpn.extra-net.ro" 0(29187) ); 0(29187) external_module_call( 0(29187) f_ptr<0x42277f10> 0(29187) , "vpn.extra-net.ro" 0(29187) ); 0(29187) ) 0(29187) ) { 0(29187) external_module_call( 0(29187) f_ptr<0x422736c0> 0(29187) , "vpn.extra-net.ro" 0(29187) , "1" 0(29187) ); 0(29187) } else { 0(29187) }; 0(29187) external_module_call( 0(29187) f_ptr<0x4226bdb0> 0(29187) , "location" 0(29187) ); 0(29187) drop( 0(29187) type<0> 0(29187) ); 0(29187) } else { 0(29187) }; 0(29187) if ( 0(29187) NOT( 0(29187) external_module_call( 0(29187) f_ptr<0x4226ac80> 0(29187) , "location" 0(29187) ); 0(29187) external_module_call( 0(29187) f_ptr<0x4226ac80> 0(29187) , "location" 0(29187) ); 0(29187) ) 0(29187) ) { 0(29187) external_module_call( 0(29187) f_ptr<0x400167b0> 0(29187) , "404" 0(29187) , "Not Found" 0(29187) ); 0(29187) drop( 0(29187) type<0> 0(29187) ); 0(29187) } else { 0(29187) }; 0(29187) } else { 0(29187) }; 0(29187) if ( 0(29187) NOT( 0(29187) external_module_call( 0(29187) f_ptr<0x4222e680> 0(29187) ); 0(29187) external_module_call( 0(29187) f_ptr<0x4222e680> 0(29187) ); 0(29187) ) 0(29187) ) { 0(29187) external_module_call( 0(29187) f_ptr<0x400167f0> 0(29187) ); 0(29187) } else { 0(29187) }; 0(29187) if ( 0(29187) NOT( 0(29187) external_module_call( 0(29187) f_ptr<0x4222e680> 0(29187) ); 0(29187) external_module_call( 0(29187) f_ptr<0x4222e680> 0(29187) ); 0(29187) ) 0(29187) ) { 0(29187) external_module_call( 0(29187) f_ptr<0x400167f0> 0(29187) ); 0(29187) } else { 0(29187) }; 0(29187) Listening on 127.0.0.1 [127.0.0.1]:5060 192.168.3.5 [192.168.3.5]:5060 Aliases: vpn.extra-net.ro:5060 localhost:5060 localhost.localdomain:5060 server2:5060 server2.lacerda.com.br:5060 WARNING: no fork mode and more than one listen address found (will use only the the first one) 0(29187) DEBUG: init_mod: mysql 0(29187) mysql - initializing 0(29187) DEBUG: init_mod: sl_module stateless - initializing 0(29187) DEBUG: register_fifo_cmd: new command (sl_stats) registered 0(29187) DEBUG: MD5 calculated: b27e1a1d33761e85846fc98f5f3a7e58 0(29187) DEBUG: init_mod: tm 0(29187) TM - initializing... 0(29187) Call-ID initialization: '7c9f3897' 0(29187) DEBUG: register_fifo_cmd: new command (t_uac_dlg) registered 0(29187) DEBUG: register_fifo_cmd: new command (t_uac_cancel) registered 0(29187) DEBUG: register_fifo_cmd: new command (t_hash) registered 0(29187) DEBUG: lock_initialize: lock initialization started 0(29187) DEBUG: register_fifo_cmd: new command (t_stats) registered 0(29187) DEBUG: MD5 calculated: 533cb9e91f4b999cf76861cbb9ed54ed 0(29187) DEBUG: MD5 calculated: a6a1c5f60faecf035a1ae5b6e96e979a 0(29187) DEBUG: init_mod: rr 0(29187) rr - initializing 0(29187) DEBUG: init_mod: maxfwd_module Maxfwd module- initializing 0(29187) DEBUG: init_mod: usrloc 0(29187) usrloc - initializing 0(29187) DEBUG: register_fifo_cmd: new command (ul_stats) registered 0(29187) DEBUG: register_fifo_cmd: new command (ul_rm) registered 0(29187) DEBUG: register_fifo_cmd: new command (ul_rm_contact) registered 0(29187) DEBUG: register_fifo_cmd: new command (ul_dump) registered 0(29187) DEBUG: register_fifo_cmd: new command (ul_flush) registered 0(29187) DEBUG: register_fifo_cmd: new command (ul_add) registered 0(29187) DEBUG: register_fifo_cmd: new command (ul_show_contact) registered 0(29187) find_export: found <db_use_table> in module mysql [/usr/local/lib/ser/modules/mysql.so] 0(29187) find_export: found <db_init> in module mysql [/usr/local/lib/ser/modules/mysql.so] 0(29187) find_export: found <db_close> in module mysql [/usr/local/lib/ser/modules/mysql.so] 0(29187) find_export: found <db_query> in module mysql [/usr/local/lib/ser/modules/mysql.so] 0(29187) find_export: found <db_raw_query> in module mysql [/usr/local/lib/ser/modules/mysql.so] 0(29187) find_export: found <db_free_query> in module mysql [/usr/local/lib/ser/modules/mysql.so] 0(29187) find_export: found <db_insert> in module mysql [/usr/local/lib/ser/modules/mysql.so] 0(29187) find_export: found <db_delete> in module mysql [/usr/local/lib/ser/modules/mysql.so] 0(29187) find_export: found <db_update> in module mysql [/usr/local/lib/ser/modules/mysql.so] 0(29187) mod_init(): Database connection opened successfuly 0(29187) DEBUG: init_mod: registrar 0(29187) registrar - initializing 0(29187) find_export: found <sl_send_reply> in module sl_module [/usr/local/lib/ser/modules/sl.so] 0(29187) find_export: found <ul_bind_usrloc> in module usrloc [/usr/local/lib/ser/modules/usrloc.so] 0(29187) find_export: found <ul_register_udomain> in module usrloc [/usr/local/lib/ser/modules/usrloc.so] 0(29187) find_export: found <ul_get_all_ucontacts> in module usrloc [/usr/local/lib/ser/modules/usrloc.so] 0(29187) find_export: found <ul_insert_urecord> in module usrloc [/usr/local/lib/ser/modules/usrloc.so] 0(29187) find_export: found <ul_delete_urecord> in module usrloc [/usr/local/lib/ser/modules/usrloc.so] 0(29187) find_export: found <ul_get_urecord> in module usrloc [/usr/local/lib/ser/modules/usrloc.so] 0(29187) find_export: found <ul_lock_udomain> in module usrloc [/usr/local/lib/ser/modules/usrloc.so] 0(29187) find_export: found <ul_unlock_udomain> in module usrloc [/usr/local/lib/ser/modules/usrloc.so] 0(29187) find_export: found <ul_release_urecord> in module usrloc [/usr/local/lib/ser/modules/usrloc.so] 0(29187) find_export: found <ul_insert_ucontact> in module usrloc [/usr/local/lib/ser/modules/usrloc.so] 0(29187) find_export: found <ul_delete_ucontact> in module usrloc [/usr/local/lib/ser/modules/usrloc.so] 0(29187) find_export: found <ul_get_ucontact> in module usrloc [/usr/local/lib/ser/modules/usrloc.so] 0(29187) find_export: found <ul_update_ucontact> in module usrloc [/usr/local/lib/ser/modules/usrloc.so] 0(29187) DEBUG: init_mod: auth 0(29187) auth module - initializing 0(29187) find_export: found <sl_send_reply> in module sl_module [/usr/local/lib/ser/modules/sl.so] 0(29187) DEBUG: init_mod: auth_radius 0(29187) auth_radius - Initializing Segmentation fault ---------------------------- My ser.cfg is this.
#debug=3 # debug level (cmd line: -dddddddddd) #fork=yes #log_stderror=no # (cmd line: -E)
debug=9 fork=no log_stderror=yes
check_via=no # (cmd. line: -v) dns=no # (cmd. line: -r) rev_dns=no # (cmd. line: -R) #port=5060 #children=4 fifo="/tmp/ser_fifo"
# ------------------ module loading ----------------------------------
# Uncomment this if you want to use SQL database loadmodule "/usr/local/lib/ser/modules/mysql.so" loadmodule "/usr/local/lib/ser/modules/sl.so" loadmodule "/usr/local/lib/ser/modules/tm.so" loadmodule "/usr/local/lib/ser/modules/rr.so" loadmodule "/usr/local/lib/ser/modules/maxfwd.so" loadmodule "/usr/local/lib/ser/modules/usrloc.so" loadmodule "/usr/local/lib/ser/modules/registrar.so"
loadmodule "/usr/local/lib/ser/modules/auth.so" #loadmodule "/usr/local/lib/ser/modules/auth_db.so"
loadmodule "/usr/local/lib/ser/modules/auth_radius.so" #loadmodule "/usr/local/lib/ser/modules/uri_radius.so"
# ----------------- setting module-specific parameters --------------- modparam("usrloc", "db_mode", 1) #modparam("auth_db", "calculate_ha1", yes) #modparam("auth_db", "password_column", "password") modparam("auth_radius", "radius_config","/usr/local/etc/radiusclient/radiusclient.conf") modparam("auth_radius", "service_type", 15)
# -- rr params -- # add value to ;lr param to make some broken UAs happy modparam("rr", "enable_full_lr", 1) #modparam("acc", "log_level", 1) #modparam("acc", "radius_flag", 1)
# ------------------------- request routing logic -------------------
# main routing logic
route{ if (!mf_process_maxfwd_header("10")) { sl_send_reply("483","Too Many Hops"); break; }; if ( msg:len > max_len ) { sl_send_reply("513", "Message too big"); break; };
record_route();
if (loose_route()) { t_relay(); break; };
if (uri==myself) { if (uri==myself) {
if (method=="REGISTER") {
if (!radius_www_authorize("vpn.extra-net.ro")) { www_challenge("vpn.extra-net.ro", "1"); }; save("location"); break; };
if (!lookup("location")) { sl_send_reply("404", "Not Found"); break; }; };
if (!t_relay()) { sl_reply_error(); }; }
You probably have a library dependency that is wrong, maybe you compiled the auth_radius.so against the wrong version of the radiusclient library. Try to do ldd on your lib/ser/modules/auth_radius.so and verify that all dependencies are correct. If you have an old radiusclient library used for your pptp+mppe+radius auth, you need to get the latest radiusclient library, compile and install it. You should make a copy of /lib/libradiusclient.so first. You may brake your existing radius setup...
Here is my output on a RH9.0: # ldd auth_radius.so libradiusclient.so.2 => /lib/libradiusclient.so.2 (0x40007000) libc.so.6 => /lib/libc.so.6 (0x40012000) libcrypt.so.1 => /lib/libcrypt.so.1 (0x40139000) libnsl.so.1 => /lib/libnsl.so.1 (0x40166000) /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x80000000)
g-)
Davidescu Ioan wrote:
Hi everybody,
I am having problems using the auth_radius module. I manage to start the SER server with mysql support I login with a cisco ata 186 messeger and everthing worked ok.
I am tryin now to use the auth_radius. Radius is working on my server because i am using also a pptp + mppe + radius auth and this works ok. I tryed using the binaries and also i have compiled everting from scratch and i get the same Segmentation fault. When I try to start ser I get the folowing.
[root@main root#ser restart 0(29187) loading module /usr/local/lib/ser/modules/mysql.so 0(29187) loading module /usr/local/lib/ser/modules/sl.so 0(29187) loading module /usr/local/lib/ser/modules/tm.so 0(29187) loading module /usr/local/lib/ser/modules/rr.so 0(29187) loading module /usr/local/lib/ser/modules/maxfwd.so 0(29187) loading module /usr/local/lib/ser/modules/usrloc.so 0(29187) loading module /usr/local/lib/ser/modules/registrar.so 0(29187) loading module /usr/local/lib/ser/modules/auth.so 0(29187) loading module /usr/local/lib/ser/modules/auth_radius.so 0(29187) set_mod_param_regex: usrloc matches module usrloc 0(29187) set_mod_param_regex: found <db_mode> in module usrloc [/usr/local/lib/ser/modules/usrloc.so] 0(29187) set_mod_param_regex: auth_radius matches module auth_radius 0(29187) set_mod_param_regex: found <radius_config> in module auth_radius [/usr/local/lib/ser/modules/auth_radius.so] 0(29187) set_mod_param_regex: auth_radius matches module auth_radius 0(29187) set_mod_param_regex: found <service_type> in module auth_radius [/usr/local/lib/ser/modules/auth_radius.so] 0(29187) set_mod_param_regex: rr matches module rr 0(29187) set_mod_param_regex: found <enable_full_lr> in module rr [/usr/local/lib/ser/modules/rr.so] 0(29187) find_export: found <mf_process_maxfwd_header> in module maxfwd_module [/usr/local/lib/ser/modules/maxfwd.so] 0(29187) find_export: found <sl_send_reply> in module sl_module [/usr/local/lib/ser/modules/sl.so] 0(29187) find_export: found <sl_send_reply> in module sl_module [/usr/local/lib/ser/modules/sl.so] 0(29187) find_export: found <record_route> in module rr [/usr/local/lib/ser/modules/rr.so] 0(29187) find_export: found <loose_route> in module rr [/usr/local/lib/ser/modules/rr.so] 0(29187) find_export: found <t_relay> in module tm [/usr/local/lib/ser/modules/tm.so] 0(29187) find_export: found <radius_www_authorize> in module auth_radius [/usr/local/lib/ser/modules/auth_radius.so] 0(29187) find_export: found <www_challenge> in module auth [/usr/local/lib/ser/modules/auth.so] 0(29187) find_export: found <save> in module registrar [/usr/local/lib/ser/modules/registrar.so] 0(29187) find_export: found <lookup> in module registrar [/usr/local/lib/ser/modules/registrar.so] 0(29187) find_export: found <sl_send_reply> in module sl_module [/usr/local/lib/ser/modules/sl.so] 0(29187) find_export: found <t_relay> in module tm [/usr/local/lib/ser/modules/tm.so] 0(29187) find_export: found <sl_reply_error> in module sl_module [/usr/local/lib/ser/modules/sl.so] 0(29187) routing table 0: 0(29187) if ( 0(29187) NOT( 0(29187) external_module_call( 0(29187) f_ptr<0x42255c60> 0(29187) , "10" 0(29187) ); 0(29187) external_module_call( 0(29187) f_ptr<0x42255c60> 0(29187) , "10" 0(29187) ); 0(29187) ) 0(29187) ) { 0(29187) external_module_call( 0(29187) f_ptr<0x400167b0> 0(29187) , "483" 0(29187) , "Too Many Hops" 0(29187) ); 0(29187) drop( 0(29187) type<0> 0(29187) ); 0(29187) } else { 0(29187) }; 0(29187) if ( 0(29187) UNKNOWN 0(29187) <UNKNOWN> 0(29187) 65535 0(29187) ) { 0(29187) external_module_call( 0(29187) f_ptr<0x400167b0> 0(29187) , "513" 0(29187) , "Message too big" 0(29187) ); 0(29187) drop( 0(29187) type<0> 0(29187) ); 0(29187) } else { 0(29187) }; 0(29187) external_module_call( 0(29187) f_ptr<0x42170b00> 0(29187) ); 0(29187) if ( 0(29187) external_module_call( 0(29187) f_ptr<0x4216ee40> 0(29187) ); 0(29187) external_module_call( 0(29187) f_ptr<0x4216ee40> 0(29187) ); 0(29187) ) { 0(29187) external_module_call( 0(29187) f_ptr<0x4222e680> 0(29187) ); 0(29187) drop( 0(29187) type<0> 0(29187) ); 0(29187) } else { 0(29187) }; 0(29187) if ( 0(29187) uri 0(29187) == 0(29187) _myself_ 0(29187) ) { 0(29187) if ( 0(29187) method 0(29187) == 0(29187) "REGISTER" 0(29187) ) { 0(29187) if ( 0(29187) NOT( 0(29187) external_module_call( 0(29187) f_ptr<0x42277f10> 0(29187) , "vpn.extra-net.ro" 0(29187) ); 0(29187) external_module_call( 0(29187) f_ptr<0x42277f10> 0(29187) , "vpn.extra-net.ro" 0(29187) ); 0(29187) ) 0(29187) ) { 0(29187) external_module_call( 0(29187) f_ptr<0x422736c0> 0(29187) , "vpn.extra-net.ro" 0(29187) , "1" 0(29187) ); 0(29187) } else { 0(29187) }; 0(29187) external_module_call( 0(29187) f_ptr<0x4226bdb0> 0(29187) , "location" 0(29187) ); 0(29187) drop( 0(29187) type<0> 0(29187) ); 0(29187) } else { 0(29187) }; 0(29187) if ( 0(29187) NOT( 0(29187) external_module_call( 0(29187) f_ptr<0x4226ac80> 0(29187) , "location" 0(29187) ); 0(29187) external_module_call( 0(29187) f_ptr<0x4226ac80> 0(29187) , "location" 0(29187) ); 0(29187) ) 0(29187) ) { 0(29187) external_module_call( 0(29187) f_ptr<0x400167b0> 0(29187) , "404" 0(29187) , "Not Found" 0(29187) ); 0(29187) drop( 0(29187) type<0> 0(29187) ); 0(29187) } else { 0(29187) }; 0(29187) } else { 0(29187) }; 0(29187) if ( 0(29187) NOT( 0(29187) external_module_call( 0(29187) f_ptr<0x4222e680> 0(29187) ); 0(29187) external_module_call( 0(29187) f_ptr<0x4222e680> 0(29187) ); 0(29187) ) 0(29187) ) { 0(29187) external_module_call( 0(29187) f_ptr<0x400167f0> 0(29187) ); 0(29187) } else { 0(29187) }; 0(29187) if ( 0(29187) UNKNOWN 0(29187) <UNKNOWN> 0(29187) 65535 0(29187) ) { 0(29187) external_module_call( 0(29187) f_ptr<0x400167b0> 0(29187) , "513" 0(29187) , "Message too big" 0(29187) ); 0(29187) drop( 0(29187) type<0> 0(29187) ); 0(29187) } else { 0(29187) }; 0(29187) external_module_call( 0(29187) f_ptr<0x42170b00> 0(29187) ); 0(29187) if ( 0(29187) external_module_call( 0(29187) f_ptr<0x4216ee40> 0(29187) ); 0(29187) external_module_call( 0(29187) f_ptr<0x4216ee40> 0(29187) ); 0(29187) ) { 0(29187) external_module_call( 0(29187) f_ptr<0x4222e680> 0(29187) ); 0(29187) drop( 0(29187) type<0> 0(29187) ); 0(29187) } else { 0(29187) }; 0(29187) if ( 0(29187) uri 0(29187) == 0(29187) _myself_ 0(29187) ) { 0(29187) if ( 0(29187) method 0(29187) == 0(29187) "REGISTER" 0(29187) ) { 0(29187) if ( 0(29187) NOT( 0(29187) external_module_call( 0(29187) f_ptr<0x42277f10> 0(29187) , "vpn.extra-net.ro" 0(29187) ); 0(29187) external_module_call( 0(29187) f_ptr<0x42277f10> 0(29187) , "vpn.extra-net.ro" 0(29187) ); 0(29187) ) 0(29187) ) { 0(29187) external_module_call( 0(29187) f_ptr<0x422736c0> 0(29187) , "vpn.extra-net.ro" 0(29187) , "1" 0(29187) ); 0(29187) } else { 0(29187) }; 0(29187) external_module_call( 0(29187) f_ptr<0x4226bdb0> 0(29187) , "location" 0(29187) ); 0(29187) drop( 0(29187) type<0> 0(29187) ); 0(29187) } else { 0(29187) }; 0(29187) if ( 0(29187) NOT( 0(29187) external_module_call( 0(29187) f_ptr<0x4226ac80> 0(29187) , "location" 0(29187) ); 0(29187) external_module_call( 0(29187) f_ptr<0x4226ac80> 0(29187) , "location" 0(29187) ); 0(29187) ) 0(29187) ) { 0(29187) external_module_call( 0(29187) f_ptr<0x400167b0> 0(29187) , "404" 0(29187) , "Not Found" 0(29187) ); 0(29187) drop( 0(29187) type<0> 0(29187) ); 0(29187) } else { 0(29187) }; 0(29187) } else { 0(29187) }; 0(29187) if ( 0(29187) NOT( 0(29187) external_module_call( 0(29187) f_ptr<0x4222e680> 0(29187) ); 0(29187) external_module_call( 0(29187) f_ptr<0x4222e680> 0(29187) ); 0(29187) ) 0(29187) ) { 0(29187) external_module_call( 0(29187) f_ptr<0x400167f0> 0(29187) ); 0(29187) } else { 0(29187) }; 0(29187) external_module_call( 0(29187) f_ptr<0x42170b00> 0(29187) ); 0(29187) if ( 0(29187) external_module_call( 0(29187) f_ptr<0x4216ee40> 0(29187) ); 0(29187) external_module_call( 0(29187) f_ptr<0x4216ee40> 0(29187) ); 0(29187) ) { 0(29187) external_module_call( 0(29187) f_ptr<0x4222e680> 0(29187) ); 0(29187) drop( 0(29187) type<0> 0(29187) ); 0(29187) } else { 0(29187) }; 0(29187) if ( 0(29187) uri 0(29187) == 0(29187) _myself_ 0(29187) ) { 0(29187) if ( 0(29187) method 0(29187) == 0(29187) "REGISTER" 0(29187) ) { 0(29187) if ( 0(29187) NOT( 0(29187) external_module_call( 0(29187) f_ptr<0x42277f10> 0(29187) , "vpn.extra-net.ro" 0(29187) ); 0(29187) external_module_call( 0(29187) f_ptr<0x42277f10> 0(29187) , "vpn.extra-net.ro" 0(29187) ); 0(29187) ) 0(29187) ) { 0(29187) external_module_call( 0(29187) f_ptr<0x422736c0> 0(29187) , "vpn.extra-net.ro" 0(29187) , "1" 0(29187) ); 0(29187) } else { 0(29187) }; 0(29187) external_module_call( 0(29187) f_ptr<0x4226bdb0> 0(29187) , "location" 0(29187) ); 0(29187) drop( 0(29187) type<0> 0(29187) ); 0(29187) } else { 0(29187) }; 0(29187) if ( 0(29187) NOT( 0(29187) external_module_call( 0(29187) f_ptr<0x4226ac80> 0(29187) , "location" 0(29187) ); 0(29187) external_module_call( 0(29187) f_ptr<0x4226ac80> 0(29187) , "location" 0(29187) ); 0(29187) ) 0(29187) ) { 0(29187) external_module_call( 0(29187) f_ptr<0x400167b0> 0(29187) , "404" 0(29187) , "Not Found" 0(29187) ); 0(29187) drop( 0(29187) type<0> 0(29187) ); 0(29187) } else { 0(29187) }; 0(29187) } else { 0(29187) }; 0(29187) if ( 0(29187) NOT( 0(29187) external_module_call( 0(29187) f_ptr<0x4222e680> 0(29187) ); 0(29187) external_module_call( 0(29187) f_ptr<0x4222e680> 0(29187) ); 0(29187) ) 0(29187) ) { 0(29187) external_module_call( 0(29187) f_ptr<0x400167f0> 0(29187) ); 0(29187) } else { 0(29187) }; 0(29187) if ( 0(29187) external_module_call( 0(29187) f_ptr<0x4216ee40> 0(29187) ); 0(29187) external_module_call( 0(29187) f_ptr<0x4216ee40> 0(29187) ); 0(29187) ) { 0(29187) external_module_call( 0(29187) f_ptr<0x4222e680> 0(29187) ); 0(29187) drop( 0(29187) type<0> 0(29187) ); 0(29187) } else { 0(29187) }; 0(29187) if ( 0(29187) uri 0(29187) == 0(29187) _myself_ 0(29187) ) { 0(29187) if ( 0(29187) method 0(29187) == 0(29187) "REGISTER" 0(29187) ) { 0(29187) if ( 0(29187) NOT( 0(29187) external_module_call( 0(29187) f_ptr<0x42277f10> 0(29187) , "vpn.extra-net.ro" 0(29187) ); 0(29187) external_module_call( 0(29187) f_ptr<0x42277f10> 0(29187) , "vpn.extra-net.ro" 0(29187) ); 0(29187) ) 0(29187) ) { 0(29187) external_module_call( 0(29187) f_ptr<0x422736c0> 0(29187) , "vpn.extra-net.ro" 0(29187) , "1" 0(29187) ); 0(29187) } else { 0(29187) }; 0(29187) external_module_call( 0(29187) f_ptr<0x4226bdb0> 0(29187) , "location" 0(29187) ); 0(29187) drop( 0(29187) type<0> 0(29187) ); 0(29187) } else { 0(29187) }; 0(29187) if ( 0(29187) NOT( 0(29187) external_module_call( 0(29187) f_ptr<0x4226ac80> 0(29187) , "location" 0(29187) ); 0(29187) external_module_call( 0(29187) f_ptr<0x4226ac80> 0(29187) , "location" 0(29187) ); 0(29187) ) 0(29187) ) { 0(29187) external_module_call( 0(29187) f_ptr<0x400167b0> 0(29187) , "404" 0(29187) , "Not Found" 0(29187) ); 0(29187) drop( 0(29187) type<0> 0(29187) ); 0(29187) } else { 0(29187) }; 0(29187) } else { 0(29187) }; 0(29187) if ( 0(29187) NOT( 0(29187) external_module_call( 0(29187) f_ptr<0x4222e680> 0(29187) ); 0(29187) external_module_call( 0(29187) f_ptr<0x4222e680> 0(29187) ); 0(29187) ) 0(29187) ) { 0(29187) external_module_call( 0(29187) f_ptr<0x400167f0> 0(29187) ); 0(29187) } else { 0(29187) }; 0(29187) if ( 0(29187) uri 0(29187) == 0(29187) _myself_ 0(29187) ) { 0(29187) if ( 0(29187) method 0(29187) == 0(29187) "REGISTER" 0(29187) ) { 0(29187) if ( 0(29187) NOT( 0(29187) external_module_call( 0(29187) f_ptr<0x42277f10> 0(29187) , "vpn.extra-net.ro" 0(29187) ); 0(29187) external_module_call( 0(29187) f_ptr<0x42277f10> 0(29187) , "vpn.extra-net.ro" 0(29187) ); 0(29187) ) 0(29187) ) { 0(29187) external_module_call( 0(29187) f_ptr<0x422736c0> 0(29187) , "vpn.extra-net.ro" 0(29187) , "1" 0(29187) ); 0(29187) } else { 0(29187) }; 0(29187) external_module_call( 0(29187) f_ptr<0x4226bdb0> 0(29187) , "location" 0(29187) ); 0(29187) drop( 0(29187) type<0> 0(29187) ); 0(29187) } else { 0(29187) }; 0(29187) if ( 0(29187) NOT( 0(29187) external_module_call( 0(29187) f_ptr<0x4226ac80> 0(29187) , "location" 0(29187) ); 0(29187) external_module_call( 0(29187) f_ptr<0x4226ac80> 0(29187) , "location" 0(29187) ); 0(29187) ) 0(29187) ) { 0(29187) external_module_call( 0(29187) f_ptr<0x400167b0> 0(29187) , "404" 0(29187) , "Not Found" 0(29187) ); 0(29187) drop( 0(29187) type<0> 0(29187) ); 0(29187) } else { 0(29187) }; 0(29187) } else { 0(29187) }; 0(29187) if ( 0(29187) NOT( 0(29187) external_module_call( 0(29187) f_ptr<0x4222e680> 0(29187) ); 0(29187) external_module_call( 0(29187) f_ptr<0x4222e680> 0(29187) ); 0(29187) ) 0(29187) ) { 0(29187) external_module_call( 0(29187) f_ptr<0x400167f0> 0(29187) ); 0(29187) } else { 0(29187) }; 0(29187) if ( 0(29187) NOT( 0(29187) external_module_call( 0(29187) f_ptr<0x4222e680> 0(29187) ); 0(29187) external_module_call( 0(29187) f_ptr<0x4222e680> 0(29187) ); 0(29187) ) 0(29187) ) { 0(29187) external_module_call( 0(29187) f_ptr<0x400167f0> 0(29187) ); 0(29187) } else { 0(29187) }; 0(29187) Listening on 127.0.0.1 [127.0.0.1]:5060 192.168.3.5 [192.168.3.5]:5060 Aliases: vpn.extra-net.ro:5060 localhost:5060 localhost.localdomain:5060 server2:5060 server2.lacerda.com.br:5060 WARNING: no fork mode and more than one listen address found (will use only the the first one) 0(29187) DEBUG: init_mod: mysql 0(29187) mysql - initializing 0(29187) DEBUG: init_mod: sl_module stateless - initializing 0(29187) DEBUG: register_fifo_cmd: new command (sl_stats) registered 0(29187) DEBUG: MD5 calculated: b27e1a1d33761e85846fc98f5f3a7e58 0(29187) DEBUG: init_mod: tm 0(29187) TM - initializing... 0(29187) Call-ID initialization: '7c9f3897' 0(29187) DEBUG: register_fifo_cmd: new command (t_uac_dlg) registered 0(29187) DEBUG: register_fifo_cmd: new command (t_uac_cancel) registered 0(29187) DEBUG: register_fifo_cmd: new command (t_hash) registered 0(29187) DEBUG: lock_initialize: lock initialization started 0(29187) DEBUG: register_fifo_cmd: new command (t_stats) registered 0(29187) DEBUG: MD5 calculated: 533cb9e91f4b999cf76861cbb9ed54ed 0(29187) DEBUG: MD5 calculated: a6a1c5f60faecf035a1ae5b6e96e979a 0(29187) DEBUG: init_mod: rr 0(29187) rr - initializing 0(29187) DEBUG: init_mod: maxfwd_module Maxfwd module- initializing 0(29187) DEBUG: init_mod: usrloc 0(29187) usrloc - initializing 0(29187) DEBUG: register_fifo_cmd: new command (ul_stats) registered 0(29187) DEBUG: register_fifo_cmd: new command (ul_rm) registered 0(29187) DEBUG: register_fifo_cmd: new command (ul_rm_contact) registered 0(29187) DEBUG: register_fifo_cmd: new command (ul_dump) registered 0(29187) DEBUG: register_fifo_cmd: new command (ul_flush) registered 0(29187) DEBUG: register_fifo_cmd: new command (ul_add) registered 0(29187) DEBUG: register_fifo_cmd: new command (ul_show_contact) registered 0(29187) find_export: found <db_use_table> in module mysql [/usr/local/lib/ser/modules/mysql.so] 0(29187) find_export: found <db_init> in module mysql [/usr/local/lib/ser/modules/mysql.so] 0(29187) find_export: found <db_close> in module mysql [/usr/local/lib/ser/modules/mysql.so] 0(29187) find_export: found <db_query> in module mysql [/usr/local/lib/ser/modules/mysql.so] 0(29187) find_export: found <db_raw_query> in module mysql [/usr/local/lib/ser/modules/mysql.so] 0(29187) find_export: found <db_free_query> in module mysql [/usr/local/lib/ser/modules/mysql.so] 0(29187) find_export: found <db_insert> in module mysql [/usr/local/lib/ser/modules/mysql.so] 0(29187) find_export: found <db_delete> in module mysql [/usr/local/lib/ser/modules/mysql.so] 0(29187) find_export: found <db_update> in module mysql [/usr/local/lib/ser/modules/mysql.so] 0(29187) mod_init(): Database connection opened successfuly 0(29187) DEBUG: init_mod: registrar 0(29187) registrar - initializing 0(29187) find_export: found <sl_send_reply> in module sl_module [/usr/local/lib/ser/modules/sl.so] 0(29187) find_export: found <ul_bind_usrloc> in module usrloc [/usr/local/lib/ser/modules/usrloc.so] 0(29187) find_export: found <ul_register_udomain> in module usrloc [/usr/local/lib/ser/modules/usrloc.so] 0(29187) find_export: found <ul_get_all_ucontacts> in module usrloc [/usr/local/lib/ser/modules/usrloc.so] 0(29187) find_export: found <ul_insert_urecord> in module usrloc [/usr/local/lib/ser/modules/usrloc.so] 0(29187) find_export: found <ul_delete_urecord> in module usrloc [/usr/local/lib/ser/modules/usrloc.so] 0(29187) find_export: found <ul_get_urecord> in module usrloc [/usr/local/lib/ser/modules/usrloc.so] 0(29187) find_export: found <ul_lock_udomain> in module usrloc [/usr/local/lib/ser/modules/usrloc.so] 0(29187) find_export: found <ul_unlock_udomain> in module usrloc [/usr/local/lib/ser/modules/usrloc.so] 0(29187) find_export: found <ul_release_urecord> in module usrloc [/usr/local/lib/ser/modules/usrloc.so] 0(29187) find_export: found <ul_insert_ucontact> in module usrloc [/usr/local/lib/ser/modules/usrloc.so] 0(29187) find_export: found <ul_delete_ucontact> in module usrloc [/usr/local/lib/ser/modules/usrloc.so] 0(29187) find_export: found <ul_get_ucontact> in module usrloc [/usr/local/lib/ser/modules/usrloc.so] 0(29187) find_export: found <ul_update_ucontact> in module usrloc [/usr/local/lib/ser/modules/usrloc.so] 0(29187) DEBUG: init_mod: auth 0(29187) auth module - initializing 0(29187) find_export: found <sl_send_reply> in module sl_module [/usr/local/lib/ser/modules/sl.so] 0(29187) DEBUG: init_mod: auth_radius 0(29187) auth_radius - Initializing Segmentation fault
My ser.cfg is this.
#debug=3 # debug level (cmd line: -dddddddddd) #fork=yes #log_stderror=no # (cmd line: -E)
debug=9 fork=no log_stderror=yes
check_via=no # (cmd. line: -v) dns=no # (cmd. line: -r) rev_dns=no # (cmd. line: -R) #port=5060 #children=4 fifo="/tmp/ser_fifo"
# ------------------ module loading ----------------------------------
# Uncomment this if you want to use SQL database loadmodule "/usr/local/lib/ser/modules/mysql.so" loadmodule "/usr/local/lib/ser/modules/sl.so" loadmodule "/usr/local/lib/ser/modules/tm.so" loadmodule "/usr/local/lib/ser/modules/rr.so" loadmodule "/usr/local/lib/ser/modules/maxfwd.so" loadmodule "/usr/local/lib/ser/modules/usrloc.so" loadmodule "/usr/local/lib/ser/modules/registrar.so"
loadmodule "/usr/local/lib/ser/modules/auth.so" #loadmodule "/usr/local/lib/ser/modules/auth_db.so"
loadmodule "/usr/local/lib/ser/modules/auth_radius.so" #loadmodule "/usr/local/lib/ser/modules/uri_radius.so"
# ----------------- setting module-specific parameters --------------- modparam("usrloc", "db_mode", 1) #modparam("auth_db", "calculate_ha1", yes) #modparam("auth_db", "password_column", "password") modparam("auth_radius", "radius_config","/usr/local/etc/radiusclient/radiusclient.conf") modparam("auth_radius", "service_type", 15)
# -- rr params -- # add value to ;lr param to make some broken UAs happy modparam("rr", "enable_full_lr", 1) #modparam("acc", "log_level", 1) #modparam("acc", "radius_flag", 1)
# ------------------------- request routing logic -------------------
# main routing logic
route{ if (!mf_process_maxfwd_header("10")) { sl_send_reply("483","Too Many Hops"); break; }; if ( msg:len > max_len ) { sl_send_reply("513", "Message too big"); break; };
record_route();
if (loose_route()) { t_relay(); break; };
if (uri==myself) { if (uri==myself) {
if (method=="REGISTER") {
if (!radius_www_authorize("vpn.extra-net.ro")) { www_challenge("vpn.extra-net.ro", "1"); }; save("location"); break; };
if (!lookup("location")) { sl_send_reply("404", "Not Found"); break; }; };
if (!t_relay()) { sl_reply_error(); }; }
Serusers mailing list serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers
Hi,
This could be the problem. The module I tryed to use in the first step is from the binary pachage. When I first try to use it it complaind about the libradiusclient.so.2 . My old radiusclient libraries was libradiusclient.so.0.0.1 and even if my pptp+mppe+radius worked the auth_radius.so need it libradiusclient.so.2 so I have compile again a new radiusclient witch had added the wanted libs (libradiusclient.so.2) for auth_radius.so. I guess your advice is to try and rebuild the auth_radius.so again using the new libradiusclient modules right?
One other thing even if libradiusclient.so point to the new libradiusclient.so.2.0.0 the pptp+mppe+radius works well, ony ser + radius does not work.
cdusr/local/lib/ ls | grep radius libradiusclient.a - NEW libradiusclient.la - NEW libradiusclient.so - NEW ---> libradiusclient.so.2.0.0 libradiusclient.so.0 - OLD libradiusclient.so.0.0.1 - OLD libradiusclient.so.2 - NEW --- libradiusclient.so.2.0. libradiusclient.so.2.0.0 - NEW
ldd /usr/local/lib/ser/modules/auth_radius.so libradiusclient.so.2 => /usr/lib/libradiusclient.so.2 (0x4000f000) libc.so.6 => /lib/libc.so.6 (0x4001a000) libcrypt.so.1 => /lib/libcrypt.so.1 (0x40141000) libnsl.so.1 => /lib/libnsl.so.1 (0x4016d000) /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x80000000)
ls /usr/lib |grep libradi libradiusclient.a libradiusclient.la libradiusclient.so libradiusclient.so.0 libradiusclient.so.0.0.1 libradiusclient.so.2 libradiusclient.so.2.0.0
At 12:20 PM 11/29/2004, you wrote:
You probably have a library dependency that is wrong, maybe you compiled the auth_radius.so against the wrong version of the radiusclient library. Try to do ldd on your lib/ser/modules/auth_radius.so and verify that all dependencies are correct. If you have an old radiusclient library used for your pptp+mppe+radius auth, you need to get the latest radiusclient library, compile and install it. You should make a copy of /lib/libradiusclient.so first. You may brake your existing radius setup...
Here is my output on a RH9.0: # ldd auth_radius.so libradiusclient.so.2 => /lib/libradiusclient.so.2 (0x40007000) libc.so.6 => /lib/libc.so.6 (0x40012000) libcrypt.so.1 => /lib/libcrypt.so.1 (0x40139000) libnsl.so.1 => /lib/libnsl.so.1 (0x40166000) /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x80000000)
g-)
Davidescu Ioan wrote:
Hi everybody,
I am having problems using the auth_radius module. I manage to start the SER server with mysql support I login with a cisco ata 186 messeger and everthing worked ok.
I am tryin now to use the auth_radius. Radius is working on my server because i am using also a pptp + mppe + radius auth and this works ok. I tryed using the binaries and also i have compiled everting from scratch and i get the same Segmentation fault. When I try to start ser I get the folowing.
[root@main root#ser restart 0(29187) loading module /usr/local/lib/ser/modules/mysql.so 0(29187) loading module /usr/local/lib/ser/modules/sl.so 0(29187) loading module /usr/local/lib/ser/modules/tm.so 0(29187) loading module /usr/local/lib/ser/modules/rr.so 0(29187) loading module /usr/local/lib/ser/modules/maxfwd.so 0(29187) loading module /usr/local/lib/ser/modules/usrloc.so 0(29187) loading module /usr/local/lib/ser/modules/registrar.so 0(29187) loading module /usr/local/lib/ser/modules/auth.so 0(29187) loading module /usr/local/lib/ser/modules/auth_radius.so 0(29187) set_mod_param_regex: usrloc matches module usrloc 0(29187) set_mod_param_regex: found <db_mode> in module usrloc [/usr/local/lib/ser/modules/usrloc.so] 0(29187) set_mod_param_regex: auth_radius matches module auth_radius 0(29187) set_mod_param_regex: found <radius_config> in module auth_radius [/usr/local/lib/ser/modules/auth_radius.so] 0(29187) set_mod_param_regex: auth_radius matches module auth_radius 0(29187) set_mod_param_regex: found <service_type> in module auth_radius [/usr/local/lib/ser/modules/auth_radius.so] 0(29187) set_mod_param_regex: rr matches module rr 0(29187) set_mod_param_regex: found <enable_full_lr> in module rr [/usr/local/lib/ser/modules/rr.so] 0(29187) find_export: found <mf_process_maxfwd_header> in module maxfwd_module [/usr/local/lib/ser/modules/maxfwd.so] 0(29187) find_export: found <sl_send_reply> in module sl_module [/usr/local/lib/ser/modules/sl.so] 0(29187) find_export: found <sl_send_reply> in module sl_module [/usr/local/lib/ser/modules/sl.so] 0(29187) find_export: found <record_route> in module rr [/usr/local/lib/ser/modules/rr.so] 0(29187) find_export: found <loose_route> in module rr [/usr/local/lib/ser/modules/rr.so] 0(29187) find_export: found <t_relay> in module tm [/usr/local/lib/ser/modules/tm.so] 0(29187) find_export: found <radius_www_authorize> in module auth_radius [/usr/local/lib/ser/modules/auth_radius.so] 0(29187) find_export: found <www_challenge> in module auth [/usr/local/lib/ser/modules/auth.so] 0(29187) find_export: found <save> in module registrar [/usr/local/lib/ser/modules/registrar.so] 0(29187) find_export: found <lookup> in module registrar [/usr/local/lib/ser/modules/registrar.so] 0(29187) find_export: found <sl_send_reply> in module sl_module [/usr/local/lib/ser/modules/sl.so] 0(29187) find_export: found <t_relay> in module tm [/usr/local/lib/ser/modules/tm.so] 0(29187) find_export: found <sl_reply_error> in module sl_module [/usr/local/lib/ser/modules/sl.so] 0(29187) routing table 0: 0(29187) if ( 0(29187) NOT( 0(29187) external_module_call( 0(29187) f_ptr<0x42255c60> 0(29187) , "10" 0(29187) ); 0(29187) external_module_call( 0(29187) f_ptr<0x42255c60> 0(29187) , "10" 0(29187) ); 0(29187) ) 0(29187) ) { 0(29187) external_module_call( 0(29187) f_ptr<0x400167b0> 0(29187) , "483" 0(29187) , "Too Many Hops" 0(29187) ); 0(29187) drop( 0(29187) type<0> 0(29187) ); 0(29187) } else { 0(29187) }; 0(29187) if ( 0(29187) UNKNOWN 0(29187) <UNKNOWN> 0(29187) 65535 0(29187) ) { 0(29187) external_module_call( 0(29187) f_ptr<0x400167b0> 0(29187) , "513" 0(29187) , "Message too big" 0(29187) ); 0(29187) drop( 0(29187) type<0> 0(29187) ); 0(29187) } else { 0(29187) }; 0(29187) external_module_call( 0(29187) f_ptr<0x42170b00> 0(29187) ); 0(29187) if ( 0(29187) external_module_call( 0(29187) f_ptr<0x4216ee40> 0(29187) ); 0(29187) external_module_call( 0(29187) f_ptr<0x4216ee40> 0(29187) ); 0(29187) ) { 0(29187) external_module_call( 0(29187) f_ptr<0x4222e680> 0(29187) ); 0(29187) drop( 0(29187) type<0> 0(29187) ); 0(29187) } else { 0(29187) }; 0(29187) if ( 0(29187) uri 0(29187) == 0(29187) _myself_ 0(29187) ) { 0(29187) if ( 0(29187) method 0(29187) == 0(29187) "REGISTER" 0(29187) ) { 0(29187) if ( 0(29187) NOT( 0(29187) external_module_call( 0(29187) f_ptr<0x42277f10> 0(29187) , "vpn.extra-net.ro" 0(29187) ); 0(29187) external_module_call( 0(29187) f_ptr<0x42277f10> 0(29187) , "vpn.extra-net.ro" 0(29187) ); 0(29187) ) 0(29187) ) { 0(29187) external_module_call( 0(29187) f_ptr<0x422736c0> 0(29187) , "vpn.extra-net.ro" 0(29187) , "1" 0(29187) ); 0(29187) } else { 0(29187) }; 0(29187) external_module_call( 0(29187) f_ptr<0x4226bdb0> 0(29187) , "location" 0(29187) ); 0(29187) drop( 0(29187) type<0> 0(29187) ); 0(29187) } else { 0(29187) }; 0(29187) if ( 0(29187) NOT( 0(29187) external_module_call( 0(29187) f_ptr<0x4226ac80> 0(29187) , "location" 0(29187) ); 0(29187) external_module_call( 0(29187) f_ptr<0x4226ac80> 0(29187) , "location" 0(29187) ); 0(29187) ) 0(29187) ) { 0(29187) external_module_call( 0(29187) f_ptr<0x400167b0> 0(29187) , "404" 0(29187) , "Not Found" 0(29187) ); 0(29187) drop( 0(29187) type<0> 0(29187) ); 0(29187) } else { 0(29187) }; 0(29187) } else { 0(29187) }; 0(29187) if ( 0(29187) NOT( 0(29187) external_module_call( 0(29187) f_ptr<0x4222e680> 0(29187) ); 0(29187) external_module_call( 0(29187) f_ptr<0x4222e680> 0(29187) ); 0(29187) ) 0(29187) ) { 0(29187) external_module_call( 0(29187) f_ptr<0x400167f0> 0(29187) ); 0(29187) } else { 0(29187) }; 0(29187) if ( 0(29187) UNKNOWN 0(29187) <UNKNOWN> 0(29187) 65535 0(29187) ) { 0(29187) external_module_call( 0(29187) f_ptr<0x400167b0> 0(29187) , "513" 0(29187) , "Message too big" 0(29187) ); 0(29187) drop( 0(29187) type<0> 0(29187) ); 0(29187) } else { 0(29187) }; 0(29187) external_module_call( 0(29187) f_ptr<0x42170b00> 0(29187) ); 0(29187) if ( 0(29187) external_module_call( 0(29187) f_ptr<0x4216ee40> 0(29187) ); 0(29187) external_module_call( 0(29187) f_ptr<0x4216ee40> 0(29187) ); 0(29187) ) { 0(29187) external_module_call( 0(29187) f_ptr<0x4222e680> 0(29187) ); 0(29187) drop( 0(29187) type<0> 0(29187) ); 0(29187) } else { 0(29187) }; 0(29187) if ( 0(29187) uri 0(29187) == 0(29187) _myself_ 0(29187) ) { 0(29187) if ( 0(29187) method 0(29187) == 0(29187) "REGISTER" 0(29187) ) { 0(29187) if ( 0(29187) NOT( 0(29187) external_module_call( 0(29187) f_ptr<0x42277f10> 0(29187) , "vpn.extra-net.ro" 0(29187) ); 0(29187) external_module_call( 0(29187) f_ptr<0x42277f10> 0(29187) , "vpn.extra-net.ro" 0(29187) ); 0(29187) ) 0(29187) ) { 0(29187) external_module_call( 0(29187) f_ptr<0x422736c0> 0(29187) , "vpn.extra-net.ro" 0(29187) , "1" 0(29187) ); 0(29187) } else { 0(29187) }; 0(29187) external_module_call( 0(29187) f_ptr<0x4226bdb0> 0(29187) , "location" 0(29187) ); 0(29187) drop( 0(29187) type<0> 0(29187) ); 0(29187) } else { 0(29187) }; 0(29187) if ( 0(29187) NOT( 0(29187) external_module_call( 0(29187) f_ptr<0x4226ac80> 0(29187) , "location" 0(29187) ); 0(29187) external_module_call( 0(29187) f_ptr<0x4226ac80> 0(29187) , "location" 0(29187) ); 0(29187) ) 0(29187) ) { 0(29187) external_module_call( 0(29187) f_ptr<0x400167b0> 0(29187) , "404" 0(29187) , "Not Found" 0(29187) ); 0(29187) drop( 0(29187) type<0> 0(29187) ); 0(29187) } else { 0(29187) }; 0(29187) } else { 0(29187) }; 0(29187) if ( 0(29187) NOT( 0(29187) external_module_call( 0(29187) f_ptr<0x4222e680> 0(29187) ); 0(29187) external_module_call( 0(29187) f_ptr<0x4222e680> 0(29187) ); 0(29187) ) 0(29187) ) { 0(29187) external_module_call( 0(29187) f_ptr<0x400167f0> 0(29187) ); 0(29187) } else { 0(29187) }; 0(29187) external_module_call( 0(29187) f_ptr<0x42170b00> 0(29187) ); 0(29187) if ( 0(29187) external_module_call( 0(29187) f_ptr<0x4216ee40> 0(29187) ); 0(29187) external_module_call( 0(29187) f_ptr<0x4216ee40> 0(29187) ); 0(29187) ) { 0(29187) external_module_call( 0(29187) f_ptr<0x4222e680> 0(29187) ); 0(29187) drop( 0(29187) type<0> 0(29187) ); 0(29187) } else { 0(29187) }; 0(29187) if ( 0(29187) uri 0(29187) == 0(29187) _myself_ 0(29187) ) { 0(29187) if ( 0(29187) method 0(29187) == 0(29187) "REGISTER" 0(29187) ) { 0(29187) if ( 0(29187) NOT( 0(29187) external_module_call( 0(29187) f_ptr<0x42277f10> 0(29187) , "vpn.extra-net.ro" 0(29187) ); 0(29187) external_module_call( 0(29187) f_ptr<0x42277f10> 0(29187) , "vpn.extra-net.ro" 0(29187) ); 0(29187) ) 0(29187) ) { 0(29187) external_module_call( 0(29187) f_ptr<0x422736c0> 0(29187) , "vpn.extra-net.ro" 0(29187) , "1" 0(29187) ); 0(29187) } else { 0(29187) }; 0(29187) external_module_call( 0(29187) f_ptr<0x4226bdb0> 0(29187) , "location" 0(29187) ); 0(29187) drop( 0(29187) type<0> 0(29187) ); 0(29187) } else { 0(29187) }; 0(29187) if ( 0(29187) NOT( 0(29187) external_module_call( 0(29187) f_ptr<0x4226ac80> 0(29187) , "location" 0(29187) ); 0(29187) external_module_call( 0(29187) f_ptr<0x4226ac80> 0(29187) , "location" 0(29187) ); 0(29187) ) 0(29187) ) { 0(29187) external_module_call( 0(29187) f_ptr<0x400167b0> 0(29187) , "404" 0(29187) , "Not Found" 0(29187) ); 0(29187) drop( 0(29187) type<0> 0(29187) ); 0(29187) } else { 0(29187) }; 0(29187) } else { 0(29187) }; 0(29187) if ( 0(29187) NOT( 0(29187) external_module_call( 0(29187) f_ptr<0x4222e680> 0(29187) ); 0(29187) external_module_call( 0(29187) f_ptr<0x4222e680> 0(29187) ); 0(29187) ) 0(29187) ) { 0(29187) external_module_call( 0(29187) f_ptr<0x400167f0> 0(29187) ); 0(29187) } else { 0(29187) }; 0(29187) if ( 0(29187) external_module_call( 0(29187) f_ptr<0x4216ee40> 0(29187) ); 0(29187) external_module_call( 0(29187) f_ptr<0x4216ee40> 0(29187) ); 0(29187) ) { 0(29187) external_module_call( 0(29187) f_ptr<0x4222e680> 0(29187) ); 0(29187) drop( 0(29187) type<0> 0(29187) ); 0(29187) } else { 0(29187) }; 0(29187) if ( 0(29187) uri 0(29187) == 0(29187) _myself_ 0(29187) ) { 0(29187) if ( 0(29187) method 0(29187) == 0(29187) "REGISTER" 0(29187) ) { 0(29187) if ( 0(29187) NOT( 0(29187) external_module_call( 0(29187) f_ptr<0x42277f10> 0(29187) , "vpn.extra-net.ro" 0(29187) ); 0(29187) external_module_call( 0(29187) f_ptr<0x42277f10> 0(29187) , "vpn.extra-net.ro" 0(29187) ); 0(29187) ) 0(29187) ) { 0(29187) external_module_call( 0(29187) f_ptr<0x422736c0> 0(29187) , "vpn.extra-net.ro" 0(29187) , "1" 0(29187) ); 0(29187) } else { 0(29187) }; 0(29187) external_module_call( 0(29187) f_ptr<0x4226bdb0> 0(29187) , "location" 0(29187) ); 0(29187) drop( 0(29187) type<0> 0(29187) ); 0(29187) } else { 0(29187) }; 0(29187) if ( 0(29187) NOT( 0(29187) external_module_call( 0(29187) f_ptr<0x4226ac80> 0(29187) , "location" 0(29187) ); 0(29187) external_module_call( 0(29187) f_ptr<0x4226ac80> 0(29187) , "location" 0(29187) ); 0(29187) ) 0(29187) ) { 0(29187) external_module_call( 0(29187) f_ptr<0x400167b0> 0(29187) , "404" 0(29187) , "Not Found" 0(29187) ); 0(29187) drop( 0(29187) type<0> 0(29187) ); 0(29187) } else { 0(29187) }; 0(29187) } else { 0(29187) }; 0(29187) if ( 0(29187) NOT( 0(29187) external_module_call( 0(29187) f_ptr<0x4222e680> 0(29187) ); 0(29187) external_module_call( 0(29187) f_ptr<0x4222e680> 0(29187) ); 0(29187) ) 0(29187) ) { 0(29187) external_module_call( 0(29187) f_ptr<0x400167f0> 0(29187) ); 0(29187) } else { 0(29187) }; 0(29187) if ( 0(29187) uri 0(29187) == 0(29187) _myself_ 0(29187) ) { 0(29187) if ( 0(29187) method 0(29187) == 0(29187) "REGISTER" 0(29187) ) { 0(29187) if ( 0(29187) NOT( 0(29187) external_module_call( 0(29187) f_ptr<0x42277f10> 0(29187) , "vpn.extra-net.ro" 0(29187) ); 0(29187) external_module_call( 0(29187) f_ptr<0x42277f10> 0(29187) , "vpn.extra-net.ro" 0(29187) ); 0(29187) ) 0(29187) ) { 0(29187) external_module_call( 0(29187) f_ptr<0x422736c0> 0(29187) , "vpn.extra-net.ro" 0(29187) , "1" 0(29187) ); 0(29187) } else { 0(29187) }; 0(29187) external_module_call( 0(29187) f_ptr<0x4226bdb0> 0(29187) , "location" 0(29187) ); 0(29187) drop( 0(29187) type<0> 0(29187) ); 0(29187) } else { 0(29187) }; 0(29187) if ( 0(29187) NOT( 0(29187) external_module_call( 0(29187) f_ptr<0x4226ac80> 0(29187) , "location" 0(29187) ); 0(29187) external_module_call( 0(29187) f_ptr<0x4226ac80> 0(29187) , "location" 0(29187) ); 0(29187) ) 0(29187) ) { 0(29187) external_module_call( 0(29187) f_ptr<0x400167b0> 0(29187) , "404" 0(29187) , "Not Found" 0(29187) ); 0(29187) drop( 0(29187) type<0> 0(29187) ); 0(29187) } else { 0(29187) }; 0(29187) } else { 0(29187) }; 0(29187) if ( 0(29187) NOT( 0(29187) external_module_call( 0(29187) f_ptr<0x4222e680> 0(29187) ); 0(29187) external_module_call( 0(29187) f_ptr<0x4222e680> 0(29187) ); 0(29187) ) 0(29187) ) { 0(29187) external_module_call( 0(29187) f_ptr<0x400167f0> 0(29187) ); 0(29187) } else { 0(29187) }; 0(29187) if ( 0(29187) NOT( 0(29187) external_module_call( 0(29187) f_ptr<0x4222e680> 0(29187) ); 0(29187) external_module_call( 0(29187) f_ptr<0x4222e680> 0(29187) ); 0(29187) ) 0(29187) ) { 0(29187) external_module_call( 0(29187) f_ptr<0x400167f0> 0(29187) ); 0(29187) } else { 0(29187) }; 0(29187) Listening on 127.0.0.1 [127.0.0.1]:5060 192.168.3.5 [192.168.3.5]:5060 Aliases: vpn.extra-net.ro:5060 localhost:5060 localhost.localdomain:5060 server2:5060 server2.lacerda.com.br:5060 WARNING: no fork mode and more than one listen address found (will use only the the first one) 0(29187) DEBUG: init_mod: mysql 0(29187) mysql - initializing 0(29187) DEBUG: init_mod: sl_module stateless - initializing 0(29187) DEBUG: register_fifo_cmd: new command (sl_stats) registered 0(29187) DEBUG: MD5 calculated: b27e1a1d33761e85846fc98f5f3a7e58 0(29187) DEBUG: init_mod: tm 0(29187) TM - initializing... 0(29187) Call-ID initialization: '7c9f3897' 0(29187) DEBUG: register_fifo_cmd: new command (t_uac_dlg) registered 0(29187) DEBUG: register_fifo_cmd: new command (t_uac_cancel) registered 0(29187) DEBUG: register_fifo_cmd: new command (t_hash) registered 0(29187) DEBUG: lock_initialize: lock initialization started 0(29187) DEBUG: register_fifo_cmd: new command (t_stats) registered 0(29187) DEBUG: MD5 calculated: 533cb9e91f4b999cf76861cbb9ed54ed 0(29187) DEBUG: MD5 calculated: a6a1c5f60faecf035a1ae5b6e96e979a 0(29187) DEBUG: init_mod: rr 0(29187) rr - initializing 0(29187) DEBUG: init_mod: maxfwd_module Maxfwd module- initializing 0(29187) DEBUG: init_mod: usrloc 0(29187) usrloc - initializing 0(29187) DEBUG: register_fifo_cmd: new command (ul_stats) registered 0(29187) DEBUG: register_fifo_cmd: new command (ul_rm) registered 0(29187) DEBUG: register_fifo_cmd: new command (ul_rm_contact) registered 0(29187) DEBUG: register_fifo_cmd: new command (ul_dump) registered 0(29187) DEBUG: register_fifo_cmd: new command (ul_flush) registered 0(29187) DEBUG: register_fifo_cmd: new command (ul_add) registered 0(29187) DEBUG: register_fifo_cmd: new command (ul_show_contact) registered 0(29187) find_export: found <db_use_table> in module mysql [/usr/local/lib/ser/modules/mysql.so] 0(29187) find_export: found <db_init> in module mysql [/usr/local/lib/ser/modules/mysql.so] 0(29187) find_export: found <db_close> in module mysql [/usr/local/lib/ser/modules/mysql.so] 0(29187) find_export: found <db_query> in module mysql [/usr/local/lib/ser/modules/mysql.so] 0(29187) find_export: found <db_raw_query> in module mysql [/usr/local/lib/ser/modules/mysql.so] 0(29187) find_export: found <db_free_query> in module mysql [/usr/local/lib/ser/modules/mysql.so] 0(29187) find_export: found <db_insert> in module mysql [/usr/local/lib/ser/modules/mysql.so] 0(29187) find_export: found <db_delete> in module mysql [/usr/local/lib/ser/modules/mysql.so] 0(29187) find_export: found <db_update> in module mysql [/usr/local/lib/ser/modules/mysql.so] 0(29187) mod_init(): Database connection opened successfuly 0(29187) DEBUG: init_mod: registrar 0(29187) registrar - initializing 0(29187) find_export: found <sl_send_reply> in module sl_module [/usr/local/lib/ser/modules/sl.so] 0(29187) find_export: found <ul_bind_usrloc> in module usrloc [/usr/local/lib/ser/modules/usrloc.so] 0(29187) find_export: found <ul_register_udomain> in module usrloc [/usr/local/lib/ser/modules/usrloc.so] 0(29187) find_export: found <ul_get_all_ucontacts> in module usrloc [/usr/local/lib/ser/modules/usrloc.so] 0(29187) find_export: found <ul_insert_urecord> in module usrloc [/usr/local/lib/ser/modules/usrloc.so] 0(29187) find_export: found <ul_delete_urecord> in module usrloc [/usr/local/lib/ser/modules/usrloc.so] 0(29187) find_export: found <ul_get_urecord> in module usrloc [/usr/local/lib/ser/modules/usrloc.so] 0(29187) find_export: found <ul_lock_udomain> in module usrloc [/usr/local/lib/ser/modules/usrloc.so] 0(29187) find_export: found <ul_unlock_udomain> in module usrloc [/usr/local/lib/ser/modules/usrloc.so] 0(29187) find_export: found <ul_release_urecord> in module usrloc [/usr/local/lib/ser/modules/usrloc.so] 0(29187) find_export: found <ul_insert_ucontact> in module usrloc [/usr/local/lib/ser/modules/usrloc.so] 0(29187) find_export: found <ul_delete_ucontact> in module usrloc [/usr/local/lib/ser/modules/usrloc.so] 0(29187) find_export: found <ul_get_ucontact> in module usrloc [/usr/local/lib/ser/modules/usrloc.so] 0(29187) find_export: found <ul_update_ucontact> in module usrloc [/usr/local/lib/ser/modules/usrloc.so] 0(29187) DEBUG: init_mod: auth 0(29187) auth module - initializing 0(29187) find_export: found <sl_send_reply> in module sl_module [/usr/local/lib/ser/modules/sl.so] 0(29187) DEBUG: init_mod: auth_radius 0(29187) auth_radius - Initializing Segmentation fault
My ser.cfg is this.
#debug=3 # debug level (cmd line: -dddddddddd) #fork=yes #log_stderror=no # (cmd line: -E)
debug=9 fork=no log_stderror=yes
check_via=no # (cmd. line: -v) dns=no # (cmd. line: -r) rev_dns=no # (cmd. line: -R) #port=5060 #children=4 fifo="/tmp/ser_fifo"
# ------------------ module loading ----------------------------------
# Uncomment this if you want to use SQL database loadmodule "/usr/local/lib/ser/modules/mysql.so" loadmodule "/usr/local/lib/ser/modules/sl.so" loadmodule "/usr/local/lib/ser/modules/tm.so" loadmodule "/usr/local/lib/ser/modules/rr.so" loadmodule "/usr/local/lib/ser/modules/maxfwd.so" loadmodule "/usr/local/lib/ser/modules/usrloc.so" loadmodule "/usr/local/lib/ser/modules/registrar.so"
loadmodule "/usr/local/lib/ser/modules/auth.so" #loadmodule "/usr/local/lib/ser/modules/auth_db.so"
loadmodule "/usr/local/lib/ser/modules/auth_radius.so" #loadmodule "/usr/local/lib/ser/modules/uri_radius.so"
# ----------------- setting module-specific parameters --------------- modparam("usrloc", "db_mode", 1) #modparam("auth_db", "calculate_ha1", yes) #modparam("auth_db", "password_column", "password") modparam("auth_radius", "radius_config","/usr/local/etc/radiusclient/radiusclient.conf") modparam("auth_radius", "service_type", 15)
# -- rr params -- # add value to ;lr param to make some broken UAs happy modparam("rr", "enable_full_lr", 1) #modparam("acc", "log_level", 1) #modparam("acc", "radius_flag", 1)
# ------------------------- request routing logic -------------------
# main routing logic
route{ if (!mf_process_maxfwd_header("10")) { sl_send_reply("483","Too Many Hops"); break; }; if ( msg:len > max_len ) { sl_send_reply("513", "Message too big"); break; };
record_route();
if (loose_route()) { t_relay(); break; };
if (uri==myself) { if (uri==myself) {
if (method=="REGISTER") {
if (!radius_www_authorize("vpn.extra-net.ro")) { www_challenge("vpn.extra-net.ro", "1"); }; save("location"); break; };
if (!lookup("location")) { sl_send_reply("404", "Not Found"); break; }; };
if (!t_relay()) { sl_reply_error(); }; }
Serusers mailing list serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers
Good. Yes, Linux has support for versioning of libraries, so as long as you leave the old library there, you'll be fine. You probably don't need to rebuild the auth_radius.so to make it work, you probably compiled with the correct radiusclient header files anyway. However, it will cause you no harm ;-) This is of course true only if you downloaded radiusclient library source as specified in the tutorial and let ser compile with the include path to that library. However, I would assume that you got a lot of compile errors if you tried to compile with the wrong header files, so you shouldn't have gotten this far then... g-)
Davidescu Ioan wrote:
Hi,
This could be the problem. The module I tryed to use in the first step is from the binary pachage. When I first try to use it it complaind about the libradiusclient.so.2 . My old radiusclient libraries was libradiusclient.so.0.0.1 and even if my pptp+mppe+radius worked the auth_radius.so need it libradiusclient.so.2 so I have compile again a new radiusclient witch had added the wanted libs (libradiusclient.so.2) for auth_radius.so. I guess your advice is to try and rebuild the auth_radius.so again using the new libradiusclient modules right?
One other thing even if libradiusclient.so point to the new libradiusclient.so.2.0.0 the pptp+mppe+radius works well, ony ser + radius does not work.
cdusr/local/lib/ ls | grep radius libradiusclient.a - NEW libradiusclient.la - NEW libradiusclient.so - NEW ---> libradiusclient.so.2.0.0 libradiusclient.so.0 - OLD libradiusclient.so.0.0.1 - OLD libradiusclient.so.2 - NEW --- libradiusclient.so.2.0. libradiusclient.so.2.0.0 - NEW
ldd /usr/local/lib/ser/modules/auth_radius.so libradiusclient.so.2 => /usr/lib/libradiusclient.so.2 (0x4000f000) libc.so.6 => /lib/libc.so.6 (0x4001a000) libcrypt.so.1 => /lib/libcrypt.so.1 (0x40141000) libnsl.so.1 => /lib/libnsl.so.1 (0x4016d000) /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x80000000)
ls /usr/lib |grep libradi libradiusclient.a libradiusclient.la libradiusclient.so libradiusclient.so.0 libradiusclient.so.0.0.1 libradiusclient.so.2 libradiusclient.so.2.0.0
At 12:20 PM 11/29/2004, you wrote:
You probably have a library dependency that is wrong, maybe you compiled the auth_radius.so against the wrong version of the radiusclient library. Try to do ldd on your lib/ser/modules/auth_radius.so and verify that all dependencies are correct. If you have an old radiusclient library used for your pptp+mppe+radius auth, you need to get the latest radiusclient library, compile and install it. You should make a copy of /lib/libradiusclient.so first. You may brake your existing radius setup... Here is my output on a RH9.0: # ldd auth_radius.so libradiusclient.so.2 => /lib/libradiusclient.so.2 (0x40007000) libc.so.6 => /lib/libc.so.6 (0x40012000) libcrypt.so.1 => /lib/libcrypt.so.1 (0x40139000) libnsl.so.1 => /lib/libnsl.so.1 (0x40166000) /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x80000000)
g-)
Davidescu Ioan wrote:
Hi everybody,
I am having problems using the auth_radius module. I manage to start the SER server with mysql support I login with a cisco ata 186 messeger and everthing worked ok.
I am tryin now to use the auth_radius. Radius is working on my server because i am using also a pptp + mppe + radius auth and this works ok. I tryed using the binaries and also i have compiled everting from scratch and i get the same Segmentation fault. When I try to start ser I get the folowing.
[root@main root#ser restart 0(29187) loading module /usr/local/lib/ser/modules/mysql.so 0(29187) loading module /usr/local/lib/ser/modules/sl.so 0(29187) loading module /usr/local/lib/ser/modules/tm.so 0(29187) loading module /usr/local/lib/ser/modules/rr.so 0(29187) loading module /usr/local/lib/ser/modules/maxfwd.so 0(29187) loading module /usr/local/lib/ser/modules/usrloc.so 0(29187) loading module /usr/local/lib/ser/modules/registrar.so 0(29187) loading module /usr/local/lib/ser/modules/auth.so 0(29187) loading module /usr/local/lib/ser/modules/auth_radius.so 0(29187) set_mod_param_regex: usrloc matches module usrloc 0(29187) set_mod_param_regex: found <db_mode> in module usrloc [/usr/local/lib/ser/modules/usrloc.so] 0(29187) set_mod_param_regex: auth_radius matches module auth_radius 0(29187) set_mod_param_regex: found <radius_config> in module auth_radius [/usr/local/lib/ser/modules/auth_radius.so] 0(29187) set_mod_param_regex: auth_radius matches module auth_radius 0(29187) set_mod_param_regex: found <service_type> in module auth_radius [/usr/local/lib/ser/modules/auth_radius.so] 0(29187) set_mod_param_regex: rr matches module rr 0(29187) set_mod_param_regex: found <enable_full_lr> in module rr [/usr/local/lib/ser/modules/rr.so] 0(29187) find_export: found <mf_process_maxfwd_header> in module maxfwd_module [/usr/local/lib/ser/modules/maxfwd.so] 0(29187) find_export: found <sl_send_reply> in module sl_module [/usr/local/lib/ser/modules/sl.so] 0(29187) find_export: found <sl_send_reply> in module sl_module [/usr/local/lib/ser/modules/sl.so] 0(29187) find_export: found <record_route> in module rr [/usr/local/lib/ser/modules/rr.so] 0(29187) find_export: found <loose_route> in module rr [/usr/local/lib/ser/modules/rr.so] 0(29187) find_export: found <t_relay> in module tm [/usr/local/lib/ser/modules/tm.so] 0(29187) find_export: found <radius_www_authorize> in module auth_radius [/usr/local/lib/ser/modules/auth_radius.so] 0(29187) find_export: found <www_challenge> in module auth [/usr/local/lib/ser/modules/auth.so] 0(29187) find_export: found <save> in module registrar [/usr/local/lib/ser/modules/registrar.so] 0(29187) find_export: found <lookup> in module registrar [/usr/local/lib/ser/modules/registrar.so] 0(29187) find_export: found <sl_send_reply> in module sl_module [/usr/local/lib/ser/modules/sl.so] 0(29187) find_export: found <t_relay> in module tm [/usr/local/lib/ser/modules/tm.so] 0(29187) find_export: found <sl_reply_error> in module sl_module [/usr/local/lib/ser/modules/sl.so] 0(29187) routing table 0: 0(29187) if ( 0(29187) NOT( 0(29187) external_module_call( 0(29187) f_ptr<0x42255c60> 0(29187) , "10" 0(29187) ); 0(29187) external_module_call( 0(29187) f_ptr<0x42255c60> 0(29187) , "10" 0(29187) ); 0(29187) ) 0(29187) ) { 0(29187) external_module_call( 0(29187) f_ptr<0x400167b0> 0(29187) , "483" 0(29187) , "Too Many Hops" 0(29187) ); 0(29187) drop( 0(29187) type<0> 0(29187) ); 0(29187) } else { 0(29187) }; 0(29187) if ( 0(29187) UNKNOWN 0(29187) <UNKNOWN> 0(29187) 65535 0(29187) ) { 0(29187) external_module_call( 0(29187) f_ptr<0x400167b0> 0(29187) , "513" 0(29187) , "Message too big" 0(29187) ); 0(29187) drop( 0(29187) type<0> 0(29187) ); 0(29187) } else { 0(29187) }; 0(29187) external_module_call( 0(29187) f_ptr<0x42170b00> 0(29187) ); 0(29187) if ( 0(29187) external_module_call( 0(29187) f_ptr<0x4216ee40> 0(29187) ); 0(29187) external_module_call( 0(29187) f_ptr<0x4216ee40> 0(29187) ); 0(29187) ) { 0(29187) external_module_call( 0(29187) f_ptr<0x4222e680> 0(29187) ); 0(29187) drop( 0(29187) type<0> 0(29187) ); 0(29187) } else { 0(29187) }; 0(29187) if ( 0(29187) uri 0(29187) == 0(29187) _myself_ 0(29187) ) { 0(29187) if ( 0(29187) method 0(29187) == 0(29187) "REGISTER" 0(29187) ) { 0(29187) if ( 0(29187) NOT( 0(29187) external_module_call( 0(29187) f_ptr<0x42277f10> 0(29187) , "vpn.extra-net.ro" 0(29187) ); 0(29187) external_module_call( 0(29187) f_ptr<0x42277f10> 0(29187) , "vpn.extra-net.ro" 0(29187) ); 0(29187) ) 0(29187) ) { 0(29187) external_module_call( 0(29187) f_ptr<0x422736c0> 0(29187) , "vpn.extra-net.ro" 0(29187) , "1" 0(29187) ); 0(29187) } else { 0(29187) }; 0(29187) external_module_call( 0(29187) f_ptr<0x4226bdb0> 0(29187) , "location" 0(29187) ); 0(29187) drop( 0(29187) type<0> 0(29187) ); 0(29187) } else { 0(29187) }; 0(29187) if ( 0(29187) NOT( 0(29187) external_module_call( 0(29187) f_ptr<0x4226ac80> 0(29187) , "location" 0(29187) ); 0(29187) external_module_call( 0(29187) f_ptr<0x4226ac80> 0(29187) , "location" 0(29187) ); 0(29187) ) 0(29187) ) { 0(29187) external_module_call( 0(29187) f_ptr<0x400167b0> 0(29187) , "404" 0(29187) , "Not Found" 0(29187) ); 0(29187) drop( 0(29187) type<0> 0(29187) ); 0(29187) } else { 0(29187) }; 0(29187) } else { 0(29187) }; 0(29187) if ( 0(29187) NOT( 0(29187) external_module_call( 0(29187) f_ptr<0x4222e680> 0(29187) ); 0(29187) external_module_call( 0(29187) f_ptr<0x4222e680> 0(29187) ); 0(29187) ) 0(29187) ) { 0(29187) external_module_call( 0(29187) f_ptr<0x400167f0> 0(29187) ); 0(29187) } else { 0(29187) }; 0(29187) if ( 0(29187) UNKNOWN 0(29187) <UNKNOWN> 0(29187) 65535 0(29187) ) { 0(29187) external_module_call( 0(29187) f_ptr<0x400167b0> 0(29187) , "513" 0(29187) , "Message too big" 0(29187) ); 0(29187) drop( 0(29187) type<0> 0(29187) ); 0(29187) } else { 0(29187) }; 0(29187) external_module_call( 0(29187) f_ptr<0x42170b00> 0(29187) ); 0(29187) if ( 0(29187) external_module_call( 0(29187) f_ptr<0x4216ee40> 0(29187) ); 0(29187) external_module_call( 0(29187) f_ptr<0x4216ee40> 0(29187) ); 0(29187) ) { 0(29187) external_module_call( 0(29187) f_ptr<0x4222e680> 0(29187) ); 0(29187) drop( 0(29187) type<0> 0(29187) ); 0(29187) } else { 0(29187) }; 0(29187) if ( 0(29187) uri 0(29187) == 0(29187) _myself_ 0(29187) ) { 0(29187) if ( 0(29187) method 0(29187) == 0(29187) "REGISTER" 0(29187) ) { 0(29187) if ( 0(29187) NOT( 0(29187) external_module_call( 0(29187) f_ptr<0x42277f10> 0(29187) , "vpn.extra-net.ro" 0(29187) ); 0(29187) external_module_call( 0(29187) f_ptr<0x42277f10> 0(29187) , "vpn.extra-net.ro" 0(29187) ); 0(29187) ) 0(29187) ) { 0(29187) external_module_call( 0(29187) f_ptr<0x422736c0> 0(29187) , "vpn.extra-net.ro" 0(29187) , "1" 0(29187) ); 0(29187) } else { 0(29187) }; 0(29187) external_module_call( 0(29187) f_ptr<0x4226bdb0> 0(29187) , "location" 0(29187) ); 0(29187) drop( 0(29187) type<0> 0(29187) ); 0(29187) } else { 0(29187) }; 0(29187) if ( 0(29187) NOT( 0(29187) external_module_call( 0(29187) f_ptr<0x4226ac80> 0(29187) , "location" 0(29187) ); 0(29187) external_module_call( 0(29187) f_ptr<0x4226ac80> 0(29187) , "location" 0(29187) ); 0(29187) ) 0(29187) ) { 0(29187) external_module_call( 0(29187) f_ptr<0x400167b0> 0(29187) , "404" 0(29187) , "Not Found" 0(29187) ); 0(29187) drop( 0(29187) type<0> 0(29187) ); 0(29187) } else { 0(29187) }; 0(29187) } else { 0(29187) }; 0(29187) if ( 0(29187) NOT( 0(29187) external_module_call( 0(29187) f_ptr<0x4222e680> 0(29187) ); 0(29187) external_module_call( 0(29187) f_ptr<0x4222e680> 0(29187) ); 0(29187) ) 0(29187) ) { 0(29187) external_module_call( 0(29187) f_ptr<0x400167f0> 0(29187) ); 0(29187) } else { 0(29187) }; 0(29187) external_module_call( 0(29187) f_ptr<0x42170b00> 0(29187) ); 0(29187) if ( 0(29187) external_module_call( 0(29187) f_ptr<0x4216ee40> 0(29187) ); 0(29187) external_module_call( 0(29187) f_ptr<0x4216ee40> 0(29187) ); 0(29187) ) { 0(29187) external_module_call( 0(29187) f_ptr<0x4222e680> 0(29187) ); 0(29187) drop( 0(29187) type<0> 0(29187) ); 0(29187) } else { 0(29187) }; 0(29187) if ( 0(29187) uri 0(29187) == 0(29187) _myself_ 0(29187) ) { 0(29187) if ( 0(29187) method 0(29187) == 0(29187) "REGISTER" 0(29187) ) { 0(29187) if ( 0(29187) NOT( 0(29187) external_module_call( 0(29187) f_ptr<0x42277f10> 0(29187) , "vpn.extra-net.ro" 0(29187) ); 0(29187) external_module_call( 0(29187) f_ptr<0x42277f10> 0(29187) , "vpn.extra-net.ro" 0(29187) ); 0(29187) ) 0(29187) ) { 0(29187) external_module_call( 0(29187) f_ptr<0x422736c0> 0(29187) , "vpn.extra-net.ro" 0(29187) , "1" 0(29187) ); 0(29187) } else { 0(29187) }; 0(29187) external_module_call( 0(29187) f_ptr<0x4226bdb0> 0(29187) , "location" 0(29187) ); 0(29187) drop( 0(29187) type<0> 0(29187) ); 0(29187) } else { 0(29187) }; 0(29187) if ( 0(29187) NOT( 0(29187) external_module_call( 0(29187) f_ptr<0x4226ac80> 0(29187) , "location" 0(29187) ); 0(29187) external_module_call( 0(29187) f_ptr<0x4226ac80> 0(29187) , "location" 0(29187) ); 0(29187) ) 0(29187) ) { 0(29187) external_module_call( 0(29187) f_ptr<0x400167b0> 0(29187) , "404" 0(29187) , "Not Found" 0(29187) ); 0(29187) drop( 0(29187) type<0> 0(29187) ); 0(29187) } else { 0(29187) }; 0(29187) } else { 0(29187) }; 0(29187) if ( 0(29187) NOT( 0(29187) external_module_call( 0(29187) f_ptr<0x4222e680> 0(29187) ); 0(29187) external_module_call( 0(29187) f_ptr<0x4222e680> 0(29187) ); 0(29187) ) 0(29187) ) { 0(29187) external_module_call( 0(29187) f_ptr<0x400167f0> 0(29187) ); 0(29187) } else { 0(29187) }; 0(29187) if ( 0(29187) external_module_call( 0(29187) f_ptr<0x4216ee40> 0(29187) ); 0(29187) external_module_call( 0(29187) f_ptr<0x4216ee40> 0(29187) ); 0(29187) ) { 0(29187) external_module_call( 0(29187) f_ptr<0x4222e680> 0(29187) ); 0(29187) drop( 0(29187) type<0> 0(29187) ); 0(29187) } else { 0(29187) }; 0(29187) if ( 0(29187) uri 0(29187) == 0(29187) _myself_ 0(29187) ) { 0(29187) if ( 0(29187) method 0(29187) == 0(29187) "REGISTER" 0(29187) ) { 0(29187) if ( 0(29187) NOT( 0(29187) external_module_call( 0(29187) f_ptr<0x42277f10> 0(29187) , "vpn.extra-net.ro" 0(29187) ); 0(29187) external_module_call( 0(29187) f_ptr<0x42277f10> 0(29187) , "vpn.extra-net.ro" 0(29187) ); 0(29187) ) 0(29187) ) { 0(29187) external_module_call( 0(29187) f_ptr<0x422736c0> 0(29187) , "vpn.extra-net.ro" 0(29187) , "1" 0(29187) ); 0(29187) } else { 0(29187) }; 0(29187) external_module_call( 0(29187) f_ptr<0x4226bdb0> 0(29187) , "location" 0(29187) ); 0(29187) drop( 0(29187) type<0> 0(29187) ); 0(29187) } else { 0(29187) }; 0(29187) if ( 0(29187) NOT( 0(29187) external_module_call( 0(29187) f_ptr<0x4226ac80> 0(29187) , "location" 0(29187) ); 0(29187) external_module_call( 0(29187) f_ptr<0x4226ac80> 0(29187) , "location" 0(29187) ); 0(29187) ) 0(29187) ) { 0(29187) external_module_call( 0(29187) f_ptr<0x400167b0> 0(29187) , "404" 0(29187) , "Not Found" 0(29187) ); 0(29187) drop( 0(29187) type<0> 0(29187) ); 0(29187) } else { 0(29187) }; 0(29187) } else { 0(29187) }; 0(29187) if ( 0(29187) NOT( 0(29187) external_module_call( 0(29187) f_ptr<0x4222e680> 0(29187) ); 0(29187) external_module_call( 0(29187) f_ptr<0x4222e680> 0(29187) ); 0(29187) ) 0(29187) ) { 0(29187) external_module_call( 0(29187) f_ptr<0x400167f0> 0(29187) ); 0(29187) } else { 0(29187) }; 0(29187) if ( 0(29187) uri 0(29187) == 0(29187) _myself_ 0(29187) ) { 0(29187) if ( 0(29187) method 0(29187) == 0(29187) "REGISTER" 0(29187) ) { 0(29187) if ( 0(29187) NOT( 0(29187) external_module_call( 0(29187) f_ptr<0x42277f10> 0(29187) , "vpn.extra-net.ro" 0(29187) ); 0(29187) external_module_call( 0(29187) f_ptr<0x42277f10> 0(29187) , "vpn.extra-net.ro" 0(29187) ); 0(29187) ) 0(29187) ) { 0(29187) external_module_call( 0(29187) f_ptr<0x422736c0> 0(29187) , "vpn.extra-net.ro" 0(29187) , "1" 0(29187) ); 0(29187) } else { 0(29187) }; 0(29187) external_module_call( 0(29187) f_ptr<0x4226bdb0> 0(29187) , "location" 0(29187) ); 0(29187) drop( 0(29187) type<0> 0(29187) ); 0(29187) } else { 0(29187) }; 0(29187) if ( 0(29187) NOT( 0(29187) external_module_call( 0(29187) f_ptr<0x4226ac80> 0(29187) , "location" 0(29187) ); 0(29187) external_module_call( 0(29187) f_ptr<0x4226ac80> 0(29187) , "location" 0(29187) ); 0(29187) ) 0(29187) ) { 0(29187) external_module_call( 0(29187) f_ptr<0x400167b0> 0(29187) , "404" 0(29187) , "Not Found" 0(29187) ); 0(29187) drop( 0(29187) type<0> 0(29187) ); 0(29187) } else { 0(29187) }; 0(29187) } else { 0(29187) }; 0(29187) if ( 0(29187) NOT( 0(29187) external_module_call( 0(29187) f_ptr<0x4222e680> 0(29187) ); 0(29187) external_module_call( 0(29187) f_ptr<0x4222e680> 0(29187) ); 0(29187) ) 0(29187) ) { 0(29187) external_module_call( 0(29187) f_ptr<0x400167f0> 0(29187) ); 0(29187) } else { 0(29187) }; 0(29187) if ( 0(29187) NOT( 0(29187) external_module_call( 0(29187) f_ptr<0x4222e680> 0(29187) ); 0(29187) external_module_call( 0(29187) f_ptr<0x4222e680> 0(29187) ); 0(29187) ) 0(29187) ) { 0(29187) external_module_call( 0(29187) f_ptr<0x400167f0> 0(29187) ); 0(29187) } else { 0(29187) }; 0(29187) Listening on 127.0.0.1 [127.0.0.1]:5060 192.168.3.5 [192.168.3.5]:5060 Aliases: vpn.extra-net.ro:5060 localhost:5060 localhost.localdomain:5060 server2:5060 server2.lacerda.com.br:5060 WARNING: no fork mode and more than one listen address found (will use only the the first one) 0(29187) DEBUG: init_mod: mysql 0(29187) mysql - initializing 0(29187) DEBUG: init_mod: sl_module stateless - initializing 0(29187) DEBUG: register_fifo_cmd: new command (sl_stats) registered 0(29187) DEBUG: MD5 calculated: b27e1a1d33761e85846fc98f5f3a7e58 0(29187) DEBUG: init_mod: tm 0(29187) TM - initializing... 0(29187) Call-ID initialization: '7c9f3897' 0(29187) DEBUG: register_fifo_cmd: new command (t_uac_dlg) registered 0(29187) DEBUG: register_fifo_cmd: new command (t_uac_cancel) registered 0(29187) DEBUG: register_fifo_cmd: new command (t_hash) registered 0(29187) DEBUG: lock_initialize: lock initialization started 0(29187) DEBUG: register_fifo_cmd: new command (t_stats) registered 0(29187) DEBUG: MD5 calculated: 533cb9e91f4b999cf76861cbb9ed54ed 0(29187) DEBUG: MD5 calculated: a6a1c5f60faecf035a1ae5b6e96e979a 0(29187) DEBUG: init_mod: rr 0(29187) rr - initializing 0(29187) DEBUG: init_mod: maxfwd_module Maxfwd module- initializing 0(29187) DEBUG: init_mod: usrloc 0(29187) usrloc - initializing 0(29187) DEBUG: register_fifo_cmd: new command (ul_stats) registered 0(29187) DEBUG: register_fifo_cmd: new command (ul_rm) registered 0(29187) DEBUG: register_fifo_cmd: new command (ul_rm_contact) registered 0(29187) DEBUG: register_fifo_cmd: new command (ul_dump) registered 0(29187) DEBUG: register_fifo_cmd: new command (ul_flush) registered 0(29187) DEBUG: register_fifo_cmd: new command (ul_add) registered 0(29187) DEBUG: register_fifo_cmd: new command (ul_show_contact) registered 0(29187) find_export: found <db_use_table> in module mysql [/usr/local/lib/ser/modules/mysql.so] 0(29187) find_export: found <db_init> in module mysql [/usr/local/lib/ser/modules/mysql.so] 0(29187) find_export: found <db_close> in module mysql [/usr/local/lib/ser/modules/mysql.so] 0(29187) find_export: found <db_query> in module mysql [/usr/local/lib/ser/modules/mysql.so] 0(29187) find_export: found <db_raw_query> in module mysql [/usr/local/lib/ser/modules/mysql.so] 0(29187) find_export: found <db_free_query> in module mysql [/usr/local/lib/ser/modules/mysql.so] 0(29187) find_export: found <db_insert> in module mysql [/usr/local/lib/ser/modules/mysql.so] 0(29187) find_export: found <db_delete> in module mysql [/usr/local/lib/ser/modules/mysql.so] 0(29187) find_export: found <db_update> in module mysql [/usr/local/lib/ser/modules/mysql.so] 0(29187) mod_init(): Database connection opened successfuly 0(29187) DEBUG: init_mod: registrar 0(29187) registrar - initializing 0(29187) find_export: found <sl_send_reply> in module sl_module [/usr/local/lib/ser/modules/sl.so] 0(29187) find_export: found <ul_bind_usrloc> in module usrloc [/usr/local/lib/ser/modules/usrloc.so] 0(29187) find_export: found <ul_register_udomain> in module usrloc [/usr/local/lib/ser/modules/usrloc.so] 0(29187) find_export: found <ul_get_all_ucontacts> in module usrloc [/usr/local/lib/ser/modules/usrloc.so] 0(29187) find_export: found <ul_insert_urecord> in module usrloc [/usr/local/lib/ser/modules/usrloc.so] 0(29187) find_export: found <ul_delete_urecord> in module usrloc [/usr/local/lib/ser/modules/usrloc.so] 0(29187) find_export: found <ul_get_urecord> in module usrloc [/usr/local/lib/ser/modules/usrloc.so] 0(29187) find_export: found <ul_lock_udomain> in module usrloc [/usr/local/lib/ser/modules/usrloc.so] 0(29187) find_export: found <ul_unlock_udomain> in module usrloc [/usr/local/lib/ser/modules/usrloc.so] 0(29187) find_export: found <ul_release_urecord> in module usrloc [/usr/local/lib/ser/modules/usrloc.so] 0(29187) find_export: found <ul_insert_ucontact> in module usrloc [/usr/local/lib/ser/modules/usrloc.so] 0(29187) find_export: found <ul_delete_ucontact> in module usrloc [/usr/local/lib/ser/modules/usrloc.so] 0(29187) find_export: found <ul_get_ucontact> in module usrloc [/usr/local/lib/ser/modules/usrloc.so] 0(29187) find_export: found <ul_update_ucontact> in module usrloc [/usr/local/lib/ser/modules/usrloc.so] 0(29187) DEBUG: init_mod: auth 0(29187) auth module - initializing 0(29187) find_export: found <sl_send_reply> in module sl_module [/usr/local/lib/ser/modules/sl.so] 0(29187) DEBUG: init_mod: auth_radius 0(29187) auth_radius - Initializing Segmentation fault
My ser.cfg is this.
#debug=3 # debug level (cmd line: -dddddddddd) #fork=yes #log_stderror=no # (cmd line: -E)
debug=9 fork=no log_stderror=yes
check_via=no # (cmd. line: -v) dns=no # (cmd. line: -r) rev_dns=no # (cmd. line: -R) #port=5060 #children=4 fifo="/tmp/ser_fifo"
# ------------------ module loading
# Uncomment this if you want to use SQL database loadmodule "/usr/local/lib/ser/modules/mysql.so" loadmodule "/usr/local/lib/ser/modules/sl.so" loadmodule "/usr/local/lib/ser/modules/tm.so" loadmodule "/usr/local/lib/ser/modules/rr.so" loadmodule "/usr/local/lib/ser/modules/maxfwd.so" loadmodule "/usr/local/lib/ser/modules/usrloc.so" loadmodule "/usr/local/lib/ser/modules/registrar.so"
loadmodule "/usr/local/lib/ser/modules/auth.so" #loadmodule "/usr/local/lib/ser/modules/auth_db.so"
loadmodule "/usr/local/lib/ser/modules/auth_radius.so" #loadmodule "/usr/local/lib/ser/modules/uri_radius.so"
# ----------------- setting module-specific parameters --------------- modparam("usrloc", "db_mode", 1) #modparam("auth_db", "calculate_ha1", yes) #modparam("auth_db", "password_column", "password") modparam("auth_radius", "radius_config","/usr/local/etc/radiusclient/radiusclient.conf") modparam("auth_radius", "service_type", 15)
# -- rr params -- # add value to ;lr param to make some broken UAs happy modparam("rr", "enable_full_lr", 1) #modparam("acc", "log_level", 1) #modparam("acc", "radius_flag", 1)
# ------------------------- request routing logic
# main routing logic
route{ if (!mf_process_maxfwd_header("10")) { sl_send_reply("483","Too Many Hops"); break; }; if ( msg:len > max_len ) { sl_send_reply("513", "Message too big"); break; };
record_route();
if (loose_route()) { t_relay(); break; };
if (uri==myself) { if (uri==myself) {
if (method=="REGISTER") {
if (!radius_www_authorize("vpn.extra-net.ro")) { www_challenge("vpn.extra-net.ro", "1"); }; save("location"); break; };
if (!lookup("location")) { sl_send_reply("404", "Not Found"); break; }; };
if (!t_relay()) { sl_reply_error(); }; }
Serusers mailing list serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers
Serusers mailing list serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers
Hi,
I had some similar problem couple of days ago - I'm not sure is your case also. The cause was in radiusclient library version 0.4.7 where a fresh alloced structure was used without being initialized (when parsing the configuration file). So, some uninitialized array index was causing a segmentation fault at startup.
Here is a small patch which fixes this problem. Hope it will help.
Best regards, Marian
Davidescu Ioan wrote:
Hi everybody,
I am having problems using the auth_radius module. I manage to start the SER server with mysql support I login with a cisco ata 186 messeger and everthing worked ok.
I am tryin now to use the auth_radius. Radius is working on my server because i am using also a pptp + mppe + radius auth and this works ok. I tryed using the binaries and also i have compiled everting from scratch and i get the same Segmentation fault. When I try to start ser I get the folowing.