Announcement Announcement Module
Collapse
No announcement yet.
No recs found whenever the base has a forward slash Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • No recs found whenever the base has a forward slash

    Hi:

    Whenever I call ldapTemplate.search(newbase, filter.encode(),.....)
    and newBase has a forward slash, I got no results. How can I escape the forward slashes?

    thanks,
    JT

  • #2
    Forward slashes shouldn't need to be escaped in LDAP paths, but you could create a DistinguishedName from the path and use that as newBase. A common reason for this type of problem is that newBase is not relative to the base supplied to ContextSource. newBase will not replace your ContextSource base; it will be concatenated with the ContextSource base and that will be the actual base of the search.

    Comment

    Working...
    X