]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-ldap: ldap_client_settings - Rename debug into debug_level
authorMarco Bettini <marco.bettini@open-xchange.com>
Fri, 20 Sep 2024 13:23:20 +0000 (13:23 +0000)
committerAki Tuomi <aki.tuomi@open-xchange.com>
Fri, 17 Jan 2025 08:40:01 +0000 (10:40 +0200)
src/lib-dict-backend/dict-ldap.c
src/lib-ldap/ldap-client.h
src/lib-ldap/ldap-connection.c

index 0f578de074760a63da212413340c333d83f3fb0d..b76757eb3056b433b265d740192f1506dfbd215a 100644 (file)
@@ -128,7 +128,7 @@ int dict_ldap_connect(struct ldap_dict *dict, const char **error_r)
        set.auth_dn_password = dict->set->password;
        set.timeout_secs = dict->set->timeout;
        set.max_idle_time_secs = dict->set->max_idle_time;
-       set.debug = dict->set->debug;
+       set.debug_level = dict->set->debug;
        set.require_ssl = dict->set->require_ssl;
        set.starttls = dict->set->start_tls;
        set.event_parent = dict->event;
index 9f689d4d05c5fe1fe45dd6677626c04dc6866788..3f9208d0a5a4938d85178bffec867b675c2c7475 100644 (file)
@@ -30,7 +30,7 @@ struct ldap_client_settings {
 
        unsigned int timeout_secs;
        unsigned int max_idle_time_secs;
-       unsigned int debug;
+       unsigned int debug_level;
        bool require_ssl;
        bool starttls;
 };
index 88d6f4b22a62ad5eb1a5745136244277b85a8054..3c557899d8968fa2c894b71bf88f3bc9abc87640 100644 (file)
@@ -98,7 +98,7 @@ int ldap_connection_setup(struct ldap_connection *conn, const char **error_r)
        if (conn->ssl_set.curve_list != NULL)
                ldap_set_option(conn->conn, LDAP_OPT_X_TLS_ECNAME, conn->ssl_set.curve_list);
 
-       opt = conn->set.debug;
+       opt = conn->set.debug_level;
        ldap_set_option(NULL, LDAP_OPT_DEBUG_LEVEL, &opt);
 
        opt = LDAP_VERSION3;
@@ -127,7 +127,7 @@ bool ldap_connection_have_settings(struct ldap_connection *conn,
                return FALSE;
        if (conn_set->timeout_secs != set->timeout_secs ||
            conn_set->max_idle_time_secs != set->max_idle_time_secs ||
-           conn_set->debug != set->debug ||
+           conn_set->debug_level != set->debug_level ||
            conn_set->require_ssl != set->require_ssl ||
            conn_set->starttls != set->starttls)
                return FALSE;
@@ -403,7 +403,7 @@ ldap_connection_connect_parse(struct ldap_connection *conn,
                                        return LDAP_UNAVAILABLE;
                                }
                        } else {
-                               if (conn->set.debug > 0)
+                               if (conn->set.debug_level > 0)
                                        e_debug(conn->event,
                                                "Using TLS connection to remote LDAP server");
                        }