From 7fba86ea8f421f0801d1b4a92e805e1fac020da8 Mon Sep 17 00:00:00 2001 From: Sumit Bose Date: Thu, 12 Sep 2024 13:20:00 +0200 Subject: [PATCH] LDAP: read ldap_use_ppolicy as boolean This patch fixes a typo where the ldap_use_ppolicy option is read as int instead of boolean. This will avoid debug messages like e.g. "Requested type 'Number' for option 'ldap_use_ppolicy' but value is of type 'Boolean'!" --- src/providers/ldap/ldap_auth.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/providers/ldap/ldap_auth.c b/src/providers/ldap/ldap_auth.c index ccb05f6fcaf..9ccbdabdbee 100644 --- a/src/providers/ldap/ldap_auth.c +++ b/src/providers/ldap/ldap_auth.c @@ -1208,7 +1208,7 @@ sdap_pam_change_password_send(TALLOC_CTX *mem_ctx, switch (opts->pwmodify_mode) { case SDAP_PWMODIFY_EXOP: - use_ppolicy = dp_opt_get_int(opts->basic, SDAP_USE_PPOLICY); + use_ppolicy = dp_opt_get_bool(opts->basic, SDAP_USE_PPOLICY); subreq = sdap_exop_modify_passwd_send(state, ev, sh, user_dn, password, new_password, timeout, use_ppolicy);