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.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

johnbarclay’s picture

Category: bug » support

Did 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.

francescogiannico’s picture

Hi 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

francescogiannico’s picture

Now 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:

Notice: Array to string conversion in form_process_checkbox() (linea 3144 di /web_intradait/dintradait/includes/form.inc).

while on a test on a user in authorization I have:

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).
johnbarclay’s picture

Can you resave the ldap_user screen admin form?

francescogiannico’s picture

Yep, 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

johnbarclay’s picture

for 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.

francescogiannico’s picture

Hi 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

Notice: Array to string conversion in form_process_checkbox() (linea 3144 di /web_intradait/dintradait/includes/form.inc).

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:

Notice: Undefined index: URL in ldap_sso_path_excluded_from_sso() (line 93 of /web_intradait/dintradait/sites/all/modules/ldap/ldap_sso/ldap_sso.module).
Notice: Undefined index: URL in ldap_sso_path_excluded_from_sso() (line 97 of /web_intradait/dintradait/sites/all/modules/ldap/ldap_sso/ldap_sso.module).

That's all, I hope you can help me tho solve these problems.
Thanks a lot for your work.
Francesco

francescogiannico’s picture

I forgot also these

Warning: Illegal string offset 'count' in ldap_feeds_drupal_user_legend() (linea 157 di /web_intradait/dintradait/sites/all/modules/ldap/ldap_feeds/ldap_feeds.module).
Warning: Illegal string offset 'count' in ldap_feeds_drupal_user_legend() (linea 160 di /web_intradait/dintradait/sites/all/modules/ldap/ldap_feeds/ldap_feeds.module).

when after set "Drupal User LDAP Entry Fetcher" I go to mapping in ldap feeds module....

francescogiannico’s picture

FileSize
9.5 KB
466.45 KB

I attach you a screenshot concerning ldap feeds and a list in txt format about all modules installed (maybe a conflict among them?)...
best

johnbarclay’s picture

Thanks. 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.

johnbarclay’s picture

Title: Ldap authorization bugs and Ldap Feeds no more working » Ldap Feeds: Sample mappings needs better error catching for empty fields in examples and misc UI bugs
Component: Miscellaneous » User interface
Category: support » bug
Priority: Critical » Normal
johnbarclay’s picture

Status: Active » Closed (fixed)

I added a check for "count" in the user ldap attributes. That will take care of the legend error.