SEC-650: Change default scope to sub-tree.

This commit is contained in:
Luke Taylor 2008-01-28 00:24:54 +00:00
parent e6d6e88117
commit 80b6111641
1 changed files with 3 additions and 1 deletions

View File

@ -85,6 +85,8 @@ public class FilterBasedLdapUserSearch implements LdapUserSearch {
this.contextSource = contextSource;
this.searchBase = searchBase;
setSearchSubtree(true);
if (searchBase.length() == 0) {
logger.info("SearchBase not set. Searches will be performed from the root: "
+ contextSource.getBaseLdapPath());
@ -161,7 +163,7 @@ public class FilterBasedLdapUserSearch implements LdapUserSearch {
sb.append(", scope: ")
.append(searchControls.getSearchScope() == SearchControls.SUBTREE_SCOPE ? "subtree" : "single-level, ");
sb.append("searchTimeLimit: ").append(searchControls.getTimeLimit());
sb.append("derefLinkFlag: ").append(searchControls.getDerefLinkFlag()).append(" ]");
sb.append(", derefLinkFlag: ").append(searchControls.getDerefLinkFlag()).append(" ]");
return sb.toString();
}