Advertisement
Guest User

Untitled

a guest
Sep 6th, 2016
183
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.83 KB | None | 0 0
  1. #
  2. # Licensed to the Apache Software Foundation (ASF) under one or more
  3. # contributor license agreements. See the NOTICE file distributed with
  4. # this work for additional information regarding copyright ownership.
  5. # The ASF licenses this file to You under the Apache License, Version 2.0
  6. # (the "License"); you may not use this file except in compliance with
  7. # the License. You may obtain a copy of the License at
  8. #
  9. # http://www.apache.org/licenses/LICENSE-2.0
  10. #
  11. # Unless required by applicable law or agreed to in writing, software
  12. # distributed under the License is distributed on an "AS IS" BASIS,
  13. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  14. # See the License for the specific language governing permissions and
  15. # limitations under the License.
  16. #
  17.  
  18. [users]
  19. # List of users with their password allowed to access Zeppelin.
  20. # To use a different strategy (LDAP / Database / ...) check the shiro doc at http://shiro.apache.org/configuration.html#Configuration-INISections
  21. #admin = password1
  22. #user1 = password2, role1, role2
  23. #user2 = password3, role3, admin
  24. #user3 = password4, role2
  25.  
  26. # Sample LDAP configuration, for user Authentication, currently tested for single Realm
  27. [main]
  28. ### A sample for configuring Active Directory Realm
  29. activeDirectoryRealm = org.apache.zeppelin.server.ActiveDirectoryGroupRealm
  30. activeDirectoryRealm.systemUsername = CN=ZeppelinUser1,OU=Users,OU=Zeppelin,DC=MYAD,DC=COM
  31. activeDirectoryRealm.systemPassword = mypass
  32. activeDirectoryRealm.searchBase = OU=Zeppelin,DC=MYAD,DC=COM
  33. activeDirectoryRealm.url = ldap://myldap.com:389
  34. activeDirectoryRealm.groupRolesMap = "CN=ZeppelinGroup1,OU=Groups,OU=Zeppelin,DC=MYAD,DC=COM":"ZeppelinGroup1"
  35. #activeDirectoryRealm.authorizationCachingEnabled = true
  36.  
  37. ### A sample for configuring LDAP Directory Realm
  38. #ldapRealm = org.apache.zeppelin.server.LdapGroupRealm
  39. ## search base for ldap groups (only relevant for LdapGroupRealm):
  40. #ldapRealm.contextFactory.environment[ldap.searchBase] =
  41. #ldapRealm.contextFactory.url =
  42. #ldapRealm.userDnTemplate =
  43. #ldapRealm.contextFactory.authenticationMechanism =
  44.  
  45.  
  46. sessionManager = org.apache.shiro.web.session.mgt.DefaultWebSessionManager
  47.  
  48. ### If caching of user is required then uncomment below lines
  49. #cacheManager = org.apache.shiro.cache.MemoryConstrainedCacheManager
  50. #securityManager.cacheManager = $cacheManager
  51.  
  52. securityManager.sessionManager = $sessionManager
  53. # 86,400,000 milliseconds = 24 hour
  54. securityManager.sessionManager.globalSessionTimeout = 86400000
  55. shiro.loginUrl = /api/login
  56.  
  57. [roles]
  58. #role1 = *
  59. #role2 = *
  60. #role3 = *
  61. ZeppelinGroup1 = *
  62.  
  63. [urls]
  64. # anon means the access is anonymous.
  65. # authcBasic means Basic Auth Security
  66. # authc means Form based Auth Security
  67. # To enfore security, comment the line below and uncomment the next one
  68. /api/version = anon
  69. #/** = anon
  70. /** = authc
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement