Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

ldap module does not correctly interpret intermediate CA certs on ldaps connections. #609

Copy link
Copy link
@ppanon2022

Description

@ppanon2022
Issue body actions

The intermediate cert on our private PKI expired and had to be replaced on our domain controllers. The domain controllers properly show the new intermediate CA being presented on an openssl s_client connection on a Linux system which trusts the root CA and the [expired] .

However an ldaps connection established on that Linux server with

  ldapobject = ldap.initialize(config['url'])

  # Set LDAP options for better debugging
  ldapobject.set_option(ldap.OPT_REFERRALS, 0)
  ldapobject.set_option(ldap.OPT_PROTOCOL_VERSION, 3)

  # Attempt bind
  ldapobject.simple_bind_s(config['bind_dn'], config['bind_password'])

fails with an error that the certificate chain is not valid.

{'result': -1, 'desc': "Can't contact LDAP server", 'ctrls': [], 'info': 'error:0A000086:SSL routines::certificate verify failed (certificate has expired)'}

So it is checking the locally trusted but expired Intermediate CA certificate instead of using the valid Intermediate certificate provided by the ldaps server.

Reactions are currently unavailable

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    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

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.