2017-03-03 138 views
0

用于zeppelin的公司对ldap组进行shiro认证的ldap领域的属性应该是什么。我尝试设置了一些属性,但它没有奏效。用zeppelin进行ldap的Shiro认证

  • ldapRealm = org.apache.shiro.realm.ldap.JndiLdapRealm
  • ldapRealm.userDnTemplate = UID = {0},OU =组,O = company.com
  • ldapRealm.contextFactory.url = LDAP://ldap.company.com:389
  • ldapRealm.contextFactory.authenticationMechanism =简单

回答

1

应该配置属性ldapRealm.contextFactory.environment [ldap.searchBase],其值相同ldapRealm.userDnTemplate,除了UID = {0},例如:

ldapRealm.contextFactory.environment[ldap.searchBase]=ou=Groups,o=company.com