From owner-freebsd-current Mon Jan 21 8:25:14 2002 Delivered-To: freebsd-current@freebsd.org Received: from nagual.pp.ru (pobrecita.freebsd.ru [194.87.13.42]) by hub.freebsd.org (Postfix) with ESMTP id 9D9AF37B405; Mon, 21 Jan 2002 08:25:06 -0800 (PST) Received: (from ache@localhost) by nagual.pp.ru (8.11.6/8.11.6) id g0LGP5N38070; Mon, 21 Jan 2002 19:25:05 +0300 (MSK) (envelope-from ache) Date: Mon, 21 Jan 2002 19:25:04 +0300 From: "Andrey A. Chernov" To: Dag-Erling Smorgrav Cc: markm@FreeBSD.ORG, current@FreeBSD.ORG Subject: Re: pam_opie(8) prompt Message-ID: <20020121162504.GG37234@nagual.pp.ru> References: <20020121142901.GA36594@nagual.pp.ru> <20020121150716.GA36954@nagual.pp.ru> <20020121152134.GA37234@nagual.pp.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.3.24i Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Mon, Jan 21, 2002 at 17:14:24 +0100, Dag-Erling Smorgrav wrote: > Dag-Erling Smorgrav writes: > > OK, now I'm really off my rocker; pam_conv_pass() (called by > > pam_get_pass()) does set PAM_AUTHTOK. I still don't understand why > > it's NULL by the time pam_unix(8) calls pam_get_pass(). I'll > > investigate further. > > I found the bug: login(1) only sets PAM_RHOST if the user is logging > in from a remote host, but it should be set to the local hostname if > the user is logging in locally. Yes. It seems that PAM wants some form of PAM_RHOST in many places. "su", for example, does needed trick here. -- Andrey A. Chernov http://ache.pp.ru/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message