apache zeppelin(shiro security)无法保存便笺权限

erhoui1w  于 2021-06-02  发布在  Hadoop
关注(0)|答案(2)|浏览(334)

我是齐柏林飞艇的新手。
我按照这个教程学习如何在齐柏林飞艇中设置身份验证,并创建了两个帐户。这是我的shiro.ini conf文件:

[users]

# List of users with their password allowed to access Zeppelin.

# To use a different strategy (LDAP / Database / ...) check the shiro doc at http://shiro.apache.org/configuration.html#Configuratio$

admin = admin
joao = joao

# user2 = password3, role3

# user3 = password4, role2

# Sample LDAP configuration, for user Authentication, currently tested for single Realm

[main]

# activeDirectoryRealm = org.apache.zeppelin.server.ActiveDirectoryGroupRealm

# activeDirectoryRealm.systemUsername = CN=Administrator,CN=Users,DC=HW,DC=EXAMPLE,DC=COM

# activeDirectoryRealm.systemPassword = Password1!

# activeDirectoryRealm.hadoopSecurityCredentialPath = jceks://user/zeppelin/zeppelin.jceks

# activeDirectoryRealm.searchBase = CN=Users,DC=HW,DC=TEST,DC=COM

# activeDirectoryRealm.url = ldap://ad-nano.test.example.com:389

# activeDirectoryRealm.groupRolesMap = ""

# activeDirectoryRealm.authorizationCachingEnabled = true

# ldapRealm = org.apache.shiro.realm.ldap.JndiLdapRealm

# ldapRealm.userDnTemplate = uid={0},cn=users,cn=accounts,dc=example,dc=com

# ldapRealm.contextFactory.url = ldap://ldaphost:389

# ldapRealm.contextFactory.authenticationMechanism = SIMPLE

# sessionManager = org.apache.shiro.web.session.mgt.DefaultWebSessionManager

# securityManager.sessionManager = $sessionManager

# 86,400,000 milliseconds = 24 hour

# securityManager.sessionManager.globalSessionTimeout = 86400000

shiro.loginUrl = /api/login

[urls]

# anon means the access is anonymous.

# authcBasic means Basic Auth Security

# To enfore security, comment the line below and uncomment the next one

/api/version = authc

# /**= anon

/**= authc

我想为管理员用户在笔记本中设置所有者权限,但是当我单击“保存”按钮时什么也没有发生!我做错什么了吗?

干杯!

bogh5gae

bogh5gae1#

我设法让它与:

[urls]

# anon means the access is anonymous.

# authcBasic means Basic Auth Security

# To enfore security, comment the line below and uncomment the next one

/api/version = anon

# /**= anon

/**= authcBasic

[roles]
admin = *
knpiaxh1

knpiaxh12#

你准备好了吗 zeppelin.anonymous.allowed 不动产 conf/zeppelin-site.xml 是假的吗?这将是启用完全身份验证模式的配置的一部分。

相关问题