added osf auth support & removed some extra spaces
This commit is contained in:
19
check.c
19
check.c
@@ -64,6 +64,10 @@ static char rcsid[] = "$Id$";
|
|||||||
#ifdef __svr4__
|
#ifdef __svr4__
|
||||||
#include <shadow.h>
|
#include <shadow.h>
|
||||||
#endif /* __svr4__ */
|
#endif /* __svr4__ */
|
||||||
|
#if defined(__osf__) && defined(HAVE_C2_SECURITY)
|
||||||
|
#include <sys/security.h>
|
||||||
|
#include <prot.h>
|
||||||
|
#endif /* __osf__ && HAVE_C2_SECURITY */
|
||||||
#if defined(ultrix) && defined(HAVE_C2_SECURITY)
|
#if defined(ultrix) && defined(HAVE_C2_SECURITY)
|
||||||
#include <auth.h>
|
#include <auth.h>
|
||||||
#endif /* ultrix && HAVE_C2_SECURITY */
|
#endif /* ultrix && HAVE_C2_SECURITY */
|
||||||
@@ -268,6 +272,9 @@ static void check_passwd()
|
|||||||
#if defined(__hpux) && defined(HAVE_C2_SECURITY)
|
#if defined(__hpux) && defined(HAVE_C2_SECURITY)
|
||||||
struct s_passwd *spw_ent;
|
struct s_passwd *spw_ent;
|
||||||
#endif /* __hpux && HAVE_C2_SECURITY */
|
#endif /* __hpux && HAVE_C2_SECURITY */
|
||||||
|
#if defined(__osf__) && defined(HAVE_C2_SECURITY)
|
||||||
|
struct pr_passwd *spw_ent;
|
||||||
|
#endif /* __osf__ && HAVE_C2_SECURITY */
|
||||||
#if defined(ultrix) && defined(HAVE_C2_SECURITY)
|
#if defined(ultrix) && defined(HAVE_C2_SECURITY)
|
||||||
AUTHORIZATION *spw_ent;
|
AUTHORIZATION *spw_ent;
|
||||||
#endif /* ultrix && HAVE_C2_SECURITY */
|
#endif /* ultrix && HAVE_C2_SECURITY */
|
||||||
@@ -291,6 +298,18 @@ static void check_passwd()
|
|||||||
if (spw_ent && spw_ent -> pw_passwd)
|
if (spw_ent && spw_ent -> pw_passwd)
|
||||||
encrypted = spw_ent -> pw_passwd;
|
encrypted = spw_ent -> pw_passwd;
|
||||||
#endif /* __hpux && HAVE_C2_SECURITY */
|
#endif /* __hpux && HAVE_C2_SECURITY */
|
||||||
|
#if defined(__osf__) && defined(HAVE_C2_SECURITY)
|
||||||
|
/*
|
||||||
|
* grab encrypted password from protected passwd file
|
||||||
|
* or just use the regular one...
|
||||||
|
*/
|
||||||
|
be_root();
|
||||||
|
(void) set_auth_parameters();
|
||||||
|
spw_ent = getprpwuid(uid);
|
||||||
|
be_user();
|
||||||
|
if (spw_ent && spw_ent -> ufld)
|
||||||
|
encrypted = spw_ent -> ufld.fd_encrypt;
|
||||||
|
#endif /* __osf__ && HAVE_C2_SECURITY */
|
||||||
#if defined(ultrix) && defined(HAVE_C2_SECURITY)
|
#if defined(ultrix) && defined(HAVE_C2_SECURITY)
|
||||||
/*
|
/*
|
||||||
* grab encrypted password from /etc/auth
|
* grab encrypted password from /etc/auth
|
||||||
|
Reference in New Issue
Block a user