dovecot-2.1: auth: Fixed loading passdb/userdb plugins.

dovecot at dovecot.org dovecot at dovecot.org
Tue Jan 17 16:07:18 EET 2012


details:   http://hg.dovecot.org/dovecot-2.1/rev/352d3f2f8bb7
changeset: 13936:352d3f2f8bb7
user:      Timo Sirainen <tss at iki.fi>
date:      Tue Jan 17 16:07:13 2012 +0200
description:
auth: Fixed loading passdb/userdb plugins.
Patch by Stephan Bosch.

diffstat:

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

diffs (24 lines):

diff -r b8fa70a81c8c -r 352d3f2f8bb7 src/auth/passdb.c
--- a/src/auth/passdb.c	Tue Jan 17 15:44:26 2012 +0200
+++ b/src/auth/passdb.c	Tue Jan 17 16:07:13 2012 +0200
@@ -191,7 +191,7 @@
 	unsigned int idx;
 
 	iface = passdb_interface_find(set->driver);
-	if (iface == NULL) {
+	if (iface == NULL || iface->verify_plain == NULL) {
 		/* maybe it's a plugin. try to load it. */
 		auth_module_load(t_strconcat("authdb_", set->driver, NULL));
 		iface = passdb_interface_find(set->driver);
diff -r b8fa70a81c8c -r 352d3f2f8bb7 src/auth/userdb.c
--- a/src/auth/userdb.c	Tue Jan 17 15:44:26 2012 +0200
+++ b/src/auth/userdb.c	Tue Jan 17 16:07:13 2012 +0200
@@ -137,7 +137,7 @@
 	unsigned int idx;
 
 	iface = userdb_interface_find(set->driver);
-	if (iface == NULL) {
+	if (iface == NULL || iface->lookup == NULL) {
 		/* maybe it's a plugin. try to load it. */
 		auth_module_load(t_strconcat("authdb_", set->driver, NULL));
 		iface = userdb_interface_find(set->driver);


More information about the dovecot-cvs mailing list