Novell is now a part of Micro Focus

Postal Addresses and LDAP

Novell Cool Solutions: Tip
By Israel Forst

Digg This - Slashdot This

Posted: 3 Feb 2003

Why is the LDAP 'homeStreet' not a separate attribute?

This is designed so that a developer can retrieve the address of an object without knowing the names of the attributes that store them. The attributes may change depending on the region/country/etc. Storing it as a structured attribute is simpler than storing the components separately.

The LDAP RFC defines a syntax called Postal Address ( see )

6.27. Postal Address

( DESC 'Postal Address' )
Values in this syntax are encoded according to the following BNF:

postal-address = dstring *( "$" dstring )

In the above, each dstring component of a postal address value is encoded as a value of type Directory String syntax. Backslashes and dollar characters, if they occur in the component, are quoted as described in section 4.3. Many servers limit the postal address to six lines of up to thirty characters.

     1234 Main St.$Anytown, CA 12345$USA
     \241,000,000 Sweepstakes$PO Box 1000000$Anytown, CA 12345$USA

Novell Cool Solutions (corporate web communities) are produced by WebWise Solutions.

© Copyright Micro Focus or one of its affiliates