25.02.2013 Views

TCP/IP Tutorial and Technical Overview - IBM Redbooks

TCP/IP Tutorial and Technical Overview - IBM Redbooks

TCP/IP Tutorial and Technical Overview - IBM Redbooks

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

In addition to defining what data can be stored as the value of an attribute, an<br />

attribute syntax also defines how those values behave during searches <strong>and</strong> other<br />

directory operations. This is done using syntax <strong>and</strong> matching rules. The attribute<br />

telephoneNumber, for example, might have a syntax that specifies:<br />

► Lexicographic ordering.<br />

► Case, spaces, <strong>and</strong> dashes are ignored during the comparisons.<br />

► Values must be character strings.<br />

For example, using the correct definitions, the telephone numbers<br />

123-456-7890, 123456-7890, <strong>and</strong> 1234567890 are considered to be the same. A<br />

few of the common syntaxes <strong>and</strong> matching rules, defined in RFC 4517, are listed<br />

in Table 12-5.<br />

Table 12-5 Examples of LDAP syntaxes<br />

Syntaxes <strong>and</strong><br />

matching rules<br />

Description<br />

Bit String A sequence of binary digits<br />

Postal Address A sequence of strings that form an address in a physical mail<br />

system<br />

caseExactMatch A matching rule requiring that string comparisons are<br />

case-sensitive<br />

caseIgnoreMatch A matching rule that does not require case-sensitive<br />

comparisons<br />

Table 12-6 lists some common attributes defined by RFC 4519. Some attributes<br />

have alias names that can be used wherever the full attribute name is used.<br />

Table 12-6 Examples of LDAP syntaxes<br />

Attribute, alias Syntax Description Example<br />

commonName, cn cis Common name of an entry John Smith<br />

surname, sn cis A person’s last name Smith<br />

initials cis A person’s initials JS<br />

telephoneNumber tel A person’s telephone number 123-456-7890<br />

An object class is a general description, sometimes called a template, of an<br />

object type, as opposed to the description of a specific object of that type. For<br />

example, the object class person has a surname attribute, while the object<br />

describing John Smith has a surname attribute with the value Smith. The object<br />

Chapter 12. Directory <strong>and</strong> naming protocols 465

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

Saved successfully!

Ooh no, something went wrong!