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

Arun Suresh commented on HADOOP-10709:
--------------------------------------

[~benoyantony],

The {{HttpServer2#build()}} method also calls the {{server.initSpnego()}} 
method which inturn also adds an *authentication* filter via the 
{{defineFilter()}} method. I think you might need to do the 
{{!HttpServer2.filterExists(name)}} check there too..

Also, in the {{HttpServer2#initializeWebServer()}} method as well :
{noformat}
    final FilterInitializer[] initializers = getFilterInitializers(conf);
    if (initializers != null) {
      conf = new Configuration(conf);
      conf.set(BIND_ADDRESS, hostName);
      for (FilterInitializer c : initializers) {
        c.initFilter(this, conf);
      }
    }
{noformat}
Do we need to do the check there as well ?

> Reuse Filters across web apps
> -----------------------------
>
>                 Key: HADOOP-10709
>                 URL: https://issues.apache.org/jira/browse/HADOOP-10709
>             Project: Hadoop Common
>          Issue Type: Improvement
>          Components: security
>            Reporter: Benoy Antony
>            Assignee: Benoy Antony
>         Attachments: HADOOP-10709-002.patch, HADOOP-10709.patch
>
>
> Currently, we need to define separate authentication filters for webhdfs and 
> general webui. This also involves defining parameters for those filters.
> It will be better if one could reuse filters for web apps if desired. 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to