Closed (won't fix)
Project:
Drupal.org security advisory coverage applications
Component:
module
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
20 Mar 2011 at 03:16 UTC
Updated:
1 Aug 2012 at 12:52 UTC
The Drupal 6 LDAP integration module allowed site builders to map LDAP attributes to user fields. For Drupal 7, the LDAP module provides much of the functionality that was included in the LDAP integration module but does not fulfill this need.
This module adds a tab to the LDAP configuration page that allows administrators to map attributes from the LDAP directory to user profile fields added via the fields API. The module implements hook_user_login to query LDAP using the LDAP module API and updates the user profile fields on user login.
This module is available in my sandbox here: http://drupal.org/sandbox/doana/1098958
Comments
Comment #1
deviantintegral commentedI've done an initial review of the module and posted a few issues in the sandbox queue.
Comment #2
BenjamiB commentedI'm using ldap 7.x-1.0-beta1 and as I couldn't get provisioning works with my install, I decided to use ldap_map. However fields were not populated at all but the modules was able to fetch the data in "ATTRIBUTE LOOKUP" tab. So after investigation I found that line 48 of ldap_map.module is wrong :
$value = $servers[$field['server']]->search($filter, NULL, $attribs);
while this one works nicely
$value = $servers[$field['server']]->search(NULL, $filter, $attribs);
Hope it'll help...
Comment #3
deviantintegral commentedThis isn't fixed as this is a project application issue that hasn't been resolved. Any bugs or patches against the module should be filed in the sandbox project at http://drupal.org/project/issues/1098958
Comment #4
jordojuice commentedThis should probably remain normal, and as mentioned bug reports should be filed in the project issue queue. This particular issue is relevant only to the application, and not the module itself.
Comment #5
doana commentedI've updated the code to address the issues raised by deviantintegral and BenjamiB.
Comment #6
jordojuice commentedGreat! Just for future reference the issue queue here works a bit differently. Ay time you've fixed an issue setting it back to needs review will notify reviewers that your application us ready to continue the process.
If you are simply improving upon another module, could this be better contributed as a patch to that modul to improve it rather than separating the two?
Comment #7
johnbarclay commentedThere are a number of ldap modules for d7 for data synching. Ldap profile is the one for synching ldap entry data to ldap user data. Its in the 7.x-2.x branch of the ldap project.
In the ldap project I moved the ldap data modules (ldap profile, ldap data, ldap provision, ldap synch, etc.) from the 7.x-1.x branch to the future 7.x-2.x branch simply because there was no follow through on patch requests and bug reports by the people who were working on them. They also lacked thoroughness such as simpletests, exportables/features support, etc.
It would be great if you could take a more assertive role in the ldap profile module, regardless of whether it stays within the ldap project or this project application is renamed ldap_profile, which is what this functionality was called in drupal 6. The problem with it being in the ldap project is it means we all need to be in the same release cycles. The good side of it being there is it makes usability simpler for the end user.
Another problem within the various ldap data modules is a general lack of a coherent architecture for synching ldap data to drupal structures. Without that there will need to be an ldap module for every drupal data type such as Ldap profile, ldap node, ldap taxononmy, etc. I've tried to have some tools in the ldap project to help provide a common code base to leverage (ldap_query, ldap_server, 2 ldap feeds fetchers, and ldap feeds parser).
Comment #8
klausi@doana: do you want to move your efforts to the ldap project or do you still want to make this a separate project?
Comment #9
doana commentedI would have no problems moving this to the ldap project so long as the ldap maintainers support the decision to do so.
Comment #10
avpadernoComment #11
drupwash commentedAll the fields are ported into the database perfectly so I think it will good ldap maintainers support.
Comment #12
klausiThis issue is not fixed, see http://drupal.org/node/532400
Comment #13
caiovlp commentedThere are several indentation issues and spacing issues. (please use this tool to verify all theses types of errors http://ventral.org/pareview)
Are the database fields all 255 characters long? I feel that's way too big for those fields.
Your project page is basically empty, please consider enhancing it. http://drupal.org/node/997024
Comment #14
patrickd commentedminor issues
Comment #15
doana commentedHi all,
Since I created this the LDAP project has developed their own solution for this. I don't plan to do any further development on this code.
Thanks,
-Adam