changeset 10290:d861e380a059 HEAD

Removed all traces of auth-success file checking. The file no longer got written after pre/post-login process redesign and maybe it's too much trouble to get it back.
author Timo Sirainen <tss@iki.fi>
date Mon, 09 Nov 2009 20:46:57 -0500
parents 38d3e668dc1f
children d62c2361c3b6
files src/master/common.h src/master/main.c
diffstat 2 files changed, 0 insertions(+), 18 deletions(-) [+]
line wrap: on
line diff
--- a/src/master/common.h	Mon Nov 09 20:39:33 2009 -0500
+++ b/src/master/common.h	Mon Nov 09 20:46:57 2009 -0500
@@ -5,11 +5,8 @@
 #include "master-interface.h"
 #include "master-settings.h"
 
-#define AUTH_SUCCESS_PATH PKG_STATEDIR"/auth-success"
-
 extern uid_t master_uid;
 extern gid_t master_gid;
-extern bool auth_success_written;
 extern bool core_dumps_disabled;
 extern char ssl_manual_key_password[];
 extern int null_fd;
--- a/src/master/main.c	Mon Nov 09 20:39:33 2009 -0500
+++ b/src/master/main.c	Mon Nov 09 20:46:57 2009 -0500
@@ -38,7 +38,6 @@
 struct master_service *master_service;
 uid_t master_uid;
 gid_t master_gid;
-bool auth_success_written;
 bool core_dumps_disabled;
 char ssl_manual_key_password[100];
 int null_fd;
@@ -201,19 +200,6 @@
 		i_error("unlink(%s) failed: %m", path);
 }
 
-static void auth_warning_print(const struct master_settings *set)
-{
-	struct stat st;
-
-	auth_success_written = stat(AUTH_SUCCESS_PATH, &st) == 0;
-	if (!auth_success_written && !set->auth_debug) {
-		fprintf(stderr,
-"If you have trouble with authentication failures,\n"
-"enable auth_debug setting. See http://wiki.dovecot.org/WhyDoesItNotWork\n"
-"This message goes away after the first successful login.\n");
-	}
-}
-
 static bool pid_file_read(const char *path, pid_t *pid_r)
 {
 	char buf[32];
@@ -729,7 +715,6 @@
 		pid_file_check_running(pidfile_path);
 		master_settings_do_fixes(set);
 		fatal_log_check(set);
-		auth_warning_print(set);
 	}
 
 	/* save TZ environment. AIX depends on it to get the timezone