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..

CommentFileSizeAuthor
ldap_bulkupdate.zip2.45 KBwvd_vegt

Comments

eft’s picture

I 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.

eft’s picture

ok - 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.

cgmonroe’s picture

Version: 6.x-1.0-beta2 » 6.x-1.x-dev
Status: Active » Fixed

The 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

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.