2017-02-23 5 views
0

私はツェッペリンを初めて利用しています。Apache Zeppelin(Shiro Security)はメモのアクセス許可を保存できません

このチュートリアルでは、Zeppelinで認証を設定する方法と2つのアカウントを作成しました。

[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 

私は何も起こりません保存ボタンをクリックしたときただし、管理者ユーザのためのノートブックに所有者の権限を設定したいと思います:これは私のshiro.ini confファイルです!私は何か間違っているのですか?

Trying to save notebook permissions!

乾杯!

答えて

1

私はそれが作業を取得するために管理:

[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 = * 
+0

ロールで 'admin = *'を追加するだけで以前の設定でもうまくいくと思います –

+0

これを試しましたが、/ ** = authcBasicの設定は必須です –

0

あなたがfalseにconf/zeppelin-site.xmlzeppelin.anonymous.allowedプロパティを設定しましたか?これは、完全に認証されたモードを有効にするための設定の一部です。

+0

こんにちは!はい、私はそれを偽に入れました –

+0

私は参照してください。したがって、あなたは 'admin'としてログインしており、すべての権限の書き込みをあなた自身に変更しました。これはあなた自身だけを意味し、 'admin'ロールを持つユーザはあなたのメモを'読み込み 'または'書き込み 'できるようになります。これを確認するには、ログアウトして別のユーザー(たとえばuser2)としてログインすることができます。次に、「読み込み」や「書き込む」ことができないようにしてください。それが助けにならない、または混乱しない場合、多分あなたはあなたがアクセス権を保存することで期待していたものを記述することができます –

+0

私は管理者だけに書き込み権限を制限したいと思います。 –

関連する問題