2017-03-03 98 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