Re: LDAP-Mapping
Thomas Foerster <[email protected]> Thu, 23 Sep 2010 13:00:26 +0200
| Newsgroups | gmane.comp.openoffice.dba.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi Frank,
thank you very much. This is an important step to understand ... :-)
mailnews.js is looking the same like my user.js in Thunderbird. But the
problem still exists: If I change something like putting
"homePostalAddress" to "Custom4" (s.b.) the OO-field still stays empty.
Not so in TB.
pref("ldap_2.servers.default.attrmap.Custom4",
"homePostalAddress,mozillaCustom4,custom4");
Regards
Thomas
Am 23.09.2010 08:45, schrieb Frank Schönheit:
> Hi Thomas,
>
>> I cannot find any way to change LDAP-mapping in OO 3.2.1 (OpenLDAP). In
>> Thunderbird I can map every field successful with user.js.
>>
>> For OO I did this: http://docs.sun.com/app/docs/doc/817-7496/fjdcg?a=view
>>
>> - LDAP.xcu i.e. with "Mapping":<value>mapping</value>
>>
>> - mapping-attr.map i.e. with this:
>> org.openoffice.UserProfile/Data/c = registeredAddress
>>
>> I don't get any data from "registeredAddress". I can change whatever I
>> want from fields used in UserProfile.xcs, there is no change... I am
>> also confused about this fields (<-> fields in UserProfile.xcs ?):
>> http://dba.openoffice.org/FAQ/LDAP_field_mapping.html
>>
>> Any idea, what I am doing wrong?
> First, you're mixing up two different things :)
>
> The documentation at docs.sun.com talks about user profile data in a
> multi-user installation of StarOffice.
>
> LDAP_field_mapping.html talks about the field mapping used by the LDAP
> address book driver.
>
> I suppose the latter - LDAP address book access - is what you're
> interested in, really. Then the second problem is that
> LDAP_field_mapping.html is out of date :-\
>
> Since LDAP address book access is implemented using Mozilla code,
> tweaking the mapping is two-step: First, locate mailnews.js in your
> installation: It controls how the Mozilla code translates LDAP fields
> into programmatic address book fields.
> Second (and probably optional), the org.openoffice.Office.DataAccess
> configuration (in a DataAccess.xcu file somewhere deep in the "share"
> folder in your installation, but also and preferably accessible
> programmatically) maps programmatic address book field names to UI
> column names.
>
> Those two together should give you control over what LDAP fields are
> actually displayed, and how.
>
> Ciao
> Frank
>