We extended our LDAP schema and provided a way for users to modify their own attributes in the LDAP. Hence, we have a lot of custom attributes and we tried to add them to ldapdata configuration page, so that users are allowed to mmodify these attributes by using drupal.
But we figured we were unable to check all checkboxes in the ldapdata configuration module, for some unknown reasons.
Now, I've discovered the root cause : ldapauth columns "ldapdata_roattrs" and "ldapdata_rwattrs" have a "TINYTEXT" size in mysql = only limited to 255 characters. By changing the size of these columns to "TEXT", it now works.
If I look at /var/www/html/sites/all/modules/ldap_integration/ldapdata.install , I see the following lines :
db_add_field($ret, 'ldapauth', 'ldapdata_rwattrs', array(
'type' => 'text',
));
db_add_field($ret, 'ldapauth', 'ldapdata_roattrs', array(
'type' => 'text
));
So I wonder why my table columns are sized "TINYTEXT" instead of "TEXT" ?
Comments
Comment #1
miglius commentedCan you reinstall the module (with uninstalling, not just disabling) to see if you can reproduce the issue?
Comment #2
yoho commentedYes, it fixed the problem. Thanks.
Comment #3
miglius commented