From e45674ae8026b9399fc0778a7e964efbcd093689 Mon Sep 17 00:00:00 2001 From: Darren Tucker Date: Fri, 6 Feb 2004 16:17:51 +1100 Subject: - (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. --- openbsd-compat/port-aix.h | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'openbsd-compat/port-aix.h') 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 @@ -/* $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 #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 */ -- cgit v1.2.3