/* Define to 1 if you have the `getaddrinfo' function. */
#undef HAVE_GETADDRINFO
-/* Define to 1 if you have the `getauthuid' function. (ULTRIX 4.x shadow
- passwords). */
-#undef HAVE_GETAUTHUID
-
/* Define to 1 if you have the `getdomainname' function. */
#undef HAVE_GETDOMAINNAME
# lockf() is broken on the Hurd
ac_cv_func_lockf=no
;;
- *-*-ultrix*)
- OS="ultrix"
- shadow_funcs="getauthuid"
- shadow_libs="-lauth"
- ;;
*-*-riscos*)
LIBS="${LIBS} -lsun -lbsd"
-
# lockf() is broken on the Hurd
ac_cv_func_lockf=no
;;
- *-*-ultrix*)
- OS="ultrix"
- shadow_funcs="getauthuid"
- shadow_libs="-lauth"
- ;;
*-*-riscos*)
LIBS="${LIBS} -lsun -lbsd"
SUDO_APPEND_CPPFLAGS(-I/usr/include)
AH_TEMPLATE(HAVE_FCNTL_CLOSEM, [Define to 1 if your system has the F_CLOSEM fcntl.])
AH_TEMPLATE(HAVE_FNMATCH, [Define to 1 if you have the `fnmatch' function.])
AH_TEMPLATE(HAVE_FWTK, [Define to 1 if you use the FWTK authsrv daemon.])
-AH_TEMPLATE(HAVE_GETAUTHUID, [Define to 1 if you have the `getauthuid' function. (ULTRIX 4.x shadow passwords).])
AH_TEMPLATE(HAVE_GETPRPWNAM, [Define to 1 if you have the `getprpwnam' function. (SecureWare-style shadow passwords).])
AH_TEMPLATE(HAVE_GETPWANAM, [Define to 1 if you have the `getpwanam' function. (SunOS 4.x shadow passwords).])
AH_TEMPLATE(HAVE_GETSPNAM, [Define to 1 if you have the `getspnam' function (SVR4-style shadow passwords).])
if (pass[0] == '\0')
debug_return_int(pw_epasswd[0] ? AUTH_FAILURE : AUTH_SUCCESS);
-#ifdef HAVE_GETAUTHUID
- /* Ultrix shadow passwords may use crypt16() */
- epass = (char *) crypt16(pass, pw_epasswd);
- if (epass != NULL && strcmp(pw_epasswd, epass) == 0)
- debug_return_int(AUTH_SUCCESS);
-#endif /* HAVE_GETAUTHUID */
-
/*
* Truncate to 8 chars if standard DES since not all crypt()'s do this.
* If this turns out not to be safe we will have to use OS #ifdef's (sigh).
# include <sys/audit.h>
# include <pwdadj.h>
#endif /* HAVE_GETPWANAM */
-#ifdef HAVE_GETAUTHUID
-# include <auth.h>
-#endif /* HAVE_GETAUTHUID */
#include "sudoers.h"
epw = spw->pwa_passwd;
}
#endif /* HAVE_GETPWANAM */
-#ifdef HAVE_GETAUTHUID
- {
- AUTHORIZATION *spw;
-
- if ((spw = getauthuid(pw->pw_uid)) && spw->a_password)
- epw = spw->a_password;
- }
-#endif /* HAVE_GETAUTHUID */
#if defined(HAVE_ISCOMSEC) || defined(HAVE_ISSECURE)
done:
#endif
#ifdef HAVE_GETPWANAM
setpwaent();
-#endif
-#ifdef HAVE_GETAUTHUID
- setauthent();
#endif
debug_return;
}
#endif
#ifdef HAVE_GETPWANAM
endpwaent();
-#endif
-#ifdef HAVE_GETAUTHUID
- endauthent();
#endif
debug_return;
}