03.03.2015 Views

eTrust Directory Administrator Guide - CA Technologies

eTrust Directory Administrator Guide - CA Technologies

eTrust Directory Administrator Guide - CA Technologies

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

DXserver Script Language<br />

Command Syntax<br />

Typically, commands have one of the following formats:<br />

■<br />

■<br />

■<br />

set item = value;<br />

get item;<br />

action parameters;<br />

Some commands are hyphenated (for example, add-entry-req). You can spread<br />

each command over many lines. You must terminate each command with a<br />

semicolon.<br />

You do not need to quote simple (one-word) strings. You must quote more<br />

complex (many-word) strings. Within a quoted string, you can use a backslash<br />

(\) as an escape mechanism for the following cases:<br />

Case Example String<br />

Quote my “favorite” car "my \"favorite\" car"<br />

Backslash c:\myfile "c:\\myfile"<br />

Hex number touché "Touch\xC2e"<br />

There is often a need to specify attribute values in character sets other than<br />

ASCII. For example, you can perform the following modification:<br />

mod-entry-req entry= add-attr { description "a description" };<br />

But how is this done in other languages?<br />

LDAPv3 has standardized on UTF-8 for internationalization. An example, using<br />

UTF-8, is now:<br />

mod-entry-req entry= add-attr { description utf8 "touch\xC3\xA9" };<br />

The Latin-1 character e-acute (E9) in UTF-8 (C3A9) has been encoded. The<br />

following example would search for all entries with common names beginning<br />

with e-acute.<br />

search-req base-object= whole-subtree filter = { attr = commonName substrings [<br />

initial utf8 "\xC3\xA9" };<br />

Commands can continue over multiple lines. If you enter an incomplete<br />

command at the management console, a continuation prompt, as shown below,<br />

displays until you enter a semicolon:<br />

---><br />

Tip: You can interrupt the execution of a script file from the management<br />

console using the telnet commands Ctrl-c or Ctrl-x. (See DXconsole in this<br />

chapter.)<br />

2–12 <strong>eTrust</strong> <strong>Directory</strong> <strong>Administrator</strong> <strong>Guide</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!