Displaying 3 results from an estimated 3 matches for "auth_approv".
Did you mean:
auth_approval
2001 Feb 16
1
OpenSSH 2.3.0p1 port to BSDI BSD/OS
...Try authentication with the password. */
authenticated = auth_password(pw, password);
#endif /* USE_PAM */
@@ -362,6 +371,10 @@
if (authenticated && !do_pam_account(pw->pw_name, client_user))
authenticated = 0;
#endif
+#ifdef HAVE_BSD_AUTH_H
+ if (authenticated && !auth_approval(NULL, NULL, pw->pw_name, "ssh"))
+ authenticated = 0;
+#endif /* HAVE_BSD_AUTH_H */
if (client_user != NULL) {
xfree(client_user);
@@ -415,6 +428,15 @@
#endif /* AFS */
/* Verify that the user is a valid user. */
+#ifdef HAVE_BSD_AUTH_H
+ /* we may have an auth typ...
2001 Jun 03
3
Handling of password & account expirations
Hello,
There has been an annoyance with OpenSSH that has been bugging me
lately. It pays no attention to pw_change and pw_expire fields from the
passwd file for users by default. Thus even if the admin has set a
user's account to expire 5 days ago they can still login. So one might
say, just add 'UseLogin yes' and all of your problems will be solved.
This of course is not a good
2022 Nov 05
1
[PATCH] Class-imposed login restrictions
...#endif /* HAVE_AUTH_HOSTOK */
+#ifdef HAVE_AUTH_TIMEOK
+ if (!auth_timeok(lc, time(NULL))) {
+ debug("LOGIN %.200s REFUSED (TIME)", pw->pw_name);
+ return (NULL);
+ }
+#endif /* HAVE_AUTH_TIMEOK */
#ifdef BSD_AUTH
if ((as = auth_open()) == NULL || auth_setpwd(as, pw) != 0 ||
auth_approval(as, lc, pw->pw_name, "ssh") <= 0) {
diff --git a/configure.ac b/configure.ac
index 1e77ecfc3..365a60969 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1839,6 +1839,8 @@ AC_SUBST([PICFLAG])
dnl Checks for library functions. Please keep in alphabetical order
AC_CHECK_FUNCS(...