Installation guide
Table Of Contents
- Gateway Customization Guide
- Contents
- Preface
- Introduction
- Setting Up the Gateway
- Gateway Installation Planning
- HTTP Server Configuration
- Creating a New Gateway Instance
- Gateway .conf File Configuration
- Configuring Gateway Clients
- Gateway Localization
- File Controlling Gateway Functionality
- Editing Entry Types
- Search Attributes, Filters, and Results
- Customizing Graphics and Color
- Parameters Defined in the .conf File
- Gateway Directives
- Introduction
- Context-Related Directives
- Entry-Related Directives
- DS_ENTRYBEGIN
- DS_ENTRYEND
- DS_ATTRIBUTE
- DS_OBJECTCLASS
- DS_VIEW_SWITCHER
- DS_SORTENTRIES
- DS_SEARCHDESC
- DS_POSTEDVALUE
- DS_EDITBUTTON
- DS_DELETEBUTTON
- DS_SAVEBUTTON
- DS_EDITASBUTTON
- DS_NEWPASSWORD
- DS_CONFIRM_NEWPASSWORD
- DS_OLDPASSWORD
- DS_HELPBUTTON
- DS_CLOSEBUTTON
- DS_BEGIN_ENTRYFORM
- DS_END_ENTRYFORM
- DS_EMIT_BASE_HREF
- DS_DNEDITBUTTON
- DS_BEGIN_DNSEARCHFORM
- DS_ATTRVAL_SET
- IF/ ELSE/ ELIF/ ENDIF
- Miscellaneous Directives
- CGI Usage
- Index
- List of Tables

Entry-Related Directives
Appendix B Gateway Directives 121
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 ---->
Displaying none Are we just displaying an entry?
Bound none Is the user authenticated?
BoundAsThisEntry none Is the user authenticated as the entry we
are displaying?
AttributeHasValues attr
mincount
Does the attribute attr have at least
mincount values?
AttributeHasThisValue attr syntax
value
Does the attribute attr with syntax
syntax have value as one of its
values?
AdminServer * none Are we running under the Administration
Server?
DirectoryIsLocalDB * none Is the Directory Server using the LDAP
local database?
PostedFormValue * name value Is a form variable called name present
that has value as its value?
NOTE Conditions marked with an asterisks (*) are supported in all the directory
gateway CGIs, not just
dosearch and edit.
Table B-4 Conditions Supported for ELSE and ENDIF (Continued)
Condition Arguments Description