Results 1 to 2 of 2

Thread: Spring-LDAP Sever Compatibility

Threaded View

  1. #1
    Join Date
    Jul 2006
    Posts
    1

    Default Spring-LDAP Sever Compatibility Question

    Question: Can I use SPRING-LDAP (ldaptemplate) to search any ldap server or does the server have to be one that supports a certain version (v2, v3?)

    I ask this question because while I can connect and search a server in my org using javax.naming, I cannot search the same server using ldaptemplate, or more specifically, the search does not return expected results.

    Note that I use ldaptemplate to connect/search two other ldap servers in my org and it works as expected, hence my question.

    I am using ldaptemplate 1.0.2 with JDK 1.4.2 on WinXP

    // I get results using this:
    NamingEnumeration results =
    dirContext.search(this.SEARCH_BASE, this.SEARCH_FILTER,
    new SearchControls().setSearchScope(SearchControls.ONE LEVEL_SCOPE));

    //no results using this when LdapContextSource is initialized using same variables used with DirContext example
    List listResults = ldapTemplate.search(this.SEARCH_BASE, this.SEARCH_FILTER, SearchControls.ONELEVEL_SCOPE, new UofUAttributesMapper());

    Thanks,
    Last edited by edillon; Jul 17th, 2006 at 06:22 PM.

Posting Permissions

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