【问题标题】:How to do an LDAP search on a muli value Attribute如何对多值属性进行 LDAP 搜索
【发布时间】:2015-12-01 11:32:03
【问题描述】:

我正在尝试使用 PHP 对多值属性 ACL 进行 LDAP 搜索。但是当我尝试在 ACL $filter="(ACL=*$cn*)" 上设置过滤器时,$cn = prnman03 没有返回任何结果。

ACL                - 16#entry#cn=prnman03,ou=ipp,ou=services,o=uct#[Entry Rights]
                     3#entry#[Root]#iPrintPrinterIPPURI
                     8#entry#ou=backup,ou=ipp,ou=services,o=uct#iPrintPrinterUserRole
                     8#entry#ou=ippl,ou=ipp,ou=services,o=uct#iPrintPrinterUserRole
                     8#entry#ou=ipp,ou=services,o=uct#iPrintPrinterUserRole

cn                 -  IPP00005
iPrintPrinterIPPURI- ipp://srvnbsidw001.uct.ac.za/ipp/IPP00005

【问题讨论】:

  • 我认为您应该提供更多代码。

标签: php ldap ldap-query


【解决方案1】:

如果其中一个属性值与过滤器匹配,则该条目将被视为返回(只要权限允许)。 但请记住,LDAP 过滤器在 True、False、Undefined 中解析。未定义意味着无法应用过滤器并获得结果。如果没有为 ACL 属性定义子串匹配规则,则匹配子串过滤器将是未定义的。

【讨论】:

    【解决方案2】:

    当您在 eDirectory 的 ACL 上执行此操作时,我认为您不会找到适用于子字符串的值。尽管他们的documentation 说在某些条件下匹配会起作用,但我无法找到或执行任何此类匹配。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-01-11
      • 2023-01-12
      • 1970-01-01
      相关资源
      最近更新 更多