]> git.ipfire.org Git - thirdparty/dovecot/core.git/commit
auth: Auth workers shouldn't return username if it wasn't changed
authorTimo Sirainen <timo.sirainen@dovecot.fi>
Mon, 13 Mar 2017 12:23:11 +0000 (14:23 +0200)
committerGitLab <gitlab@git.dovecot.net>
Thu, 16 Mar 2017 06:50:05 +0000 (08:50 +0200)
commit865a82c1e9bba11609835a36674964649025bf77
tree2af0b586b7e8a51d018557754f60edfc0901d96e
parente0a84bcd487b05872da59781452168609b5c1f2c
auth: Auth workers shouldn't return username if it wasn't changed

This continues the previous fix where username was always added to
passdb/userdb cache, even if the username wasn't changed. That could have
resulted in wrongly changing usernames if the cache key didn't uniquely
identify the user.
src/auth/auth-request.c
src/auth/auth-request.h
src/auth/auth-worker-client.c
src/auth/passdb-blocking.c
src/auth/userdb-blocking.c