This Confluence has been LDAP enabled, if you are an ASF Committer, please use your LDAP Credentials to login. Any problems file an INFRA jira ticket please.

Child pages
  • Apache Knox Dynamic Configuration End-to-End

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagexml
<gateway>
    <provider>
        <role>authentication</role>
        <name>ShiroProvider</name>
        <enabled>true</enabled>
        <param<param>
name="sessionTimeout" value="30"/>         <name>sessionTimeout</name>
        <param name="main.ldapRealm" value="org <value>30</value>
        </param>
        <param>
         <name>main.ldapRealm</name>
         <value>org.apache.hadoop.gateway.shirorealm.KnoxLdapRealm"KnoxLdapRealm</>value>
        <param name="main.ldapContextFactory" value="org</param>
        <param>
         <name>main.ldapContextFactory</name>
         <value>org.apache.hadoop.gateway.shirorealm.KnoxLdapContextFactory"KnoxLdapContextFactory</>value>
        <param name="main.ldapRealm.contextFactory" value="$ldapContextFactory"/></param>
        <param>
         <name>main.ldapRealm.contextFactory</name>
         <value>$ldapContextFactory</value>
        <param name="main.ldapRealm.userDnTemplate" value="uid=</param>
        <param>
         <name>main.ldapRealm.userDnTemplate</name>
         <value>uid={0},ou=people,dc=hadoop,dc=apache,dc=org"org</>value>
        <param name="main</param>
        <param>
         <name>main.ldapRealm.contextFactory.url" value="ldapurl</name>
         <value>ldap://localhost:33389"33389</>value>
        <param name="main</param>
        <param>
         <name>main.ldapRealm.contextFactory.authenticationMechanism" value="simple"/>authenticationMechanism</name>
         <value>simple</value>
        <param name="urls</param>
        <param>
         <name>urls./**" value="authcBasic"/></name>
         <value>authcBasic</value>
        </param>
    </provider>
    <provider>
        <role>hostmap</role>
        <name>static</name>
        <enabled>true</enabled>
        <param<param>
name="localhost" value="sandbox          <name>localhost</name>
          <value>sandbox,sandbox.hortonworks.com"com</>value>
        </param>
    </provider>
</gateway>

And replace the sandbox-providers.xml configuration in ZooKeeper with this updated version:

...