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
Comment #1
miglius commentedThis issue is already solved in the dev release.
Comment #2
geofs commentedIt 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.
Comment #3
miglius commentedRight, I must have overlooked them. I have put those update hooks into the code.