]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
auth: ldap - Change ldap_deref & ldap_scope into enums
authorMarco Bettini <marco.bettini@open-xchange.com>
Fri, 6 Sep 2024 13:59:16 +0000 (13:59 +0000)
committerAki Tuomi <aki.tuomi@open-xchange.com>
Wed, 12 Feb 2025 10:34:13 +0000 (12:34 +0200)
src/auth/db-ldap-settings.c

index f2918f3534b0830b59488558365d3a19c9cbce0a..18c9e2de704d01a797164866dae9e9f0b7d75be9 100644 (file)
@@ -26,8 +26,8 @@ static const struct setting_define ldap_setting_defines[] = {
        DEF(STR, auth_sasl_realm),
        DEF(STR, auth_sasl_authz_id),
        DEF(BOOL, starttls),
-       DEF(STR, deref),
-       DEF(STR, scope),
+       DEF(ENUM, deref),
+       DEF(ENUM, scope),
        DEF(UINT, version),
        DEF(STR, debug_level),
        SETTING_DEFINE_LIST_END
@@ -42,8 +42,8 @@ static const struct ldap_settings ldap_default_settings = {
        .auth_sasl_realm = "",
        .auth_sasl_authz_id = "",
        .starttls = FALSE,
-       .deref = "never",
-       .scope = "subtree",
+       .deref = "never:searching:finding:always",
+       .scope = "subtree:onelevel:base",
        .version = 3,
        .debug_level = "0",
 };