Trying out the ldapsync via the latest dev version of 2011-09-03, running it as "admin". I get these errors even though the sync seems to work:

warning: array_fill() [function.array-fill]: Number of elements must be positive in ...\sites\all\modules\ldap_integration\ldapdata.module on line 242.
warning: implode() [function.implode]: Invalid arguments passed in ...\sites\all\modules\ldap_integration\ldapdata.module on line 242.
user warning: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ') AND type = 'date'' at line 1 query: SELECT name, options from profile_fields WHERE name IN () AND type = 'date' in ...\sites\all\modules\ldap_integration\ldapdata.module on line 243.

The error appears when "Synchronize LDAP data with Drupal profiles" is set to:
"When user logs in. (Use when LDAP rarely changes.) "

via: admin/settings/ldap/ldapdata

Note that error does not occur when set to: "Every time user object loaded in Drupal. (May cause high LDAP traffic.)"

Comments

zeezhao’s picture

Forgot to add that:
- running the sync manually using the "Sync Now" button
- "Filter" is not set
- "Sync time interval: " = "never"
- "Missing users action:" = "warn"

edit:
Possibly related to this: http://drupal.org/node/1253020 ?

sutharsan’s picture

Status: Active » Closed (duplicate)

Duplicate of #1253020