I have an application that stores contacts in OpenLDAP. It uses the c
attribute to store a string describing a country name. The syntax of c
only allows a two-letter country code, but the application uses full country names. Therefore the attribute it should be using is co
, or
friendlyCountryName
. Unfortunately I cannot change this application. (It's Mozilla).
I am looking for a way to make this work. I can, of course, change the schema definition of c
to that of co
, but that seems bad practice. I could also disable schema checking, but that is even worse.
I have also tried using the rwm overlay to map c
onto co
, which works (as in: client saves c
, database contains co
), but then the syntax of c
is still enforced, so that doesn't work.
So, the best option I have now is to change the syntax of c
in the core schema. But I am curious: are there better ways to work around this?
If your LDAP server is configured with the
mozillaAbPersonAlpha
schema, you can tack the AUXobjectClass: mozillaAbPersonAlpha
onto your entries (provided they havecn
) and then use themozillaHomeCountryName
attribute.