From owner-freebsd-net Tue Dec 24 0:12:34 2002 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 E0BB737B401 for ; Tue, 24 Dec 2002 00:12:32 -0800 (PST) Received: from smtp.hotbox.ru (smtp.hotbox.ru [80.68.244.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1B3F943EDA for ; Tue, 24 Dec 2002 00:12:31 -0800 (PST) (envelope-from lexxmail@front.ru) Received: from athlon.lexxhome.net (lexx.korolev-net.ru [212.188.65.77]) (authenticated bits=0) by smtp.hotbox.ru (8.12.6/8.12.6) with ESMTP id gBO89v1f083105; Tue, 24 Dec 2002 11:09:58 +0300 (MSK) (envelope-from lexxmail@front.ru) Date: Tue, 24 Dec 2002 11:12:01 +0300 From: "Vadim A. Shklyaev" X-Mailer: The Bat! (v1.61) Reply-To: "Vadim A. Shklyaev" X-Priority: 3 (Normal) Message-ID: <10515631078.20021224111201@front.ru> To: Archie Cobbs Cc: freebsd-net@freebsd.org Subject: Re[2]: mpd-3.10 and MySQL In-Reply-To: <200212240116.gBO1GBb2038297@arch20m.dellroad.org> References: <200212240116.gBO1GBb2038297@arch20m.dellroad.org> MIME-Version: 1.0 Content-Type: text/plain; charset=Windows-1251 Content-Transfer-Encoding: 8bit Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Здравствуйте, Archie. Вы писали 24 декабря 2002 г., 4:16:10: AC> Vadim A. Shklyaev wrote: >> Some time back we have faced necessity of mass >> authorization of our VPN-clients which were connected to our server >> using mpd, through a MySQL-database. Thus I have made patch for >> mpd-3.10 for the built-in support mysql authorizations. >> >> May be code is not very clean and well styled, but it works! It >> works on our servers for about 3 or 4 weeks without problems, so I >> decided to send it here, to hear what guru thinks about that, and >> also someone else can will find this thing useful to itself. AC> Interesting! AC> FYI, the next version of mpd will contain support for RADIUS. AC> Does your MySQL server also have RADIUS gateway? Unfortunality, it is not. All client authentification in other places (web-interface and mail) is done directly via mysql. It's suitable for us to use RADIUS for that things. One more question, some time back a man, who had made a RADIUS patch asked you, whether can he hook directly in AuthGetData in auth.c, and you answered that that would be incorrect. I wondering, why? As you can see, I have rewritten every place, where AuthGetData is called, but IMHO it would be easier to modify just auth.c. What is right? -- С уважением, Vadim mailto:lexxmail@front.ru To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message