Novell is now a part of Micro Focus

In ConsoleOne, under the general/postal address are a...

Articles and Tips: qna

15 Nov 2000


Q.

In ConsoleOne, under the general/postal address are a couple of field names--City and State. What attributes are these in NDS/LDAP? Are they a subset of an attribute somewhere?

A.

According to the documentation, it looks like they are contained in the postalAddress attribute. The doc reads:

"A value for this attribute is typically composed of selected attributes from the MHS Unformatted Postal O/R Address version 1, according to Recommendation F.401. The address is limited to 6 lines of 30 characters each, including a Postal Country Name.

"Normally the information contained in such an address could include an addressee's name, street address, city, state or province, postal code and possibly a Post Office Box number, depending on the specific requirements of the named object.

"NetWare administrative utilities will link the postal address value to the following attributes: Physical Delivery Office Name, Postal Code, Postal Office Box, and Street Address.

"The postal address uses the following as default values:

  • Line 1: The object's RDN

  • Line 2: Street Address or Post Office Box Number

  • Line 3: (no default value)

  • Line 4: Physical Delivery Office Name, State or Province Name

  • Line 5: Postal Code

  • Line 6: Country Name (from the object's DN)

"The second line of the postal address will default to the post office box, if present, or otherwise to the street address. The third line of the postal address should be presented in the utility as the second line of both the post office box and street address. Each line of the postal address is limited to 30 characters. Attribute values are truncated to 30 characters when used in the postal address. Developers are encouraged to follow these guidelines."

An LDAP schema query requires extended terms (X_NDS) to return the NDS attribute constraints. I believe the Physical Delivery Office Name is the city.

To submit your own developer-related questions, visit http://developer.novell.com/research/feedback.htm.

* Originally published in Novell AppNotes


Disclaimer

The origin of this information may be internal or external to Novell. While Novell makes all reasonable efforts to verify this information, Novell does not make explicit or implied claims to its validity.

© Copyright Micro Focus or one of its affiliates