dovecot-2.0-sslstream: Removed all traces of auth-success file c...

dovecot at dovecot.org dovecot at dovecot.org
Sat Feb 13 02:56:14 EET 2010


details:   http://hg.dovecot.org/dovecot-2.0-sslstream/rev/d861e380a059
changeset: 10291:d861e380a059
user:      Timo Sirainen <tss at iki.fi>
date:      Mon Nov 09 20:46:57 2009 -0500
description:
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.

diffstat:

2 files changed, 18 deletions(-)
src/master/common.h |    3 ---
src/master/main.c   |   15 ---------------

diffs (54 lines):

diff -r 38d3e668dc1f -r d861e380a059 src/master/common.h
--- 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;
diff -r 38d3e668dc1f -r d861e380a059 src/master/main.c
--- 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;
 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;
@@ -199,19 +198,6 @@ static void fatal_log_check(const struct
 	close(fd);
 	if (unlink(path) < 0)
 		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)
@@ -729,7 +715,6 @@ int main(int argc, char *argv[])
 		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


More information about the dovecot-cvs mailing list