HPCC-24726 Unable to clear permissions cache in eclwatch for dali Reviewed-By: Kevin Wang <kevin.wang@lexisnexis.com> Reviewed-By: Richard Chapman <rchapman@hpccsystems.com>
@@ -1499,7 +1499,7 @@ bool CLdapSecManager::clearPermissionsCache(ISecUser& user)
{
if(m_permissionsCache->isCacheEnabled())
- if (!authenticate(&user))
+ if (!isEmptyString(user.getName()) && !isEmptyString(user.credentials().getPassword()) && !authenticate(&user))
PROGLOG("User %s not authorized to clear permissions cache", user.getName());
return false;