2 * Copyright 2000, International Business Machines Corporation and others.
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
10 #ifndef PAM_AFS_UTIL_H
11 #define PAM_AFS_UTIL_H
14 extern char *pam_afs_ident
;
15 extern char *pam_afs_lh
;
18 void lc_cleanup(pam_handle_t
* pamh
, void *data
, int pam_end_status
);
20 void nil_cleanup(pam_handle_t
* pamh
, void *data
, int pam_end_status
);
22 extern char *cv2string(char *ttp
, unsigned long aval
);
23 extern int do_klog(const char *user
, const char *password
,
24 const char *lifetime
, const char *cell_name
);
25 extern afs_int32
getPAG(void);
27 #define KLOG "/usr/afsws/bin/klog"
28 #define KLOGKRB "/usr/afsws/bin/klog.krb"
29 #define UNLOG "/usr/afsws/bin/unlog"
30 #define IGNORE_MAX 1000
32 #if defined(AFS_HPUX_ENV)
34 #if !defined(AFS_HPUX110_ENV)
35 #define PAM_NEW_AUTHTOK_REQD PAM_AUTHTOKEN_REQD
36 #endif /* ! AFS_HPUX110_ENV */
37 #define vsyslog(a,b,c) syslog(a,b,c)
38 #define pam_get_user(a,b,c) pam_get_item(a, PAM_USER, (void **)b)
39 #define pam_putenv(a,b) !PAM_SUCCESS
41 #endif /* AFS_HPUX_ENV */