使用zeppelin对ldap进行Shiro身份验证

时间:2017-03-03 05:26:14

标签: authentication ldap shiro apache-zeppelin

对于zeppelin公司的ldap组的shiro身份验证的ldap领域应该是什么属性。我尝试设置一些属性但它没有用。

  • ldapRealm = org.apache.shiro.realm.ldap.JndiLdapRealm
  • ldapRealm.userDnTemplate = uid = {0},ou = Groups,o = company.com
  • ldapRealm.contextFactory.url = ldap://ldap.company.com:389
  • ldapRealm.contextFactory.authenticationMechanism = simple

1 个答案:

答案 0 :(得分:1)

您应该配置属性 ldapRealm.contextFactory.environment [ldap.searchBase] ,其值与 ldapRealm.userDnTemplate 相同,但 uid = { 0} ,例如:

ldapRealm.contextFactory.environment[ldap.searchBase]=ou=Groups,o=company.com
相关问题