The set allow-search command defines a search profile to the DSA. You use search profiles to restrict the searches that users can perform.
This command has the following format:
set allow-search profileName = {
(
scope = allowedScope [,allowedScope ...] [filter = allowedFilter [,allowedfilter ...]]
) [,(
scope = allowedScope [,allowedScope...] [filter = allowedFilter [,allowedfilter...]]
)] ...
};
Defines the name that the DSA command interpreter uses to identify the search profile. If the name contains spaces or non-alphanumeric characters, then it must be enclosed in quotes.
Specifies a search scope that this search profile will allow. A scope parameter can allow multiple scope specifications, which will all share the same filter specification.
allowedScope is one of the following:
Allows base-object searches.
Allows one level searches.
Allows whole subtree searches.
Allows searches of any scope.
(Optional) Specifies the filters that are allowed for searches with the preceding search scope. Each scope parameter can have multiple associated filters.
allowedFilter is one of the following:
Allows the AND operator in filters, for example, (&(oc=inetOrgPerson)(cn="john smith")).
Allows filters with wildcards anywhere, for example, (cn=*john*smith*).
Allows pattern/phonetic matching, for example, (cn~=john smith).
Allows exact match filter items, for example, (cn=john smith).
Allows filters with a leading wildcard, for example, (cn=*smith).
Allows the >= operator in filters, for example, (retries>=3).
Allows filters with a trailing wildcard, for example, (cn=john*).
Allows the <= operator in filters, for example, (retries<=3).
Allows searches that do not contain a filter.
Allows the NOT operator in filters, for example, (!(cn="john smith")).
Allows the OR operator in filters, for example, (|(cn="john doe")(cn="john smith")).
Allows filters for presence, for example, (objectClass=*).
Example: Allow Any Search
set allow-search superusers = {
( scope = all ) };
This search profile allows any search.
Example: Allow Base-Object Searches Only
set allow-search Guest = {
( scope = read ) };
This search profile allows base-object searches only. No filter is specified with the scope parameter, so the search can contain any filter or none.
Example: Allow Base-Object Searches and Some Other Searches
set allow-search userDefault = {
(scope = read), (scope = browse, subtree filter = and, or, equality) };
This search profile allows base-object searches with any filter and other searches if they have a filter for exact matches.
Copyright © 2011 CA. All rights reserved. | Email CA Technologies about this topic |