Problem/Motivation
I get this error when running drush updb
[notice] LDAP bind failure due to missing credentials for user userdn=%userdn
Debug Report
The failure only happens on Drupal 11 (tested on 11.4). It doesn't happen on Drupal 10.6.
It happens on both 4.12 and 4.13
If I run a custom Drush command that uses the LDAP functionality (syncing a user with LDAP info), it binds successfully and works. Essentially, I see no negative effects yet, but I'm reporting the issue out of principle and to be helpful.
I use the Key module to provide the LDAP bind password, and it is working. The error only occurs when running non-related Drush commands, such as drush cex.
Report:
PHP LDAP module
'LDAP Support': enabled
'Total Links': 0/unlimited
'API Version': '3001'
'Vendor Name': OpenLDAP
'Vendor Version': '20610'
'SASL Support': Enabled
Directive:
- 'Local Value'
- 'Master Value'
ldap.max_links:
- Unlimited
- Unlimited
LDAP debug configuration
_core:
default_config_hash: [REDACTED]
watchdog_detail: false
Users
Currently active Drupal user registration setting: admin_only
Drupal LDAP servers
Server Active Directory:
uuid: [REDACTED]
langcode: en
status: true
dependencies: { }
id: active_directory
label: 'Active Directory'
type: ad
address: [REDACTED]
port: [REDACTED]
timeout: 2
encryption: none
weight: null
bind_method: service_account
binddn: '***'
bindpw: null
basedn:
- [REDACTED]
user_attr: samaccountname
account_name_attr: ''
mail_attr: mail
mail_template: ''
picture_attr: ''
unique_persistent_attr: samaccountname
unique_persistent_attr_binary: false
user_dn_expression: ''
testing_drupal_username: [REDACTED]
testing_drupal_user_dn: [REDACTED]
grp_unused: false
grp_object_cat: ''
grp_nested: false
grp_user_memb_attr_exists: false
grp_user_memb_attr: ''
grp_memb_attr: ''
grp_memb_attr_match_user_attr: ''
grp_derive_from_dn: false
grp_derive_from_dn_attr: ''
grp_test_grp_dn: ''
grp_test_grp_dn_writeable: ''
Proposed resolution
Remaining tasks
User interface changes
API changes
Data model changes
Comments
Comment #2
solideogloria commentedComment #3
solideogloria commentedComment #4
solideogloria commentedComment #5
solideogloria commented