Skip to content

Commit f8dc0bc

Browse files
committed
fixed JMX auth
1 parent 52e3f44 commit f8dc0bc

File tree

1 file changed

+1
-15
lines changed

1 file changed

+1
-15
lines changed

base/src/main/java/com/instaclustr/cassandra/ldap/AbstractLDAPAuthenticator.java

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -68,20 +68,6 @@ public void validateConfiguration() throws ConfigurationException
6868
@Override
6969
public AuthenticatedUser legacyAuthenticate(final Map<String, String> credentials) throws AuthenticationException
7070
{
71-
final String username = credentials.get(LDAP_DN);
72-
73-
if (username == null)
74-
{
75-
throw new AuthenticationException(format("Required key '%s' is missing", LDAP_DN));
76-
}
77-
78-
final String password = credentials.get(PASSWORD_KEY);
79-
80-
if (password == null)
81-
{
82-
throw new AuthenticationException(format("Required key '%s' is missing for provided username %s", PASSWORD_KEY, username));
83-
}
84-
85-
return authenticate(username, password);
71+
return authenticate(credentials.get("username"), credentials.get("password"));
8672
}
8773
}

0 commit comments

Comments
 (0)