auth: Fix handling passdbs with identical driver/args but different mechanisms/userna...
authorTimo Sirainen <timo.sirainen@open-xchange.com>
Mon, 9 May 2022 12:23:33 +0000 (15:23 +0300)
committerNoah Meyerhans <noahm@debian.org>
Sun, 10 Mar 2024 06:31:22 +0000 (22:31 -0800)
commitf15655553792c9131110a834194bae0775f772b1
tree7f0af4c6f09ec25982c8f759732fff01e770fbc4
parent538cfc62c60193fa43f10383c50b828414027ceb
auth: Fix handling passdbs with identical driver/args but different mechanisms/username_filter

The passdb was wrongly deduplicated in this situation, causing wrong
mechanisms or username_filter setting to be used. This would be a rather
unlikely configuration though.

Fixed by moving mechanisms and username_filter from struct passdb_module
to struct auth_passdb, which is where they should have been in the first
place.

Gbp-Pq: Name auth-Fix-handling-passdbs-with-identical-driver-args-but-.patch
src/auth/auth-request.c
src/auth/auth.c
src/auth/auth.h
src/auth/passdb.c
src/auth/passdb.h