I ran into a problem with the ldapdata_mappings field incorrectly serializing/unserializing which would result in a worthless entry. I noticed the field is only a TINYTEXT field in MySQL. By changing this I was able to fix my problems.

This is a simple change:

root@xxxxxx:/blah/sites/all/modules/ldap_integration # diff ldapdata.install ldapdata.install.orig
49c49
<     'size' => 'normal',
---
>     'size' => 'tiny',

Comments

miglius’s picture

Version: 6.x-1.0-alpha2 » 6.x-1.x-dev
Status: Active » Closed (duplicate)

This issue is already solved in the dev release.

geofs’s picture

Status: Closed (duplicate) » Needs work

It may be fixed for new installs but i noticed the database was not updated when updating to latest dev version (may 2009). There are also other tinytext fields that should be updated by update.php, maybe also other issues relating to DB not being updt.

Ran into the issue during a demo to my boss... all fields suddenly blank with a php warning :Invalid argument supplied for foreach() in /.../modules/ldap_integration/ldapdata.module on line 525.

miglius’s picture

Status: Needs work » Fixed

Right, I must have overlooked them. I have put those update hooks into the code.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.