Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 10 Jun 2005 06:19:40 GMT
From:      Dag-Erling Smorgrav <des@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 78319 for review
Message-ID:  <200506100619.j5A6Je4E016699@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help

http://perforce.freebsd.org/chv.cgi?CH=78319

Change 78319 by des@des.at.des.no on 2005/06/10 06:19:09

	Return specific error codes for pam_sm_setcred() and pam_sm_chauthtok()
	instead of the generic PAM_PERM_DENIED.

Affected files ...

.. //depot/projects/openpam/modules/pam_deny/pam_deny.c#10 edit

Differences ...

==== //depot/projects/openpam/modules/pam_deny/pam_deny.c#10 (text+ko) ====

@@ -31,7 +31,7 @@
  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  * SUCH DAMAGE.
  *
- * $P4: //depot/projects/openpam/modules/pam_deny/pam_deny.c#9 $
+ * $P4: //depot/projects/openpam/modules/pam_deny/pam_deny.c#10 $
  */
 
 #ifdef HAVE_CONFIG_H
@@ -55,7 +55,7 @@
 	int argc, const char *argv[])
 {
 
-	return (PAM_PERM_DENIED);
+	return (PAM_CRED_ERR);
 }
 
 PAM_EXTERN int
@@ -87,7 +87,7 @@
 	int argc, const char *argv[])
 {
 
-	return (PAM_PERM_DENIED);
+	return (PAM_AUTHTOK_ERR);
 }
 
 PAM_MODULE_ENTRY("pam_deny");



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200506100619.j5A6Je4E016699>