...
Code Block | ||
---|---|---|
| ||
<gateway> <provider> <role>authentication</role> <name>ShiroProvider</name> <enabled>true</enabled> <param name="sessionTimeout" value="30"/><param> <name>sessionTimeout</name> <param name="main.ldapRealm" value="org.apache.hadoop.gateway.shirorealm.KnoxLdapRealm"/> <value>30</value> </param> <param name="main.ldapContextFactory" value="org <param> <name>main.ldapRealm</name> <value>org.apache.hadoop.gateway.shirorealm.KnoxLdapContextFactory"KnoxLdapRealm</>value> <param name="main.ldapRealm.contextFactory" value="$ldapContextFactory"/></param> <param name="main.ldapRealm.userDnTemplate" value="uid={0},ou=people,dc=hadoop,dc=apache,dc=org"/><param> <name>main.ldapContextFactory</name> <value>org.apache.hadoop.gateway.shirorealm.KnoxLdapContextFactory</value> </param> <param> <name>main.ldapRealm.contextFactory</name> <value>$ldapContextFactory</value> </param> <param> <name>main.ldapRealm.userDnTemplate</name> <value>uid={0},ou=people,dc=hadoop,dc=apache,dc=org</value> </param> <param> <name>main.ldapRealm.contextFactory.url</name> <value>ldap://localhost:33389</value> </param> <param> <name>main.ldapRealm.contextFactory.authenticationMechanism</name> <value>simple</value> </param> <param> <param name="main.ldapRealm.contextFactory.url" value="ldap://localhost:33389"/> <name>urls./**</name> <param name="main.ldapRealm.contextFactory.authenticationMechanism" value="simple"/> <value>authcBasic</value> <param name="urls./**" value="authcBasic"/> </param> </provider> <provider> <role>hostmap</role> <name>static</name> <enabled>true</enabled> <param> <name>localhost</name> <param name="localhost" value="sandbox <value>sandbox,sandbox.hortonworks.com"/>com</value> </param> </provider> </gateway> |
And replace the sandbox-providers.xml configuration in ZooKeeper with this updated version:
...