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>
Sat, 17 Aug 2024 17:26:24 +0000 (13:26 -0400)
commitd692ea79876006f2701d884381b18a7c1f1d086c
tree7bfa3112aa7487da743991a96453e737815ad9ce
parentacd01772ce84cf58eda3756734cf53facc5007ae
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