pam-afs-new-features-20010907
[openafs.git] / src / pam / afs_message.h
1 /*
2  * Copyright 2000, International Business Machines Corporation and others.
3  * All Rights Reserved.
4  * 
5  * This software has been released under the terms of the IBM Public
6  * License.  For details, see the LICENSE file in the top-level source
7  * directory or online at http://www.openafs.org/dl/license10.html
8  */
9
10 #ifndef PAM_AFS_MESSAGE_H
11 #define PAM_AFS_MESSAGE_H
12
13
14 #define PAMAFS_UNKNOWNOPT       1  /* "Unknown option: %s"              */
15 #define PAMAFS_NOUSER           2  /* "Username unavailable: code=%d"   */
16 #define PAMAFS_USERNAMEDEBUG    3  /* "Username = `%s'"                 */
17 #define PAMAFS_PASSWD_REQ       4  /* "Password required but not supplied" */
18 #define PAMAFS_PWD_PROMPT       5  /* "AFS Password: "                  */
19 #define PAMAFS_CANNOT_PROMPT    6  /* "Cannot issue prompt"             */
20 #define PAMAFS_GOTPASS          7  /* "Trying first password"           */
21 #define PAMAFS_NOFIRSTPASS      8  /* "No first password"               */
22 #define PAMAFS_GETPASS_FAILED   9  /* "Couldn't get passwd via prompt"  */
23 #define PAMAFS_AFS_UNAVAIL      10 /* "AFS not available"               */
24 #define PAMAFS_AFS_ERROR        11 /* "AFS error code 0x%08x"           */
25 #define PAMAFS_LOGIN_OK         12 /* "AFS Authentication succeeded.\n" */
26 #define PAMAFS_LOGIN_FAILED     13 /* "AFS Authentication failed.\n"    */
27 #define PAMAFS_PAMERROR         14 /* "PAM error, code=%d"              */
28 #define PAMAFS_UID_OVERFLOW     15 /* "AFS uid exceeds OS bounds.\n"    */
29 #define PAMAFS_NON_MT_PROG      16 /* "The AFS PAM module may not b..." */
30 #define PAMAFS_OPTIONS          17 /* "Option: nowarn=%d, use_first..." */
31 #define PAMAFS_NO_USER_INT      18 /* "No pam_conv conversation str..." */
32 #define PAMAFS_DELCRED          19 /* "Deleting creds"                  */
33 #define PAMAFS_REFRESHCRED      20 /* "Refreshing creds"                */
34 #define PAMAFS_NILPASSWORD      21 /* "Won't use illegal password"      */
35 #define PAMAFS_ESTABCRED        22 /* "Establishing creds"              */
36 #define PAMAFS_PUT_CREDS        23 /* "AFS credentials established.\n"  */
37 #define PAMAFS_NOCELLNAME       24 /* "Couldn't find local cell name"   */
38 #define PAMAFS_XENOPHOBIA       25 /* "Foreign users are not valid ..." */
39 #define PAMAFS_IGNORINGROOT     26 /* "Ignoring superuser %s"           */
40 #define PAMAFS_UID_MISMATCH     27 /* "AFS/local UIDs do not match"     */
41 #define PAMAFS_REJ_FOREIGN      28 /* "Rejected foreign user %s"        */
42 #define PAMAFS_LEGACYCREDS      29 /* "Deleting leftover creds from..." */
43 #define PAMAFS_NO_CREDS         30 /* "You have no AFS credentials.\n"  */
44 #define PAMAFS_REINITCRED       31 /* "ReInitializing creds"            */
45 #define PAMAFS_PASSEXPFAIL      32 /* "Failed to set PASSWORD_EXPIRES"  */
46 #define PAMAFS_CHOWNKRB         33 /* "Failed to chown krb ticketfile"  */
47 #define PAMAFS_KRBFAIL          34 /* "Failed to set KRBTKTFILE"        */
48 #define PAMAFS_REMAINLIFETIME   35 /* "Unknown remaining lifetime"      */
49 #define PAMAFS_SESSIONCLOSED1   36 /* "Session closed"                  */
50 #define PAMAFS_SESSIONCLOSED2   37 /* "Session closed, Tokens destroyed"*/
51 #define PAMAFS_CONFLICTOPT      38 /* "Option conflict"                 */
52 #define PAMAFS_IGNOREUID        39 /* "Unknown uid"                     */
53 #define PAMAFS_NEW_PWD_PROMPT   40 /* "New AFS Password:"               */
54 #define PAMAFS_VERIFY_PWD_PROMPT  41 /* "New AFS Password (again):"     */
55 #define PAMAFS_KAPASS_FAIL      42 /* "Failed to change AFS password"   */
56 #define PAMAFS_FLAGS            43 /* "Missing PAM flag:"               */
57 #define PAMAFS_KAERROR          44 /* "ka error, code=%d"               */
58 #define PAMAFS_NE_PASSWORD      45 /* "Passwords are not equal"         */
59 #define PAMAFS_IGNORE_UNREG     46 /* "AFS ignoring unregistered user"  */
60
61
62 char *pam_afs_message(int msgnum, int *freeit);
63 void pam_afs_syslog(int priority, int msgid, ...);
64
65
66 #endif