From owner-freebsd-net@FreeBSD.ORG Fri Apr 1 05:56:31 2005 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C4C9F16A4CE; Fri, 1 Apr 2005 05:56:31 +0000 (GMT) Received: from smtp1.skyinet.net (smtp1.skyinet.net [202.78.97.6]) by mx1.FreeBSD.org (Postfix) with ESMTP id 373AF43D1D; Fri, 1 Apr 2005 05:56:31 +0000 (GMT) (envelope-from fooler@skyinet.net) Received: from fooler (fooler.ilo.skyinet.net [202.78.118.66]) by smtp1.skyinet.net (Postfix) with SMTP id 311625839C; Fri, 1 Apr 2005 13:56:09 +0800 (PHT) Message-ID: <026601c5367f$821296d0$42764eca@ilo.skyinet.net> From: "fooler" To: "Bikrant Neupane" , References: <200503311104.57782.bikrant_ml@wlink.com.np><05af01c535b8$b4a51720$42764eca@ilo.skyinet.net> <200504011030.26312.bikrant_ml@wlink.com.np> Date: Fri, 1 Apr 2005 13:56:01 +0800 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 1 X-MSMail-Priority: High X-Mailer: Microsoft Outlook Express 6.00.2800.1437 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 cc: freebsd-net@freebsd.org Subject: Re: radius client parameters X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Apr 2005 05:56:32 -0000 ----- Original Message ----- From: "Bikrant Neupane" To: Cc: "fooler" ; Sent: Friday, April 01, 2005 12:45 PM Subject: Re: radius client parameters > Is CALLING_STATION_ID enabled by default in the radius configuration? since you are using freebsd 4.10 while i look the code of user ppp in freebsd 5.3... please check at /usr/src/usr.sbin/ppp/radius.c function radius_Authenticate() if you find this: if (rad_put_string(r->cx.rad, RAD_NAS_IDENTIFIER, hostname) != 0) { log_Printf(LogERROR, "rad_put: rad_put_string: %s\n", rad_strerror(r->cx.rad)); rad_close(r->cx.rad); return 0; } } if ((mac_addr = getenv("HISMACADDR")) != NULL && rad_put_string(r->cx.rad, RAD_CALLING_STATION_ID, mac_addr) != 0) { log_Printf(LogERROR, "rad_put: %s\n", rad_strerror(r->cx.rad)); rad_close(r->cx.rad); return; } radius_put_physical_details(r->cx.rad, authp->physical); if you dont find RAD_CALLING_STATION_ID then fetch the latest version of user-ppp and youll be fine... > However > I don't see any Attributes in the access-request log. I guess it is the > client which is not sending the CALLING_STATION_ID attribute by default to > the server. How do I configure the radius client (in Freebsd) to send this > attribute to the radius server ? pppoed is the one resposible assigning the mac address to environment variable HISMACADDR while the user-ppp get and put it to CALLING_STATION_ID radius attribute (as show above code)... therefore user-ppp automatically do it for you to send that radius attribute.. fooler.