Skip to content

Commit

Permalink
improvements for 664032
Browse files Browse the repository at this point in the history
  • Loading branch information
smiklosovic committed Feb 25, 2025
1 parent 948940f commit a2ded50
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ public void setup()
{
try
{
if (!systemAuthRoles.hasAdminRole())
if (!systemAuthRoles.hasAdminRole(adminRole))
{
throw new IllegalStateException("Waiting for " + adminRole + " role!");
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ public void setup()
{
if (dbaRole.equals("cassandra"))
{
throw new IllegalStateException();
throw new IllegalStateException("Role 'cassandra' can not log in");
}
logger.info("Role '" + dbaRole + "' can not log in, prematurely existing setup, not going to create LDAP admin role {}", ldapAdminRole);
return null;
Expand Down Expand Up @@ -181,7 +181,7 @@ public boolean canLogin(RoleResource role)
}
catch (RequestExecutionException e)
{
logger.debug("Failed to authorize {} for login permission", role.getRoleName());
logger.debug("Failed to authorize " + role.getRoleName() + " for login permission ", e);
throw new UnauthorizedException("Unable to perform authorization of login permission: " + e.getMessage());
}
}
Expand Down

0 comments on commit a2ded50

Please sign in to comment.