From owner-cvs-all Fri Jan 25 1:57:22 2002 Delivered-To: cvs-all@freebsd.org Received: from flood.ping.uio.no (flood.ping.uio.no [129.240.78.31]) by hub.freebsd.org (Postfix) with ESMTP id 28B7437B400; Fri, 25 Jan 2002 01:57:16 -0800 (PST) Received: by flood.ping.uio.no (Postfix, from userid 2602) id 2DA77532C; Fri, 25 Jan 2002 10:57:10 +0100 (CET) X-URL: http://www.ofug.org/~des/ X-Disclaimer: The views expressed in this message do not necessarily coincide with those of any organisation or company with which I am or have been affiliated. To: "Andrey A. Chernov" Cc: Robert Watson , cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/lib/libpam/modules/pam_opieaccess pam_opieaccess.c References: <20020125005725.GA89369@nagual.pp.ru> <20020125011133.GA89474@nagual.pp.ru> From: Dag-Erling Smorgrav Date: 25 Jan 2002 10:57:09 +0100 In-Reply-To: <20020125011133.GA89474@nagual.pp.ru> Message-ID: Lines: 18 User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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 "Andrey A. Chernov" writes: > On Thu, Jan 24, 2002 at 20:03:07 -0500, Robert Watson wrote: > > Will it ever not be possible to pass a numeric IP address? > For network connection, you get IP address first, not DNS name. > I see no much sense to resolve it into DNS name then pass it to PAM where > modules will resolve it back to IP address. This whole part can be > skipped to be more secure in case something happens with resolver. I actually removed the resolver code from login(1) in my PAMification patches, so if you pass an IP address on the command line it won't do a reverse lookup anymore (though maybe it should always do a *forward* lookup, and pass the numeric form to PAM). PAM modules don't care; those that specifically need an IP address should obtain it with getaddrinfo(). DES -- Dag-Erling Smorgrav - des@ofug.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message