Skip to content

Commit

Permalink
LDAP: read ldap_use_ppolicy as boolean
Browse files Browse the repository at this point in the history
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'!"

Reviewed-by: Alexey Tikhonov <[email protected]>
  • Loading branch information
sumit-bose authored and alexey-tikhonov committed Sep 13, 2024
1 parent 0be58a2 commit f22c966
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/providers/ldap/ldap_auth.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit f22c966

Please sign in to comment.