Closed (fixed)
Project:
LDAP integration
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
15 Dec 2009 at 09:42 UTC
Updated:
17 May 2012 at 22:40 UTC
Hi,
I've written a small module to update the ldap data of all lpdap authenticated users in drupal. We use it when we add additional profile fields or change the mapping fo attributes (through filters) to refresh all data.
It requires no patches to the existing modules and uses only a single call into ldapdata..
| Comment | File | Size | Author |
|---|---|---|---|
| ldap_bulkupdate.zip | 2.45 KB | wvd_vegt |
Comments
Comment #1
eft commentedI tried this module and didn't get the desired results. I got confirmation messages for each of my users that their user accounts had been updated; However, none of the attributes appear to have been updated.
Couple of other things I noticed. This module seemed to displace the ldap_auth row in the permissions table. Also, another module (og_content_type_admin module) seem to think that LDAP bulk update was a content type.
Comment #2
eft commentedok - I debugged the issue
Under the data settings page (/admin/settings/ldap/ldapdata/edit/1) I had not configured the DN for non-anonymous search under the Advanced configuration. This was because I am only doing one-way sync from LDAP to Drupal; However, because this module appears to rely on functionality that assumes the case where users are doing two-way sync (and I stand to be corrected on this) I needed to use the same DN that I use under the authentication section (/admin/settings/ldap/ldapauth/edit/1).
Hope this helps someone - this module will be huge if a couple of the wrinkles can be ironed out.
Comment #3
cgmonroe commentedThe code just committed (dev version) adds a "update existing users only" option to the ldapsync module (new since beta2). This performs the same function as the supplied module but using the current code.
For details of these changes see #1475272: 6.x-1.0 Release Candidate 1 Status