From owner-cvs-all Thu Jan 24 13:26:47 2002 Delivered-To: cvs-all@freebsd.org Received: from nagual.pp.ru (pobrecita.freebsd.ru [194.87.13.42]) by hub.freebsd.org (Postfix) with ESMTP id 2FFEA37B404; Thu, 24 Jan 2002 13:26:38 -0800 (PST) Received: (from ache@localhost) by nagual.pp.ru (8.11.6/8.11.6) id g0OLQZ786826; Fri, 25 Jan 2002 00:26:35 +0300 (MSK) (envelope-from ache) Date: Fri, 25 Jan 2002 00:26:32 +0300 From: "Andrey A. Chernov" To: Dag-Erling Smorgrav Cc: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/lib/libpam/modules/pam_opieaccess pam_opieaccess.c Message-ID: <20020124212631.GA86757@nagual.pp.ru> References: <200201241618.g0OGIi276333@freefall.freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200201241618.g0OGIi276333@freefall.freebsd.org> User-Agent: Mutt/1.3.27i Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Thu, Jan 24, 2002 at 08:18:43 -0800, Dag-Erling Smorgrav wrote: > des 2002/01/24 08:18:43 PST > > Modified files: > lib/libpam/modules/pam_opieaccess pam_opieaccess.c > Log: > Correctly interpret PAM_RHOST being unset as an indicator of a local > login. if ((rhost == NULL || opieaccessfile(rhost)) This is not the way OPIE auth suppose. I.e. in non-PAM variant you may don't add local host to /etc/opieaccess file, but with this change you can't, it always there. IMHO proper way will be: if (rhost == NULL) rhost = "localhost"; opieaccess() automatically converts "localhost" to "127.0.0.1" and search it in /etc/opieaccess. -- Andrey A. Chernov http://ache.pp.ru/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message