OpenLDAP服务器嵌套组searchstring

我在这里遇到了一个关于OpenLDAP的小问题。 问题是search嵌套的成员。 可以说,我有这样的结构:

  • DN =域,DN =本地
    • OU =人
      • cn = marvyn(inetOrgPerson)
    • OU =部门
      • cn =pipe理(groupOfNames)
    • OU =应用
      • cn = jira(groupOfNames)

马文是pipe理的成员。 行政是jira的成员。 我想对jira进行authentication,并检查marvyn是否在其中,但marvyn是在jira的成员的主pipe部门。 我如何需要search或build立searchstring,以查明如果marvyn是jira的成员。

感谢你们,

你不能用一个searchstring来做到这一点。 你必须写一些代码。

我使用“别名”对象将问题合并到OU中,解决了问题。

这是如何从openldap: http : //www.openldap.org/faq/data/cache/1111.html

(请注意,您可以将对象types从cn更改为ou,然后转发到整个ou。)

  • DC =域
    • OU =应用
      • OU = JIRA
        • CN = JIRA特定基团
        • ou(ALIAS)= all-groups-from- ou = groups,dc = domain
          • cn = sysadmin (不是真的存在;位于ou = groups,dc = domain
          • cn =开发 (不是真的在那里;位于ou = groups,dc = domain
    • OU =基团
      • CN =系统pipe理员
      • CN =发展