Test-R1LdapFilter

SYNOPSIS

Reports whether a string is a valid LDAP filter.

SYNTAX

Test-R1LdapFilter [-ldapFilter] <String> [<CommonParameters>]

DESCRIPTION

Asks the server to parse the given string as an LDAP filter, and returns whether it is valid.

EXAMPLES

Example 1

Test-R1LdapFilter -ldapFilter '(objectClass=*)'

Returns true, the filter being valid.

Example 2

Test-R1LdapFilter -ldapFilter '(objectClass=' -Verbose

Returns false, and writes the reason the filter was rejected to the verbose stream.

PARAMETERS

-ldapFilter

The LDAP filter to validate.

Type: String
Parameter Sets: (All)
Aliases:

Required: True
Position: 1
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

None

OUTPUTS

System.Boolean

NOTES

Where the API reports why a value is invalid, the reason is written to the verbose stream. Run with -Verbose to see it.

Test-R1ComputedAttributeName

Test-R1JoinCondition