From: Alan T. DeKok Date: Sun, 23 Apr 2023 15:59:45 +0000 (-0400) Subject: password may be NULL. CID #1524744 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b8e50fd31cf52668e34694d13f3edc114520dd00;p=thirdparty%2Ffreeradius-server.git password may be NULL. CID #1524744 --- diff --git a/src/modules/rlm_ldap/rlm_ldap.c b/src/modules/rlm_ldap/rlm_ldap.c index 1e07003f90d..2d128735656 100644 --- a/src/modules/rlm_ldap/rlm_ldap.c +++ b/src/modules/rlm_ldap/rlm_ldap.c @@ -1479,7 +1479,14 @@ static unlang_action_t mod_authorize_resume(rlm_rcode_t *p_result, UNUSED int *p fr_ldap_thread_t *thread = talloc_get_type_abort(module_rlm_thread_by_data(inst)->data, fr_ldap_thread_t); + if (!password) { + REDEBUG("Failed to find &control.Password.Cleartext"); + rcode = RLM_MODULE_FAIL; + goto finish; + } + RDEBUG2("Binding as %s for eDirectory authorization checks", autz_ctx->dn); + /* * Bind as the user */