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.

Can't contact LDAP server when using SSL on production machine. #848

Open
@TheWhichDoctor

Description

@TheWhichDoctor
  • Laravel Version: 6.6.2
  • Adldap2-Laravel Version: 6.0.8
  • PHP Version: 7.3.12
  • LDAP Type: ActiveDirectory

Description:

Our intranet system works with SSO middleware and everyone connects perfectly fine while not using SSL to connect. However when I switch the LDAP_PORT and set LDAP_USE_SSL to true it is no longer able to connect, giving the error:

production.ERROR: Can't contact LDAP server {"userId":"<removed>","exception":"[object] (Adldap\\Auth\\BindException(code: -1): Can't contact LDAP server at C:\\inetpub\\vendor\\adldap2\\adldap2\\src\\Auth\\Guard.php:107)

The production website is running on Windows Server 2016 Standard with IIS10.
Using the code in a local environment (my win10 PC running XAMPP) it still connects, signs in and the website works perfectly.
We called the AD host to see if there was anything they could do and they managed to set up a machine and connect over SSL as well.

I have tried the following solutions but neither have worked:
#318
#847

Also just wondering if there has been any progress on this enhancement? It would help a lot with debugging problems like this
#813

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