[
https://issues.apache.org/jira/browse/CASSANDRA-1474?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Jonathan Ellis resolved CASSANDRA-1474.
---------------------------------------
Resolution: Duplicate
see CASSANDRA-1447
> SimpleAuthenticator with MD5 does not work
> ------------------------------------------
>
> Key: CASSANDRA-1474
> URL: https://issues.apache.org/jira/browse/CASSANDRA-1474
> Project: Cassandra
> Issue Type: Bug
> Components: Core
> Affects Versions: 0.6.5
> Environment: Any, for the purpose of this test Vista was used
> Reporter: Peter Nerg
>
> When running the SimpleAuthenticator in MD5 mode it will try to compare the
> plain text password with a MD5 digest from the passwd.properties file.
> However the password in the property file is already a MD5 digest thus it's
> now digested twice.
> Code snippet
> "
> case MD5:
> authenticated =
> MessageDigest.isEqual(password.getBytes(),
> MessageDigest.getInstance("MD5").digest(props.getProperty(username).getBytes()));
> break;
> "
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.