It can't import all groups
| Project: | LDAP integration |
| Version: | 5.x-1.3 |
| Component: | Code |
| Category: | bug report |
| Priority: | critical |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Hi you all. I've tried to find information about that on other support and bug threads and I'm afraid I haven't found a solutions. I've installed very succesfully the LDAP integration module using 5.x-1.3.
The problem is that it doesn't import all the groups we have created for the set of users we allow to login to our drupal. I think that the reason is that the field "ldap_group_entries" which the module "ldapgroups" add to the table "ldapauth" is defined as "varchar(255)". That's the reason that it truncates the list of groups we have defined on our LDAP environment and we expect to import as roles on drupal. This field is too short and it's only allowing us to import the first 5 groups out of just 8 (we're not trying to import hundreds of groups as an stress test ;-).
I've set the priority as critical since my impression is that the problem is not difficult to solve and it makes the ldapgroups.module useless, unless you only have grouped your user list on just a few groups.
Any idea?

#1
Well, I've made some testing which verifies my first idea.
We've used the last "Groups exist as LDAP entries where a multivalued attribute contains the members' CNs" option onto the LDAP groups admin page since it's the way our customer is using its LDAP server. Also that user is defining LDAP groups as "cn=Nameofgroup,ou=Groups,dc=uplevel,dc=upperlevel,dc=toplevel" since it's the complete LDAP group path definition. It makes long lines for every group definition and thus a long text.
I've managed to enter all the information changing the definition of the field "ldap_group_entries" I've mentioned on the previous entry from "varchar(255)" to "varchar(1024)". I don't know if that's the best way to solve it, at least it has worked.
It has worked so consistently that the next time we have logged some users drupal has upgraded the table of roles with the ones on low positions on the list that were not saved previously. That's good news :-)