I'm trying to use utilize LDAP Query along with the Feeds module to populate a custom content type called "People". Everything is working exactly as expected except for one field. In LDAP, the source field I need is the 2nd value in the array for a multi-valued attribute. Is there anyway I can map a multi-valued attribute to a target field? Any help would be much appreciated.

Thank you,
Henry

Comments

johnbarclay’s picture

Category: support » feature
Status: Active » Needs work

No idea on this one without some patching, so am changing to a feature request; if someone knows of a way to do this without a patch please chime in.

I see 2 possible paths and both support different use cases so they are not mutually exclusive.

A.1. get ldap_feeds to fetch and process multivalued attributes correctly. A patch would need to be written. Last I checked the current version of feeds will not support multiple values in a field without something like A.2 to flatten them.
A.2. use a feeds add such as feeds tamper or a feeds hook to get the 2nd attribute

B. Implement ldap tokens (http://drupal.org/node/1245736) in ldap_feeds so a mapping can be of the form [ou:1] (to signify the using the second instance of the multivalued attribute 'ou').

larowlan’s picture

Issue summary: View changes
Status: Needs work » Closed (won't fix)

no update for > 12 months, no patches - closing

lpalgarvio’s picture

Status: Closed (won't fix) » Active

the referenced issue has patches and development in less than 12 months, in RBTC for 9 months.
Opening the issue to make it more noticeable.
You can close this one again after.

grahl’s picture

Status: Active » Closed (duplicate)

The related issue was closed, so closing this as above. Please reopen if the underlying issue is not resolved.