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) | |
download | openssh-git-e45674ae8026b9399fc0778a7e964efbcd093689.tar.gz |
- (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 975cdf05..930b3f24 100644 --- a/openbsd-compat/port-aix.h +++ b/openbsd-compat/port-aix.h @@ -1,4 +1,4 @@ -/* $Id: port-aix.h,v 1.16 2003/11/22 03:16:57 dtucker Exp $ */ +/* $Id: port-aix.h,v 1.17 2004/02/06 05:17:52 dtucker Exp $ */ /* * @@ -51,6 +51,14 @@ # include <sys/timers.h> #endif +/* + * According to the setauthdb man page, AIX password registries must be 15 + * chars or less plus terminating NUL. + */ +#ifdef HAVE_SETAUTHDB +# define REGISTRY_SIZE 16 +#endif + void aix_usrinfo(struct passwd *); #ifdef WITH_AIXAUTHENTICATE @@ -60,5 +68,6 @@ void record_failed_login(const char *, const char *); int aix_authenticate(const char *, const char *, const char *); void aix_setauthdb(const char *); +void aix_restoreauthdb(void); void aix_remove_embedded_newlines(char *); #endif /* _AIX */ |