diff options
author | Darren Tucker <dtucker@zip.com.au> | 2004-02-06 16:17:51 +1100 |
---|---|---|
committer | Darren Tucker <dtucker@zip.com.au> | 2004-02-06 16:17:51 +1100 |
commit | e45674ae8026b9399fc0778a7e964efbcd093689 (patch) | |
tree | 632cae57a5e429a8586661f07a7f592bc4b389ee /openbsd-compat/port-aix.h | |
parent | ecc9d46dc53cddb5a220f89e6160b3ca6178bb9c (diff) |
- (dtucker) [openbsd-compat/port-aix.c openbsd-compat/port-aix.h] Restore
previous authdb setting after auth calls. Fixes problems with setpcred
failing on accounts that use AFS or NIS password registries.
Diffstat (limited to 'openbsd-compat/port-aix.h')
-rw-r--r-- | openbsd-compat/port-aix.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/openbsd-compat/port-aix.h b/openbsd-compat/port-aix.h index 975cdf051..930b3f248 100644 --- a/openbsd-compat/port-aix.h +++ b/openbsd-compat/port-aix.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $Id: port-aix.h,v 1.16 2003/11/22 03:16:57 dtucker Exp $ */ | 1 | /* $Id: port-aix.h,v 1.17 2004/02/06 05:17:52 dtucker Exp $ */ |
2 | 2 | ||
3 | /* | 3 | /* |
4 | * | 4 | * |
@@ -51,6 +51,14 @@ | |||
51 | # include <sys/timers.h> | 51 | # include <sys/timers.h> |
52 | #endif | 52 | #endif |
53 | 53 | ||
54 | /* | ||
55 | * According to the setauthdb man page, AIX password registries must be 15 | ||
56 | * chars or less plus terminating NUL. | ||
57 | */ | ||
58 | #ifdef HAVE_SETAUTHDB | ||
59 | # define REGISTRY_SIZE 16 | ||
60 | #endif | ||
61 | |||
54 | void aix_usrinfo(struct passwd *); | 62 | void aix_usrinfo(struct passwd *); |
55 | 63 | ||
56 | #ifdef WITH_AIXAUTHENTICATE | 64 | #ifdef WITH_AIXAUTHENTICATE |
@@ -60,5 +68,6 @@ void record_failed_login(const char *, const char *); | |||
60 | 68 | ||
61 | int aix_authenticate(const char *, const char *, const char *); | 69 | int aix_authenticate(const char *, const char *, const char *); |
62 | void aix_setauthdb(const char *); | 70 | void aix_setauthdb(const char *); |
71 | void aix_restoreauthdb(void); | ||
63 | void aix_remove_embedded_newlines(char *); | 72 | void aix_remove_embedded_newlines(char *); |
64 | #endif /* _AIX */ | 73 | #endif /* _AIX */ |