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

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

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

12.4.7 LDAP <strong>and</strong> DCE<br />

Additionally, search options can be specified in the URL. The following example<br />

retrieves all the attributes for the DN ou=Accounting,c=US from the LDAP server<br />

on host ldpserv.mydiv.mycorp.com. In this case, nonst<strong>and</strong>ard port 4389 is<br />

explicitly specified here as an example.<br />

ldap://ldpserv.mydiv.mycorp.com:4389/ou=Accounting,c=US<br />

The following example retrieves all the attributes for the DN<br />

cn=JohnSmith,ou=Sales,o=myCorp,c=US. Note that some characters are<br />

considered unsafe in URLs because they can be removed or treated as<br />

delimiters by some programs. Unsafe characters such as space, comma,<br />

brackets, <strong>and</strong> so forth need to be represented by their hexadecimal value<br />

preceded by the percent sign:<br />

ldap://ldpserv.mydiv.mycorp.com/cn=John%20Smith,o=myCorp,c=US<br />

In this example, %20 is a space. More information about unsafe characters <strong>and</strong><br />

URLs in general are in RFC 4516.<br />

In addition to options, the URL can specify what values attributes are to be<br />

returned using the ? symbol. For example, assume we want to find the U.S.<br />

address of myCorp. We use the following URL:<br />

ldap://ldpserv.mydiv.mycorp.com:4389/o=myCorp,c=US?postalAddress<br />

DCE has its own Cell Directory Service, or CDS (see 13.3.1, “DCE directory<br />

service” on page 498). If applications never access resources outside of their<br />

DCE cell, only CDS is required. However, if an application needs to communicate<br />

with resources in other DCE cells, the Global Directory Agent (GDA) is required.<br />

The GDA accesses a global (that is, non-CDS) directory where the names of<br />

DCE cells can be registered. This global directory (GDS) can be either a Domain<br />

Name System (DNS) directory or an X.500 directory. The GDA retrieves the<br />

address of a CDS server in the remote cell. The remote CDS can then be<br />

contacted to find DCE resources in that cell. Using the GDA enables an<br />

organization to link multiple DCE cells together using either a private directory on<br />

an intranet or a public directory on the Internet.<br />

In view of LDAP's strong presence in the Internet, two LDAP projects have been<br />

sponsored by The Open Group to investigate LDAP integration with DCE<br />

technology.<br />

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

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

Saved successfully!

Ooh no, something went wrong!