Hi everyone,
With Ldap beta12 and Feeds I was able, after configured a query on my ldap server, to map users with ldap feeds. I was able to chooese one ldap query in my items and map all fields wit ldap attributest. After a first test all was ok. When I saw latest beta and dev version I updated ldap module (last dev 5 dec 2012) and also Feeds module (last alpha7 version) .
Now Into mywebsite/import section (where Feeds works...) I chose my user preset import but I'm not able now to choose an ldap query (yes with old version), I cannot import nothing from ldap......this was my first big problem and on this screen I've this message returned Notice: Array to string conversion in form_process_checkbox() (linea 3144 di /web_intradait/dintradait/includes/form.inc).
The other big problem is in the authorization section of configuration of ldap. Always in old version there were no error messages here but now if i do a test here "admin/config/people/ldap/authorization" a long error series appear like these:
Notice: unserialize(): Error at offset 0 of 28 bytes in LdapAuthorizationConsumerConf->loadFromDb() (linea 98 di /web_intradait/dintradait/sites/all/modules/ldap/ldap_authorization/LdapAuthorizationConsumerConf.class.php).
Notice: unserialize(): Error at offset 0 of 28 bytes in LdapAuthorizationConsumerConf->loadFromDb() (linea 98 di /web_intradait/dintradait/sites/all/modules/ldap/ldap_authorization/LdapAuthorizationConsumerConf.class.php).
Notice: unserialize(): Error at offset 0 of 28 bytes in LdapAuthorizationConsumerConf->loadFromDb() (linea 98 di /web_intradait/dintradait/sites/all/modules/ldap/ldap_authorization/LdapAuthorizationConsumerConf.class.php).
Notice: Undefined index: prov_events in LdapUserConf->getSynchMappings() (linea 281 di /web_intradait/dintradait/sites/all/modules/ldap/ldap_user/LdapUserConf.class.php).
Warning: array_intersect(): Argument #2 is not an array in LdapUserConf->getSynchMappings() (linea 281 di /web_intradait/dintradait/sites/all/modules/ldap/ldap_user/LdapUserConf.class.php).
Notice: Undefined index: prov_events in LdapUserConf->getSynchMappings() (linea 281 di /web_intradait/dintradait/sites/all/modules/ldap/ldap_user/LdapUserConf.class.php).
Warning: array_intersect(): Argument #2 is not an array in LdapUserConf->getSynchMappings() (linea 281 di /web_intradait/dintradait/sites/all/modules/ldap/ldap_user/LdapUserConf.class.php).
Notice: Undefined index: prov_events in LdapUserConf->getSynchMappings() (linea 281 di /web_intradait/dintradait/sites/all/modules/ldap/ldap_user/LdapUserConf.class.php).
Warning: array_intersect(): Argument #2 is not an array in LdapUserConf->getSynchMappings() (linea 281 di /web_intradait/dintradait/sites/all/modules/ldap/ldap_user/LdapUserConf.class.php).
Notice: unserialize(): Error at offset 0 of 28 bytes in LdapAuthorizationConsumerConf->loadFromDb() (linea 98 di /web_intradait/dintradait/sites/all/modules/ldap/ldap_authorization/LdapAuthorizationConsumerConf.class.php).
Notice: unserialize(): Error at offset 0 of 28 bytes in LdapAuthorizationConsumerConf->loadFromDb() (linea 98 di /web_intradait/dintradait/sites/all/modules/ldap/ldap_authorization/LdapAuthorizationConsumerConf.class.php).
Notice: unserialize(): Error at offset 0 of 28 bytes in LdapAuthorizationConsumerConf->loadFromDb() (linea 98 di /web_intradait/dintradait/sites/all/modules/ldap/ldap_authorization/LdapAuthorizationConsumerConf.class.php).
Warning: Invalid argument supplied for foreach() in ldap_authorization_test_form() (linea 79 di /web_intradait/dintradait/sites/all/modules/ldap/ldap_authorization/ldap_authorization.admin.test.inc).
I hope you have any suggestions, I tried also to uninstall modules , clean tables in mysql and installa again them but nothing happens.
Comment | File | Size | Author |
---|---|---|---|
#9 | ldap feeds.jpg | 466.45 KB | francescogiannico |
#9 | active module.txt | 9.5 KB | francescogiannico |
Comments
Comment #1
johnbarclay CreditAttribution: johnbarclay commentedDid you run update.php? And did you resave the authorization screens? What do you mean nothing happens in the last sentence...the same problem occurs? Also are you using features and do you have ctools enabled? This is useful for debugging.
Comment #2
francescogiannico CreditAttribution: francescogiannico commentedHi John, thanks for answering. Run update.php and resaved on authorization screen, nothing happen means that same error occours. Yes there's features module enabled and ctools. Ctools I need for the view module , "features" probably I don't need at the moment. Can I disable? maybe this the problem?
Thanks
Comment #3
francescogiannico CreditAttribution: francescogiannico commentedNow I tried to uninstall "features" module, and run again update.php , clean all caches.
On ldap feeds I have no more the window with possibility to choose my ldap query and this error:
while on a test on a user in authorization I have:
Comment #4
johnbarclay CreditAttribution: johnbarclay commentedCan you resave the ldap_user screen admin form?
Comment #5
francescogiannico CreditAttribution: francescogiannico commentedYep, saved
always same errors, the query is ok, I can communciate with the server, at this point I don't know if it's a module problem or a configuration problem, I only know that for a week with beta 12 seems to work all ok.
I don't know what to do
Comment #6
johnbarclay CreditAttribution: johnbarclay commentedfor the second error: Notice: Undefined index: prov_events in LdapUserConf->getSynchMappings() (linea 281 di
Does the configuration look correct for ldap_user? Is there anything checked under "Drupal Account Provisioning Events"? Or are you creating drupal accounts based on ldap accounts? If you are creating them, something should be checked. If not the patch I just committed should fix the error. (http://drupalcode.org/project/ldap.git/blobdiff/46eb7da182225a5aa1fee4dc...)
for the first error, I'm unclear what is happening.
Comment #7
francescogiannico CreditAttribution: francescogiannico commentedHi John, patch works weel, I've no more error whent testing an ldap user on authorization. Yes I'm trying to create drupal accounts based on ldap accounts and no drupal account provisioning events is checked. After created the connection with the ldap server, I've created the query, it seems to work well during the test.
Now these 2 bug/errors I'd like to solve:
I have to fill in a lot of fields present in my drupal user profile so I thought to create an ldap feeds import to do this step.
But the problem is that now when I choose "Drupal User LDAP Entry Fetcher" in ldap feeds importer it gave me this message
and I don't have the possibility to choose my ldap query. Initially after created the query I was able in ldap feeds to select it and doing the import with my "feeds mapping", now this window with query appear only if in the fetcher I choose "LDAP Query Fetcher" but it obviously doesn't work becouse it's correlated with drupal contents and not with drupal users right?
At the end, last strange thing is that at the top of the page of my "address book" created with "ldap view" now this message appear only for anonymous users:
That's all, I hope you can help me tho solve these problems.
Thanks a lot for your work.
Francesco
Comment #8
francescogiannico CreditAttribution: francescogiannico commentedI forgot also these
when after set "Drupal User LDAP Entry Fetcher" I go to mapping in ldap feeds module....
Comment #9
francescogiannico CreditAttribution: francescogiannico commentedI attach you a screenshot concerning ldap feeds and a list in txt format about all modules installed (maybe a conflict among them?)...
best
Comment #10
johnbarclay CreditAttribution: johnbarclay commentedThanks. Appreciate the followup. I'm not using ldap feeds, so its good to have someone testing it and helping work through the bugs. For starters try to figure bring in only one or two fields. The 'count' illegal offset is likely an attribute not found in the ldap entry.
Comment #11
johnbarclay CreditAttribution: johnbarclay commentedComment #12
johnbarclay CreditAttribution: johnbarclay commentedI added a check for "count" in the user ldap attributes. That will take care of the legend error.