Skip to content

Failed to bind with current password "data 52e" #31941

@AugmentaCyber-Developers

Description

Affected component: vault-plugin-secrets-openldap (Vault LDAP secrets engine, mount type ldap) running in Vault server v3.0.0-beta1 (running_plugin_version: v3.0.0+builtin.vault).
Symptom: Any operation that triggers an LDAP simple bind as a managed user account - including ldap/static-role/ create, ldap/rotate-role/, and ldap/library/ create - fails immediately with:
failed to bind with current password: 1 error occurred:

  • LDAP Result Code 49 "Invalid Credentials": 80090308: LdapErr: DSID-0C090527, comment: AcceptSecurityContext error, data 52e, v4563 Engine config: schema=ad, against an AD 2019/2022 domain controller over LDAPS (port 636), validated CA chain, working bind account with delegated Reset Password + write pwdLastSet on the target OU. Confirmed not the cause (all verified in the same session):
  • AD password - direct ldapwhoami simple bind with the same DN+password succeeds (DN, UPN, and DOMAIN\sam forms all bind cleanly).

  • Vault auth method (auth/ldap) login with the same user+password succeeds and returns correct group-mapped policies.

    • Bind-account credentials - ldapwhoami as the bind account succeeds; engine config write succeeds. - DN format - bind works with explicit dn=CN=… and with username=… (Vault-resolved). - Password handling - passing as password='literal' and password=@/file produce identical failure. - Audit log proves Vault receives the password (HMAC of supplied value matches HMAC of the request data field) - so it is not being dropped at the API layer.
  • Both skip_static_role_import_rotation=true (config-level) and skip_import_rotation=true (role-level) only delay the failure to the first scheduled or manual rotation.

  • Same bug appears on the library/check-out code path, ruling out a static-role-specific defect. Side observation in server logs (it may be a related symptom): [ERROR] secrets.ldap.: expected role to have WAL, but WAL not found in storage: role= WAL ID= …appearing on the periodic rotation loop after a failed create.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugUsed to indicate a potential bugsecret/ldap

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions