if-class-name

Performs a test on the object class name in the current operation.

Remarks

Operator

Returns true when...

available

There is an object class name available in the current operation.

equal

There is an object class name available in the current operation and it equals the content of <if-class-name> when compared using the specified comparison mode.

lt

There is an object class name available in the current operation and it is less than the content of the condition when compared using the specified comparison mode. Supports variable expansion.

gt

There is an object class name available in the current operation and it is greater than the content of the condition when compared using the specified comparison mode. Supports variable expansion.

not-available

Available returns false.

not-equal

Equal returns false.

not-lt

Less than returns false.

not-gt

Greater than returns false.

Example

<if-class-name op="available"/><if-class-name op="equal" mode="nocase">User</if-class-name >

Allowed Content

#PCDATA

Attributes

Attribute

Possible Values

Default Value

disabled

true | false

True if this element is disabled.

false

mode

case | nocase | regex | src-dn | dest-dn | numeric | octet

Comparison mode if op implies a comparison.

nocase

notrace

true | false

True if this element should not be traced during execution of the policy.

false

op

available | equal | lt | gt | not-available | not-equal not-lt | not-gt

Test operator.

#REQUIRED

Content Rule

( #PCDATA )

Parent Elements

Element

Description

and

Logical conjunction.

or

Logical disjunction.