[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[VCARDDAV] LDAP attributes



Alexey Melnikov wrote:
"mail" is 1.3.6.1.4.1.1466.115.121.1.26 (IA5 String)

However... modern domain names can have non-ascii letters.
Of course, you could store the punicoded version, but that should really be an implementation detail of DNS.

This is a bad example, as email address syntax as defined in RFC 5322 doesn't allow non US-ASCII.

Hmm... Since the vCard4 draft explicitly references RFC5322, I'll grant you that argument. :)
"mail" values must be punicoded, then.

Another one then...
vCard4 organizes ORG like O;OU1;OU2;OU3....

LDAP "ou" cannot (unless non standard features are used) be sorted.


In general structured values could pose a serious problem to reusing inetOrgPerson attributes.

There's really no LDAP mechanish for mapping several ADR properties and maintaining the association between their structural parts.

One solution though would be to define and special LDAP syntax for structured values and store ADR properties in attributes like:

vcard4ADR: po<US>ext<US>street<US>locality<US>region<US>pcode<US>country

Where <US> is some kind of field separator.
Personally I use ASCII \x1F (Unit Separator) which is kind of meant for such use. Of course, it's non-printable, but it really takes away a lot of escaping annoyances.

/Peter