OPNsense Forum

English Forums => 24.7, 24.10 Legacy Series => Topic started by: Tasagore on January 03, 2025, 03:57:17 PM

Title: Unable to connecto to LDAP (Windows Server 2025)
Post by: Tasagore on January 03, 2025, 03:57:17 PM
Hi

I have a Windows Server 2025 as AD, the server has the policy Network security: LDAP client signing requirements as undefined (I've also tried with disabled), the registry key HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\NTDS\Parameters\LDAPServerIntegrity has the value 1, so all seems to be configured to accept LDAP binding without SSL/TLS.

In OPNSense I configure all the LDAP settings but when I test the connection it shows this error:

The following input errors were detected:
Authentication failed.
error: 00002028: LdapErr: DSID-0C090343, comment: The server requires binds to turn on integrity checking if SSL\TLS are not already active on the connection, data 0, v65f4
ldap_error: Strong(er) authentication required

Probably it's a Windows Server issue but I can't find how to solve it, seems that MS has disable the simple bind since when I try that from the server the same error appears (it works if I use bind with credentials).

Any idea?
Title: Re: Unable to connecto to LDAP (Windows Server 2025)
Post by: Patrick M. Hausen on January 03, 2025, 04:26:27 PM
Are you using LDAP (port 389) or LDAPS (port 636)? If not the latter, why not?
Title: Re: Unable to connecto to LDAP (Windows Server 2025)
Post by: Tasagore on January 03, 2025, 04:38:22 PM
Quote from: Patrick M. Hausen on January 03, 2025, 04:26:27 PMAre you using LDAP (port 389) or LDAPS (port 636)? If not the latter, why not?
I'm using LDAP (389) since it's how the AD server it's (apparently) configured.

Locally using bind with credentials works ok without SSL, simple bind is what fails and I guess that's the bind mode OPNSense is using.

I'm trying to setup with SSL but now the connection to the server fails (ldap_error: Can't contact LDAP server), I'm taking a look to the AD configuration in the Windows side.
Title: Re: Unable to connecto to LDAP (Windows Server 2025)
Post by: Tasagore on January 03, 2025, 04:45:14 PM
Solved applying this policies: https://forum.netgate.com/topic/187453/ldap-authentication-with-active-directory-windows-server-2025-bind-fails/3

Thanks!
Title: Re: Unable to connecto to LDAP (Windows Server 2025)
Post by: MichelleGrant on February 04, 2025, 10:08:48 AM
Congratulations on solving that problem, and thank you for sharing your solution, it was a useful solution.among us (https://amongusgame.io)
Title: Re: Unable to connecto to LDAP (Windows Server 2025)
Post by: Patrick M. Hausen on February 04, 2025, 10:36:09 AM
Quote from: Tasagore on January 03, 2025, 04:38:22 PMI'm trying to setup with SSL but now the connection to the server fails (ldap_error: Can't contact LDAP server)

Port 636?