SASL authorizedID being incorrectly set: should use getHostName() rather than
getServiceName()
----------------------------------------------------------------------------------------------
Key: ZOOKEEPER-1195
URL: https://issues.apache.org/jira/browse/ZOOKEEPER-1195
Project: ZooKeeper
Issue Type: Bug
Reporter: Eugene Koontz
Assignee: Eugene Koontz
Tom Klonikowski writes:
Hello developers,
the SaslServerCallbackHandler in trunk changes the principal name
service/host@REALM to service/service@REALM (i guess unintentionally).
lines 131-133:
if (!removeHost() && (kerberosName.getHostName() != null)) {
userName += "/" + kerberosName.getServiceName();
}
Server Log:
SaslServerCallbackHandler@115] - Successfully authenticated client:
authenticationID=fetcher/ubook@QUINZOO;
authorizationID=fetcher/ubook@QUINZOO.
SaslServerCallbackHandler@137] - Setting authorizedID:
fetcher/fetcher@QUINZOO
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira