pam-needs-afsdb-libs-20010712
[openafs.git] / src / pam / afs_message.c
index eb0f1ca..90334ce 100644 (file)
@@ -1,3 +1,12 @@
+/*
+ * Copyright 2000, International Business Machines Corporation and others.
+ * All Rights Reserved.
+ * 
+ * This software has been released under the terms of the IBM Public
+ * License.  For details, see the LICENSE file in the top-level source
+ * directory or online at http://www.openafs.org/dl/license10.html
+ */
+
 #include <security/pam_appl.h>
 #include <security/pam_modules.h>
 #include <syslog.h>
@@ -6,6 +15,10 @@
 #include <pwd.h>
 #include <unistd.h>
 #include <afs/param.h>
+#include <afsconfig.h>
+
+RCSID("$Header$");
+
 #include <sys/param.h>
 #include <afs/kautils.h>
 #include <stdarg.h>
@@ -27,7 +40,7 @@ static char *fallback_messages[] = {
     "AFS not available",                       /* 10: AFS_UNAVAIL      */
     "AFS error code 0x%x",                     /* 11: AFS_ERROR        */
     "AFS Authentication succeeded.\n",         /* 12: LOGIN_OK         */
-    "AFS Authentication failed for user %s. %s\n",
+    "AFS Authentication failed for user %s %s\n",
                                                /* 13: LOGIN_FAILED     */
     "AFS PAM error, code=%d",                  /* 14: PAMERROR         */
     "AFS uid exceeds OS bounds.\n",            /* 15: UID_OVERFLOW     */
@@ -55,6 +68,17 @@ static char *fallback_messages[] = {
     "AFS ReInitializing creds for user %s\n",  /* 31: REINITCRED       */
     "AFS Failed to set PASSWORD_EXPIRES for user %s\n",
                                                /* 32: PASSEXPFAIL      */
+    "",
+                                               /* 33: */
+    "",
+                                               /* 34: */
+    "AFS blindly trusting user %s\n",          /* 35: TRUSTROOT        */
+    "New AFS Password: ",                       /* 36: NEW_PWD_PROMPT   */
+    "New AFS Password (again): ",               /* 37: VERIFY_PWD_PROMPT */
+    "Failed to change AFS password",            /* 38: KRBPASS_FAIL     */
+    "Missing PAM flag: %s",                     /* 39: FLAGS            */
+    "ka error, code=%d",                        /* 40: KAERROR          */
+    "Passwords are not equal"                   /* 41: NE_PASSWORD      */
 };
 
 static int num_fallbacks = sizeof(fallback_messages)/sizeof(char *);