Network Working Group T. Howes
Request for Comments: 1959 M. Smith
Category: Standards Track University of Michigan
June 1996
An LDAP URL Format
1. Abstract
LDAP is the Lightweight Directory Access Protocol, defined in [1] and [2]. This document describes a format for an LDAP Uniform Resource Locator which will allow Internet clients to have direct access to the LDAP protocol. While LDAP currently is used only as a front end to the X.500 directory, the URL format described here is general enough to handle the case of stand-alone LDAP servers (i.e., LDAP servers not back-ended by X.500).
2. URL Definition
An LDAP URL begins with the protocol prefix "ldap" and is defined by the following grammar.
<scope> ::= "base" | "one" | "sub"
<filter> ::= a string as defined in RFC 1558
Howes & Smith Standards Track [Page 1]
RFC 1959 An LDAP URL Format June 1996
The ldap prefix indicates an entry or entries residing in the LDAP server running on the given <hostname> at the given <portnumber>. The default port is TCP port 389. The <dn> is an LDAP Distinguished Name using the string format described in [1], with any URL-illegal characters (e.g., spaces) escaped using the % method described in RFC 1738.
3. Examples
The following are some example LDAP URLs using the format defined above. An LDAP URL referring to the University of Michigan entry, available from any X.500-capable LDAP server:
Howes & Smith Standards Track [Page 2]
RFC 1959 An LDAP URL Format June 1996
ldap://ldap.itd.umich.edu/o=University%20of%20Michigan,c=US?postalAddress
4. Security Considerations
The LDAP URL format does not provide a way to specify credentials to use when resolving the URL. Therefore, it is expected that such requests will be unauthenticated. The security implications of resolving an LDAP URL are the same as those of resolving any LDAP query. See the RFC 1777 for more details.
5. Prototype Implementation Availability
There is a prototype implementation of the specification defined in this document available. It is an extension to the libwww client library, provided in both source and binary forms. Also included are binary versions of the Mosaic WWW client for various platforms. See the following URL for more details:
Howes & Smith Standards Track [Page 3]
RFC 1959 An LDAP URL Format June 1996 6. Bibliography[1] Kille, S., "A String Representation of Distinguished Names",
7. Acknowledgements
This material is based upon work supported by the National Science Foundation under Grant No. NCR-9416667.
8. Authors' Addresses
Tim Howes University of Michigan ITD Research Systems 535 W William St. Ann Arbor, MI 48103-4943 USA