[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Questions about multiple identical values in a field
Hello,
I'm currently programming a connector between a CardDAV server and a
LDAP server in php.
I'm using the schema inetOrgPerson which is good for most of the data
but I have a problem with multiple equal data.
The VCard data is set like this :
ADR;TYPE=HOME:;;123 1st av;Montreal;QC;GGG RT3;CA
which is translated into :
street:: 123 1st av
l: Montreal
st:QC
postalcode: GGG RT3
By default in the inetOrgPerson schema, the country code is not added,
so I add a personalized schema with 2 fields :
- countryCode ('c')
- VCardUnassigned ('vcardunassigned')
The second one is when a vcard field has no correspondance in the ldap
schema
Problem is, when you have multiple fields with the same value, you get
an error 0x14 - LDAP_TYPE_OR_VALUE_EXISTS. Which is logical but kinda
annoying if you want for example to add a second address in the same
state or country, like :
ADR;TYPE=HOME:;;321 42nd st;Montreal;QC;GGG RT1;CA
Is there a way to save multiple equal values for an entry for some
fields ?