我已配置ldap查询模块以从LDAP创建和更新drupal用户
在我的组织中,有几个用户使用相同的邮件帐户(共享邮件)。
运行cron从LDAP更新用户时,出现以下错误:
LDAP用户与Drupal用户的电子邮件地址发生冲突
Drupal \ Core \ Database \ IntegrityConstraintViolationException:SQLSTATE [23000]:违反完整性约束:1062键“ user__name”的条目“ Xxxxxx-es”重复:INSERT INTO {users_field_data}(uid,langcode,preferred_langcode,preferred_admin_langcode ,名称,通过,邮件,时区,状态,创建,更改,访问,登录,初始化,default_langcode,ldap_user_puid_sid,ldap_user_puid,ldap_user_puid_property,ldap_user_current_dn,ldap_user_last_checked,ldap_user_ert_ert_ert_ert_ert_ert_ert_ert_ert_, db_insert_placeholder_4,:db_insert_placeholder_5,:db_insert_placeholder_6,:db_insert_placeholder_7,:db_insert_placeholder_8,:db_insert_placeholder_9,:db_insert_placeholder_10,:db_insert_placeholder_11,:db_insert_placeholder_12,:db_insert_placeholder_13,:db_insert_placeholder_14,:db_insert_placeholder_15,:db_insert_placeholder_16,:db_insert_placeholder_17,:db_insert_placeholder_18,: db_insert_placeholder_19,:db_insert_placeholder_20); zh-cn Drupal \ Core \ Database \ Connection-> handleQueryException()
问题是出现错误时不会继续更新用户,并且有些用户永远不会更新