[ 
https://issues.apache.org/jira/browse/HADOOP-16214?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16812909#comment-16812909
 ] 

Eric Yang edited comment on HADOOP-16214 at 4/9/19 1:09 AM:
------------------------------------------------------------

[~daryn] In Linux, HTTP/abc.com isn't a valid name, where 
HTTP/abc....@example.com is.  I am not sure that the code must retain the same 
output for the two distinct cases.  The change in patch 6 is to make sure that 
we don't try to make an invalidate username into a valid one by not making 
modification to username.  Patch 8 will keep the consistency for no realm case 
with realm case, but it may allow invalid username to become valid one.  Maybe 
we should just throw error for HTTP/abc.com?


was (Author: eyang):
[~daryn] In Linux, HTTP/abc.com isn't a valid name, where 
HTTP/abc....@example.com is.  I am not sure that the code must retain the same 
output for the two distinct cases.  The change in patch 6 is to make sure that 
we don't try to make an invalidate username into a valid one by not making 
modification to username.  Patch 8 will keep the consistency for no realm case 
with realm case, but it may allow invalid username to become valid one.

> Kerberos name implementation in Hadoop does not accept principals with more 
> than two components
> -----------------------------------------------------------------------------------------------
>
>                 Key: HADOOP-16214
>                 URL: https://issues.apache.org/jira/browse/HADOOP-16214
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: auth
>            Reporter: Issac Buenrostro
>            Priority: Major
>         Attachments: HADOOP-16214.001.patch, HADOOP-16214.002.patch, 
> HADOOP-16214.003.patch, HADOOP-16214.004.patch, HADOOP-16214.005.patch, 
> HADOOP-16214.006.patch, HADOOP-16214.007.patch, HADOOP-16214.008.patch
>
>
> org.apache.hadoop.security.authentication.util.KerberosName is in charge of 
> converting a Kerberos principal to a user name in Hadoop for all of the 
> services requiring authentication.
> Although the Kerberos spec 
> ([https://web.mit.edu/kerberos/krb5-1.5/krb5-1.5.4/doc/krb5-user/What-is-a-Kerberos-Principal_003f.html])
>  allows for an arbitrary number of components in the principal, the Hadoop 
> implementation will throw a "Malformed Kerberos name:" error if the principal 
> has more than two components (because the regex can only read serviceName and 
> hostName).



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: common-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: common-issues-h...@hadoop.apache.org

Reply via email to