[ 
https://issues.apache.org/jira/browse/ZOOKEEPER-1195?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Tom Klonikowski updated ZOOKEEPER-1195:
---------------------------------------

    Attachment: SaslAuthNamingTest.java

Proposal for a naming test

> 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
>         Attachments: SaslAuthNamingTest.java, ZOOKEEPER-1195.patch
>
>
> 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

        

Reply via email to