ContainerSearch.searchByFilter()
The method represents the search for a container with a filter.
- Availability
-
IBM® Tivoli® Identity Manager 4.x
IBM Tivoli Identity Manager 5.x
IBM Security Identity Manager 6.x
IBM Security Identity Manager 7.0.
- Synopsis
containerSearch.searchByFilter(profileName, filter, scope
)- Arguments
-
- profileName
- The String name of the organizational container profile to use.
- filter
- LDAP search filter String that defines the criteria for returned containers to meet. The filter must be in the format defined by RFC2254.
- scope
- Optional Int search scope. Use 1 for One Level Scope and 2 for SubTree Scope. One Level Scope is the default scope.
- Returns
- An array of DirectoryObjects representing the results of the search.
- Description
- This method searches for a container with a filter.
- Usage
-
var locationContainer = new ContainerSearch(); // use subtree scope var thisLocation = locationContainer.searchByFilter(“Location”, “(l=Raleigh)”, 2); // use default one level scope var otherLocation = locationContainer.searchByFilter(“Location”, “(l=Raleigh)”);