Skip to content
This repository was archived by the owner on Jul 24, 2023. It is now read-only.
This repository was archived by the owner on Jul 24, 2023. It is now read-only.

Enabling TLS generates exception when attempting login #737

@nerdalertdk

Description

@nerdalertdk
  • Laravel Version: 5.8
  • Adldap2-Laravel Version: 6.0
  • PHP Version: 7.2.17
  • LDAP Type: FreeIPA

Description:

When fallback is true and the site have not connection to ldap I get this error

#File: /app/vendor/adldap2/adldap2/src/Connections/Ldap.php

ErrorException (E_WARNING)
ldap_start_tls(): Unable to start TLS: Can't contact LDAP server

Site works fine in fallover mode with no TLS

Steps To Reproduce:

Add this to you .env file

LDAP_USE_TLS=true
LDAP_LOGIN_FALLBACK=true

First login where the site have an LDAP connection (to sync user)
then block ldap connection and login will fail

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions