有 Java 编程相关的问题?

你可以在下面搜索框中键入要查询的问题!


共 (1) 个答案

  1. # 1 楼答案

    “人民”群体的定义是:

    Within ldap:///o=domain.com,dc=domain,dc=com, where the attribute Employeenumber is present (Employeenumber=*), and the attribute InetUserStatus has the value active (InetUserStatus=active).

    因此,如果您想排除某个人,您需要和要匹配的属性,以及要排除并构造与此匹配的LDAP搜索筛选器的值,并更新筛选器(&(Employeenumber=*)(InetUserStatus=active))以对应于此

    因此,如果它们是Employeenumber55,那么您不希望它们出现在列表中,因此该条件为!(Employeenumber=55),因此您需要将其插入选择条件,如下所示:

    (&(&(Employeenumber=*)(InetUserStatus=active))(!(Employeenumber=55)))
    

    如果还想筛选第二个用户(例如Employeenumber99),那么它会变成:

    (&(&(&(Employeenumber=*)(InetUserStatus=active))(!(Employeenumber=55)))(!(Employeenumber=99)))
    

    你可以看到这会很快变得非常复杂