From owner-freebsd-questions@FreeBSD.ORG Sat Dec 7 15:29:18 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 047FF959 for ; Sat, 7 Dec 2013 15:29:18 +0000 (UTC) Received: from a0i55.smtpcorp.com (a0i55.smtpcorp.com [64.131.95.140]) (using TLSv1.2 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id CFA6B1479 for ; Sat, 7 Dec 2013 15:29:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=smtpcorp.com; s=a0_1; h=Content-Type:MIME-Version:Message-ID:Date:Subject:To:From; bh=gXDEhIGDhX+6gkfwMXjmj4BrFZda6Qu+FykJarUAWuM=; b=YcVuySPSLLLF7xM5N2/mYN2f1ukUvnOKjHn4qFQfotvA3JUbUPpxBMwQw9hDqN+cc2zC+qfbqNObLtq3HNmGhy2oYWin3wWH9BVXh4AWxoTCHYq6VZ6vyfzpdvJS95CGsJn129W7HNbKz19RY8VSTcEiZh/I+I8ZyamoLU23RWQ=; From: Daniel Corbe To: freebsd-questions@freebsd.org Subject: PAM Application Programming and Password prompts Date: Sat, 07 Dec 2013 18:29:07 +0300 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain X-Smtpcorp-Track: 366785172.1.14829951 X-debug-m-data: member_id=10661 trim_headers=Received X-debug-m-user: D: 3807463 N:366785172 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 07 Dec 2013 15:29:18 -0000 Hi, I hope this is the right place to ask programming related questions. I'm looking at the sample PAM application in the handbook and it appears straight-froward enough. But pam_authenticate() seems to emit its own password prompt and there seems to be no obvious way to simply feed it a plain text password. I'm manually collecting a password from the user. Can someone point me in the right direction?