ldap search is very slow

前端 未结 3 1659
清酒与你
清酒与你 2020-12-20 00:45

I am using JNDI to connect to the LDAP active directory, and I want to search for users where the name contains the search string, so my search method is as follows:

3条回答
  •  春和景丽
    2020-12-20 01:42

    Your filter:

    "(&(ObjectCategory=person)(cn=*" + name + "*))"
    

    May be an issue.

    I would recommend that you download a known LDAP utility (Apache Directory Studio Browser as an example) and try different search filters until you find one that works.

    To Start, try

    "(&(ObjectCategory=person)(cn= + name ))"
    

提交回复
热议问题