On another front... I ma having tough time with Mysql 5.0.41 and
FreeRadius 1.1.6 This is needed for OpenSER 1.2.1 Compilation of freeRadius went fine and I got rlm_sql_mysql modules but radius -X cant start. sql: safe-characters = "@abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789.-_: /" rlm_sql (sql): Could not link driver rlm_sql_mysql: ld.so.1: radiusd: fatal: libmtmalloc.so.1: DF_1_NOOPEN tagged object may not be dlopen()'ed rlm_sql (sql): Make sure it (and all its dependent libraries!) are in the search path of your system's ld. radiusd.conf[14]: sql: Module instantiation failed. radiusd.conf[1861] Unknown module "sql". radiusd.conf[1788] Failed to parse authorize section. Anyone know how to fix it ? Lee Jacky wrote: So do I. I also meet this problem. radius_is_user_in() is not working correctly. I have found many ones meet this problem. Has anyone solved it?--- Neeraj Gupta <[EMAIL PROTECTED]>写道:No, there is no radius request generated under this scenario. But the problem goes away when I comment out the radius_is_user_in section. I found another email thread on this same topic.http://osdir.com/ml/voip.openser.user/2005-10/msg00230.htmlBut in my case, I dont see radius request in radiusd -X output. -Neeraj Bogdan-Andrei Iancu wrote:Hi Neeraj, that is quite odd as the "credentials received arenot filledproperly" is generated by the authentication API(auth module) and hasnothing to do with radius_is_user_in(). when hitting radius_is_user_in(), does the processget blocked or itjust go through without doing anything? Can youcheck withngrep/tcpdump if any radius request is sent byradius_is_user_in()?regards, bogdan Neeraj Gupta wrote:Thanks Bogdan. I spent a lot of time yesterday to troubleshootmy own problem.Its much better now. Here is the latest. I found out that the routing script has a sectionwhich was causingall this. # check if user is suspendedif(is_method("REGISTER|INVITE|MESSAGE|OPTIONS|SUBSCRIBE")){ if (radius_is_user_in("From","suspended")) {sl_send_reply("403", "Forbidden -suspended");exit; }; }; I confirmed that is_method function works finebut when the call hitsradius_is_user_in, it does not go through and I see "credentials received are not properlyfilled in" onopenser. When I commented out this and otherradius_is_user_in andre-ran, all is well. Any clue on whats missing here ? I am thinking of creating a how-to doc on openserwiki aftercompleting my tests. Thanks, Neeraj Sun Microsystems Bogdan-Andrei Iancu wrote:Hi Neeraj, The "pre_auth(): credentials received are notfilled properly" isgenerated in multiple cases, like missingusername/realm/nonce, etc.Check your register request to see if it has allthe required infoin the auth hdr. Logs in debug=6 are also useful. regards, bogdan Neeraj Gupta wrote:Hi, I switched to OpenSER 1.2.1 last week, from ser0.9.6.And this is first time I am trying to useFreeRADIUS 1.1.6 withOpenSER 1.2.1 I followed instructions on web based on 1.0.1and made some changesby hand to adapt to 1.2.1 model. This was my reference:www.*openser*.org/docs/*openser*-radius-1.0.x.htmlI can start OpenSER, no issues but I am notable to use SiPP UA.Openser does not respond back to UA (noincoming message inethereal/wireshark). Openser reports that "pre_auth(): credentialsreceived are notfilled properly". I tried to comment out the avp sections inopenser.cfg.. but Itsnot helping. Please see my logs and configs below. Ifsomeone can send me aworking config file, I will be very thankful. If more info needed, let me know. _*# openser -V*_ version: openser 1.2.1-tls (sparc64/solaris) flags: STATS: Off, USE_IPV6, USE_TCP, USE_TLS,DISABLE_NAGLE,USE_MCAST, SHM_MEM, SHM_MMAP, PKG_MALLOC,F_MALLOC,FAST_LOCK-ADAPTIVE_WAIT ADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE262144, MAX_LISTEN16, MAX_URI_SIZE 1024, BUF_SIZE 65535 poll method support: poll, select, /dev/poll. svnrevision: unknown @(#) $Id: main.c 1827 2007-03-12 15:22:53Zbogdan_iancu $main.c compiled on 23:04:19 Jun 26 2007 withgcc 3.4.6_*Radius users file*_ # from website examples ### --- avps --- [EMAIL PROTECTED] Auth-Type := Accept,Service-Type =="SIP-Callee-AVPs" Sip-Avp += "#3#1", Sip-Avp += "#4:08:00", Sip-Avp += "#5:16:00", Sip-Avp += "#6:Mon,Wed,Thu,Fri" [EMAIL PROTECTED] Auth-Type := Accept,Service-Type =="SIP-Callee-AVPs" Sip-Avp += "#3#1", Sip-Avp += "#4:08:00", Sip-Avp += "#5:16:00", Sip-Avp += "#6:Mon,Wed,Thu,Fri" DEFAULT Auth-Type := Accept, Service-Type =="SIP-Callee-AVPs"### --- group checking --- ### --- user 101 --- [EMAIL PROTECTED] Auth-Type := Accept,Sip-Group == "voip",Service-Type == "Group-Check" Reply-Message = "Authorized" [EMAIL PROTECTED] Auth-Type := Accept,Sip-Group == "pstn",Service-Type == "Group-Check" Reply-Message = "Authorized" ### --- user 102 --- [EMAIL PROTECTED] Auth-Type := Accept,Sip-Group == "voip",Service-Type == "Group-Check" Reply-Message = "Authorized" DEFAULT Auth-Type := Reject, Service-Type =="Group-Check"### --- user authentication --- [EMAIL PROTECTED] Auth-Type := Digest,User-Password == "101"Reply-Message = "Authenticated", Sip-Avp += "rpid:101", Sip-Avp += "#2:192.168.4.101", Sip-Avp += "#2:192.168.4.100" [EMAIL PROTECTED] Auth-Type := Digest,User-Password == "102"Reply-Message = "Authenticated", Sip-Avp += "rpid:102", Sip-Avp += "#2:192.168.4.101" # test user test Auth-Type := Digest, User-Password =="test"Reply-Message = "Hello, test withdigest"=== message truncated === ___________________________________________________________ 雅虎免费邮箱3.5G容量,20M附件! http://cn.mail.yahoo.com/ -- ------------------------------------------------------------- o Neeraj Gupta email: [EMAIL PROTECTED] o Netra Systems & Networking phone: +1(408) 276-7214 x71214 o Sun Microsystems, Inc. fax : +1(408) 276-4552 o 4120 Network Circle, USCA12-216, Santa Clara, CA 95054, USA ------------------------------------------------------------- |
_______________________________________________ Users mailing list Users@openser.org http://openser.org/cgi-bin/mailman/listinfo/users