1*0Sstevel@tonic-gate #pragma ident "%Z%%M% %I% %E% SMI" 2*0Sstevel@tonic-gate 3*0Sstevel@tonic-gate /* 4*0Sstevel@tonic-gate * Replacement for getpwnam - we need it to handle files other than 5*0Sstevel@tonic-gate * /etc/passwd so we can permit different passwd files for each different 6*0Sstevel@tonic-gate * host 7*0Sstevel@tonic-gate * (c) 1998-2000 by Bernhard Rosenkr�nzer <bero@redhat.com> 8*0Sstevel@tonic-gate * 19980930 Initial version 9*0Sstevel@tonic-gate * 20000211 Various fixes 10*0Sstevel@tonic-gate */ 11*0Sstevel@tonic-gate 12*0Sstevel@tonic-gate #include <pwd.h> 13*0Sstevel@tonic-gate #include <sys/types.h> 14*0Sstevel@tonic-gate #include <stdio.h> 15*0Sstevel@tonic-gate #ifdef SHADOW_PASSWORD 16*0Sstevel@tonic-gate # ifdef HAVE_SHADOW_H 17*0Sstevel@tonic-gate # include <shadow.h> 18*0Sstevel@tonic-gate # endif 19*0Sstevel@tonic-gate #endif 20*0Sstevel@tonic-gate 21*0Sstevel@tonic-gate struct passwd *bero_getpwnam(const char * name, const char * file); 22*0Sstevel@tonic-gate struct passwd *bero_getpwuid(uid_t uid, const char * file); 23*0Sstevel@tonic-gate #ifdef SHADOW_PASSWORD 24*0Sstevel@tonic-gate struct spwd *bero_getspnam(const char * name, const char * file); 25*0Sstevel@tonic-gate #endif 26