Problem/Motivation
Feeds has added a method called cleanUp() to the FetcherResultInterface. we need to implement this method in QueryFetcherResult.php
Original support request:
This might be a noob question. When I create a feed type using the LDAP Query fetcher and select my query. None of the LDAP attributes are listed as a source when I'm trying to map to my node fields. Only Feed entity items appear in the source list eg. Feed: Authored by
I added a feed type.
Fetcher: LDAP Query Fetcher.
Parser LDAP Entry
Processor: Node
Content Type: (Custom Content type with fields)
When I test the LDAP query from /admin/config/people/ldap/query/my_ad_sync/test I can see results and attribute columns. I'm unsure how to get them to appear in the feed type mappings.
Any pointers would be appreciated.
Issue fork feeds_ldap-3380381
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
neubreed commentedIn addition to the above, I set up and import feed. When I run that I get this error: "The feed became locked before the import could begin." There's nothing in the logs with a better explanation and I have all logging / debugging turned on where I could find the option to.
Comment #3
dylan donkersgoed commentedThe fetcher doesn't automatically discover LDAP attributes, you need to manually enter the LDAP attribute name. In the same dropdown with "Feed: Authored by" there should be an option for a custom source. I don't recall off the top of my head exactly what it's called but I believe it's separated from the others toward the bottom of the dropdown.
As for why your feed is locking up it's hard to say without more details. I might be able to take a look if you can attach some configuration (the LDAP server, query, and feeds configuration or just an entire test database) that replicates the issue. You can use a public test LDAP server like the one from https://www.forumsys.com/2022/05/10/online-ldap-test-server/.
Comment #4
neubreed commentedThanks Dylan.
I appreciate you getting back to me so quickly.
By custom source do you mean New Blank source...? See the below pic of available options when selecting a source
https://i.imgur.com/PI2XcMJ.png
I've tried adding blank sources with matching attribute names (lowercase) But the feed returns the same error "The feed became locked before the import could begin." No entries in watchdog. Ultimate Cron has no errors etc
The query is working when I test it via /admin/config/people/ldap/query/my_ad_sync/test
The query settings
https://i.imgur.com/AaD7Bco.png
Server settings (? replaces sensitive info):
Comment #5
neubreed commentedHi Dylan Okay .. I finally discovered a PHP error that could possibly (most likely) be stopping the import:
I'm using PHP 8.1
Comment #6
fox_01 commentedGot the same error as described in #5
Comment #8
a_mitch commentedComment #9
bwoods commentedI can confirm that this patch works. I believe it should be added to the next release.
Comment #10
a_mitch commented