Closed (fixed)
Project:
CAS
Version:
7.x-1.1
Component:
CAS
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
13 Mar 2012 at 22:07 UTC
Updated:
19 Oct 2017 at 21:08 UTC
Jump to comment: Most recent
I'm importing users from a CSV and want to send a value to CAS username, but the Feeds module doesn't provide a map to this field. Are there plans to integrate with Feeds, or has anyone attempted this?
Comments
Comment #1
node9 commentedSolved.
Comment #2
bfroehle commentedMaybe you'd like to post the solution you found so that others could use it?
Comment #3
node9 commentedSure ... There are probably many ways to accomplish the same thing. It turned out to be more of a Feeds solution than a CAS one. I ended up exporting the Feed into a custom module and exposing the form with:
Then I mapped the values with:
Comment #4
bfroehle commentedFantastic. Hopefully anybody else who needs this in the future can use this issue as a starting point! :)
Comment #5
WebbehFor future reference, I've rolled this into a very small module that should work for this based on #3
https://github.com/EricScottSembrat/feeds_user_cas_field
Works with CAS and Feeds.
Someone also proposed that if your CAS usernames == Drupal usernames, that CAS would associate itself with the local Drupal account on first CAS login. I haven't been able to test that, however.
Comment #6
flocondetoileHello @webbeh,
I've tried your little module and it works fine...But...I don't understand how it works.
Where is your callback function you have defined in the hook_feeds_processor_targets_alter ?
'callback' => 'user_importer_with_cas_set_target', // See 2)Can you enlighten me ?
Comment #7
phl3tch commentedYou're right; the callback specified doesn't exist. It works though, because the FeedsProcessor plugin has a default callback, which does exactly the same thing.
Comment #8
timwhelanatl commentedThe module doesn't exist any more - bummer. So here is a Down and Dirty way to handle it (Back-up first!!!) -
Comment #9
emerham commentedFound a fork? of the original
Forked Module