From 2dedd2addce26c3633fc702c04389c9ff36b8d41 Mon Sep 17 00:00:00 2001 From: Jan Christoph Terasa Date: Tue, 19 Feb 2019 14:41:46 +0100 Subject: [PATCH] Conditionally compile new PAM user registration logic. --- src/elogd.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/elogd.c b/src/elogd.c index cdc5b6b7..99c64750 100755 --- a/src/elogd.c +++ b/src/elogd.c @@ -27479,12 +27479,14 @@ void interprete(char *lbook, char *path) /* check if user in password file */ if (get_user_line(NULL, uname, NULL, full_name, NULL, NULL, NULL, NULL) == 2) { +#ifdef HAVE_PAM /* show new user page if username is not in password file */ getcfg(NULL, "Authentication", str, sizeof(str)); if (stristr(str, "PAM")) { show_new_user_page(NULL, uname); return; } +#endif /* HAVE_PAM */ /* if self registering not allowed, go back to login screen */ if (!getcfg(group, "Self register", str, sizeof(str)) || atoi(str) == 0) { show_login_page(NULL, str, 1); @@ -27622,12 +27624,14 @@ void interprete(char *lbook, char *path) /* check if user in password file */ if (get_user_line(lbs, uname, NULL, full_name, NULL, NULL, NULL, &inactive) == 2) { +#ifdef HAVE_PAM /* show new user page if username is not in password file */ getcfg(lbs->name, "Authentication", str, sizeof(str)); if (stristr(str, "PAM")) { show_new_user_page(lbs, uname); return; } +#endif /* HAVE_PAM */ /* if self registering not allowed, go back to login screen */ if (!getcfg(lbs->name, "Self register", str, sizeof(str)) || atoi(str) == 0) { show_login_page(lbs, str, 1);