【问题标题】:Shiro authentication for ldap with zeppelin使用 zeppelin 对 ldap 进行 Shiro 身份验证
【发布时间】:2017-07-23 02:47:54
【问题描述】:

对于 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

【问题讨论】:

    标签: authentication ldap shiro apache-zeppelin


    【解决方案1】:

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

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

    【讨论】:

      猜你喜欢
      • 2017-02-20
      • 2015-09-28
      • 2017-01-09
      • 2020-04-14
      • 1970-01-01
      • 2014-02-28
      • 2021-09-02
      • 2018-02-09
      • 2012-08-26
      相关资源
      最近更新 更多