Return-Path: Delivered-To: apmail-labs-commits-archive@minotaur.apache.org Received: (qmail 36496 invoked from network); 16 Feb 2009 06:58:39 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 16 Feb 2009 06:58:39 -0000 Received: (qmail 41540 invoked by uid 500); 16 Feb 2009 06:58:39 -0000 Delivered-To: apmail-labs-commits-archive@labs.apache.org Received: (qmail 41457 invoked by uid 500); 16 Feb 2009 06:58:39 -0000 Mailing-List: contact commits-help@labs.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: labs@labs.apache.org Delivered-To: mailing list commits@labs.apache.org Received: (qmail 41448 invoked by uid 99); 16 Feb 2009 06:58:39 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 15 Feb 2009 22:58:39 -0800 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 16 Feb 2009 06:58:37 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 9D44523889B2; Mon, 16 Feb 2009 06:58:16 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r744824 - /labs/orthrus/trunk/src/ui/pam/pam_orthrus.c Date: Mon, 16 Feb 2009 06:58:16 -0000 To: commits@labs.apache.org From: pquerna@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20090216065816.9D44523889B2@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: pquerna Date: Mon Feb 16 06:58:16 2009 New Revision: 744824 URL: http://svn.apache.org/viewvc?rev=744824&view=rev Log: Pass the password prompt to pam_get_authtok on OpenPAM. Modified: labs/orthrus/trunk/src/ui/pam/pam_orthrus.c Modified: labs/orthrus/trunk/src/ui/pam/pam_orthrus.c URL: http://svn.apache.org/viewvc/labs/orthrus/trunk/src/ui/pam/pam_orthrus.c?rev=744824&r1=744823&r2=744824&view=diff ============================================================================== --- labs/orthrus/trunk/src/ui/pam/pam_orthrus.c (original) +++ labs/orthrus/trunk/src/ui/pam/pam_orthrus.c Mon Feb 16 06:58:16 2009 @@ -146,8 +146,8 @@ /* TODO: Figure out prompting in the 'new' OpenPAM */ /* get password */ -#ifndef OPENPAM password_prompt = apr_psprintf(pool, "%s\nPassword:", challenge); +#ifndef OPENPAM pam_err = pam_get_item(pamh, PAM_CONV, (const void **)&conv); if (pam_err != PAM_SUCCESS) { apr_pool_destroy(pool); @@ -161,7 +161,7 @@ for (retry = 0; retry < 3; ++retry) { #ifdef OPENPAM pam_err = pam_get_authtok(pamh, PAM_AUTHTOK, - (const char **)&password, NULL); + (const char **)&password, password_prompt); #else resp = NULL; pam_err = (*conv->conv)(1, &msgp, &resp, conv->appdata_ptr); --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscribe@labs.apache.org For additional commands, e-mail: commits-help@labs.apache.org