From owner-freebsd-bugs@FreeBSD.ORG Mon May 14 11:00:11 2007 Return-Path: X-Original-To: freebsd-bugs@hub.freebsd.org Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 4753616A404 for ; Mon, 14 May 2007 11:00:11 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [69.147.83.40]) by mx1.freebsd.org (Postfix) with ESMTP id 2948B13C45B for ; Mon, 14 May 2007 11:00:11 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id l4EB0Bf6030865 for ; Mon, 14 May 2007 11:00:11 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id l4EB0AGY030864; Mon, 14 May 2007 11:00:10 GMT (envelope-from gnats) Resent-Date: Mon, 14 May 2007 11:00:10 GMT Resent-Message-Id: <200705141100.l4EB0AGY030864@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Christian Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 2284516A402 for ; Mon, 14 May 2007 10:51:06 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [69.147.83.33]) by mx1.freebsd.org (Postfix) with ESMTP id 1328713C45B for ; Mon, 14 May 2007 10:51:06 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.13.1/8.13.1) with ESMTP id l4EAp5UK057455 for ; Mon, 14 May 2007 10:51:05 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.13.1/8.13.1/Submit) id l4EAk3U5056681; Mon, 14 May 2007 10:46:03 GMT (envelope-from nobody) Message-Id: <200705141046.l4EAk3U5056681@www.freebsd.org> Date: Mon, 14 May 2007 10:46:03 GMT From: Christian To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.0 Cc: Subject: kern/112652: radiusd exited on signal 10 when used with sql authorization X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 May 2007 11:00:11 -0000 >Number: 112652 >Category: kern >Synopsis: radiusd exited on signal 10 when used with sql authorization >Confidential: no >Severity: serious >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon May 14 11:00:10 GMT 2007 >Closed-Date: >Last-Modified: >Originator: Christian >Release: 6.1-STABLE >Organization: >Environment: reeBSD host 6.1-STABLE FreeBSD 6.1-STABLE #4: Thu May 11 17:48:43 CEST 2006 root@host:/usr/obj/usr/src/sys/bsd6-7 amd64 >Description: [this is my first PR for FreeBSD, so please bear with me if I missed something] I've set up a FreeRadius server on this amd64 machine wich is running just fine using flat files ("users") to do the authorization. Now I wanted to switch to a mysql backend (I've chosen "ldap" and "mysql" when I did "make" in the portsdir). Radiusd starts just fine: Info: rlm_eap_tls: Loading the certificate file as a chain Info: rlm_sql (sql): Driver rlm_sql_mysql (module rlm_sql_mysql) loaded and linked Info: rlm_sql (sql): Attempting to connect to root@localhost:/conusrdb Info: rlm_sql_mysql: Starting connect to MySQL server for #0 Info: rlm_sql_mysql: Starting connect to MySQL server for #1 Info: rlm_sql_mysql: Starting connect to MySQL server for #2 Info: rlm_sql_mysql: Starting connect to MySQL server for #3 Info: rlm_sql_mysql: Starting connect to MySQL server for #4 Info: Ready to process requests. But when it receives an auth-request id dies with: kernel: pid 48382 (radiusd), uid 30323: exited on signal 10 (that's why I've chosen "kern" for "Category" of this PR) >How-To-Repeat: enable "sql" in radiusd.conf: authorize { ... sql } Have the NAS (Network Access Server, in my case a Netgear Wireless AP) send an Auth-Request to the AAA (radius server) and watch it die with: kernel: pid 48382 (radiusd), uid 30323: exited on signal 10 Please see more details (incl. ktrace) here: http://nerdbynature.de/bits/radiusd/ >Fix: >Release-Note: >Audit-Trail: >Unformatted: