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)
committerPeter Michael Green <plugwash@raspbian.org>
Thu, 20 Jun 2024 17:16:27 +0000 (17:16 +0000)
commit127e2807800938424209e28a1110427802198b73
treea1c5c5ff1c0c5c484943ab3fa048356aa94ce7d2
parent42d364855aa228028692c9430832d6fb40aa89d3
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