Announcement Announcement Module
Collapse
No announcement yet.
How to judge one DN is exists use springldap? Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • How to judge one DN is exists use springldap?

    How to judge one DN is exists in the ldap use springldap?
    when a DN is not exists in ldap springldap will throws the exceptions(i can't catch it),if i want to get the result(exists or not) how to do it?

  • #2
    Why can't you catch it? That would be my suggestion to begin with.

    Otherwise, I suppose you can use ldapTemplate.search() to find the DN. If it comes back with an empty list, return false.

    Comment


    • #3
      thanks for your help, u are right, i can catch the exception. i made some mistake.

      Comment

      Working...
      X