Browse Source

Merge pull request #14170 from RussWhitehead/cacheFix710x

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>
Richard Chapman 4 years ago
parent
commit
c9cd55b01b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      system/security/LdapSecurity/ldapsecurity.cpp

+ 1 - 1
system/security/LdapSecurity/ldapsecurity.cpp

@@ -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;