[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: Questions about multiple identical values in a field
2013/5/3 Nicolas Mora <nicolas@babelouest.org>:
> Thank for your answers,
>
> Given the context, I would go for the postaladdress field if the entries are
> in RW mode, but if I can't have empty fields, is there a non ambiguous way
> to determine the different parts of the field when I use $ as a separator.
No.
In the format described below, I understand that field elements are
position related (i.e. the first field is always the "post office
box", the second is always the "extended address", etc).
Since a dstring (element stored in an LDAP postalAddress) can't be
empty, then you can't reproduce the same mechanism.
In other words, you can have ";;" in your VCard address, you can't
have "$$" in an LDAP postalAddress, so you will necessarily lose
information in your transformation.
> The VCard FRC describes an address structure as different components
> separated with a semicolon, and the components are :
> the post office box;
> the extended address (e.g., apartment or suite number);
> the street address;
> the locality (e.g., city);
> the region (e.g., state or province);
> the postal code;
> the country name (full name in the language specified in Section 5.1)
>
> So translating an vcard address into ldap postaladdress is easy, but is the
> opposite possible (if not easy) ?