Examples; Arguments - Red Hat DIRECTORY SERVER 7.1 - GATEWAY CUSTOMIZATION Manual

Gateway customization guide
Table of Contents

Advertisement

Table B-4
Conditions Supported for ELSE and ENDIF (Continued)
Condition
Displaying
Bound
BoundAsThisEntry
AttributeHasValues
AttributeHasThisValue
AdminServer *
DirectoryIsLocalDB *
PostedFormValue *
NOTE
Conditions marked with an asterisks (*) are supported in all the directory
gateway CGIs, not just

Examples

<!-- IF "!DirectoryIsLocalDB" -->
The entry was last modified by <!-- DS_ATTRIBUTE
"attr=modifiersName" "syntax=dn" "defaultvalue=N/A"
"options=readonly" -->
<!-- ENDIF ---->
<!-- IF "AttributeHasThisValue" "objectclass" "cis" "mailRecipient"
--> // this entry is a mail recipient... do something special here
<!-- ENDIF ---->

Arguments

Description
none
Are we just displaying an entry?
none
Is the user authenticated?
none
Is the user authenticated as the entry we
are displaying?
Does the attribute attr have at least
attr
mincount values?
mincount
Does the attribute attr with syntax
attr syntax
syntax have value as one of its
value
values?
none
Are we running under the Administration
Server?
none
Is the Directory Server using the LDAP
local database?
Is a form variable called name present
name value
that has value as its value?
and
dosearch
edit
Entry-Related Directives
.
Appendix B
Gateway Directives
121

Advertisement

Table of Contents
loading

This manual is also suitable for:

Directory server 7.1

Table of Contents