Results 1 to 3 of 3

Thread: How to judge one DN is exists use springldap?

  1. #1
    Join Date
    May 2007
    Posts
    5

    Default 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. #2
    Join Date
    Aug 2006
    Posts
    26

    Default

    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.

  3. #3
    Join Date
    May 2007
    Posts
    5

    Default

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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •