dovecot-2.1: auth: userdb passwd iteration skips now also users ...

dovecot at dovecot.org dovecot at dovecot.org
Sun Mar 4 13:56:38 EET 2012


details:   http://hg.dovecot.org/dovecot-2.1/rev/694ea6e13a86
changeset: 14243:694ea6e13a86
user:      Timo Sirainen <tss at iki.fi>
date:      Sun Mar 04 13:56:33 2012 +0200
description:
auth: userdb passwd iteration skips now also users with /usr/sbin/nologin shell

diffstat:

 src/auth/userdb-passwd.c |  3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diffs (13 lines):

diff -r 31ae11fe18b2 -r 694ea6e13a86 src/auth/userdb-passwd.c
--- a/src/auth/userdb-passwd.c	Sun Mar 04 13:20:21 2012 +0200
+++ b/src/auth/userdb-passwd.c	Sun Mar 04 13:56:33 2012 +0200
@@ -150,7 +150,8 @@
 	/* skip entries that don't have a valid shell.
 	   they're again probably not real users. */
 	if (strcmp(pw->pw_shell, "/bin/false") == 0 ||
-	    strcmp(pw->pw_shell, "/sbin/nologin") == 0)
+	    strcmp(pw->pw_shell, "/sbin/nologin") == 0 ||
+	    strcmp(pw->pw_shell, "/usr/sbin/nologin") == 0)
 		return FALSE;
 	return TRUE;
 }


More information about the dovecot-cvs mailing list