Repository: knox Updated Branches: refs/heads/master b4455c4c6 -> 069c028cb
KNOX-1300 - Add default provider configuration for demo LDAP to the distribution Project: http://git-wip-us.apache.org/repos/asf/knox/repo Commit: http://git-wip-us.apache.org/repos/asf/knox/commit/069c028c Tree: http://git-wip-us.apache.org/repos/asf/knox/tree/069c028c Diff: http://git-wip-us.apache.org/repos/asf/knox/diff/069c028c Branch: refs/heads/master Commit: 069c028cbf0135e56b29df84ee77ad4b2cf19a82 Parents: b4455c4 Author: Phil Zampino <[email protected]> Authored: Mon May 7 19:46:26 2018 -0400 Committer: Phil Zampino <[email protected]> Committed: Mon May 7 19:46:26 2018 -0400 ---------------------------------------------------------------------- .../conf/shared-providers/default-providers.json | 19 +++++++++++++++++++ pom.xml | 1 + 2 files changed, 20 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/knox/blob/069c028c/gateway-release/home/conf/shared-providers/default-providers.json ---------------------------------------------------------------------- diff --git a/gateway-release/home/conf/shared-providers/default-providers.json b/gateway-release/home/conf/shared-providers/default-providers.json new file mode 100644 index 0000000..530d9a6 --- /dev/null +++ b/gateway-release/home/conf/shared-providers/default-providers.json @@ -0,0 +1,19 @@ +{ + "providers": [ + { + "role": "authentication", + "name": "ShiroProvider", + "enabled": "true", + "params": { + "sessionTimeout": "20", + "main.ldapRealm": "org.apache.knox.gateway.shirorealm.KnoxLdapRealm", + "main.ldapContextFactory": "org.apache.knox.gateway.shirorealm.KnoxLdapContextFactory", + "main.ldapRealm.contextFactory": "$ldapContextFactory", + "main.ldapRealm.userDnTemplate": "uid={0},ou=people,dc=hadoop,dc=apache,dc=org", + "main.ldapRealm.contextFactory.url": "ldap://localhost:33389", + "main.ldapRealm.contextFactory.authenticationMechanism": "simple", + "urls./**": "authcBasic" + } + } + ] +} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/knox/blob/069c028c/pom.xml ---------------------------------------------------------------------- diff --git a/pom.xml b/pom.xml index b546e84..a32e67d 100644 --- a/pom.xml +++ b/pom.xml @@ -248,6 +248,7 @@ <exclude>src/stage.txt</exclude> <exclude>src/vote.txt</exclude> <exclude>**/*.iml</exclude> + <exclude>**/*.json</exclude> <exclude>**/target/**</exclude> <exclude>**/install/**</exclude> <exclude>**/candidate/**</exclude>
