dovecot-2.0: auth: Fixed using ldap plugin.

dovecot at dovecot.org dovecot at dovecot.org
Wed May 20 21:04:42 EEST 2009


details:   http://hg.dovecot.org/dovecot-2.0/rev/94547703da25
changeset: 9330:94547703da25
user:      Timo Sirainen <tss at iki.fi>
date:      Wed May 20 14:04:25 2009 -0400
description:
auth: Fixed using ldap plugin.

diffstat:

3 files changed, 22 insertions(+), 12 deletions(-)
src/auth/db-ldap.c     |   20 ++++++++++----------
src/auth/passdb-ldap.c |    7 ++++++-
src/auth/userdb-ldap.c |    7 ++++++-

diffs (71 lines):

diff -r ed142749ce67 -r 94547703da25 src/auth/db-ldap.c
--- a/src/auth/db-ldap.c	Wed May 20 13:52:49 2009 -0400
+++ b/src/auth/db-ldap.c	Wed May 20 14:04:25 2009 -0400
@@ -1355,23 +1355,23 @@ void db_ldap_unref(struct ldap_connectio
 
 #ifndef BUILTIN_LDAP
 /* Building a plugin */
-extern struct passdb_module_interface passdb_ldap;
-extern struct userdb_module_interface userdb_ldap;
+extern struct passdb_module_interface passdb_ldap_plugin;
+extern struct userdb_module_interface userdb_ldap_plugin;
 
 void authdb_ldap_init(void);
 void authdb_ldap_deinit(void);
 
 void authdb_ldap_init(void)
 {
-	passdb_register_module(&passdb_ldap);
-	userdb_register_module(&userdb_ldap);
+	passdb_register_module(&passdb_ldap_plugin);
+	userdb_register_module(&userdb_ldap_plugin);
 
 }
 void authdb_ldap_deinit(void)
 {
-	passdb_unregister_module(&passdb_ldap);
-	userdb_unregister_module(&userdb_ldap);
-}
-#endif
-
-#endif
+	passdb_unregister_module(&passdb_ldap_plugin);
+	userdb_unregister_module(&userdb_ldap_plugin);
+}
+#endif
+
+#endif
diff -r ed142749ce67 -r 94547703da25 src/auth/passdb-ldap.c
--- a/src/auth/passdb-ldap.c	Wed May 20 13:52:49 2009 -0400
+++ b/src/auth/passdb-ldap.c	Wed May 20 14:04:25 2009 -0400
@@ -435,7 +435,12 @@ static void passdb_ldap_deinit(struct pa
 	db_ldap_unref(&module->conn);
 }
 
-struct passdb_module_interface passdb_ldap = {
+#ifndef PLUGIN_BUILD
+struct passdb_module_interface passdb_ldap =
+#else
+struct passdb_module_interface passdb_ldap_plugin =
+#endif
+{
 	"ldap",
 
 	passdb_ldap_preinit,
diff -r ed142749ce67 -r 94547703da25 src/auth/userdb-ldap.c
--- a/src/auth/userdb-ldap.c	Wed May 20 13:52:49 2009 -0400
+++ b/src/auth/userdb-ldap.c	Wed May 20 14:04:25 2009 -0400
@@ -277,7 +277,12 @@ static void userdb_ldap_deinit(struct us
 	db_ldap_unref(&module->conn);
 }
 
-struct userdb_module_interface userdb_ldap = {
+#ifndef PLUGIN_BUILD
+struct userdb_module_interface userdb_ldap =
+#else
+struct userdb_module_interface userdb_ldap_plugin =
+#endif
+{
 	"ldap",
 
 	userdb_ldap_preinit,


More information about the dovecot-cvs mailing list