Potential Bug: Ldap Test Button Failing with Curl error: No host part in the URL

Started by ziadkiwan, November 03, 2025, 11:56:55 AM

Previous topic - Next topic
November 03, 2025, 11:56:55 AM Last Edit: November 03, 2025, 12:09:07 PM by ziadkiwan Reason: UPDATE
Hello Everyone!

I'm facing a strange issue with Ldaps integration inside System -> Access -> Servers, when i'm trying to integrate my LDAPS server, and i cannot find anything in the logs.

Steps:
  • Go to System -> Access -> Servers
  • Configure HostURL: x.x.x.x
  • Configure Transport: SSL (Port 636)
  • Configure Bind etc etc etc
  • Click on Test

Expected Behavior:
Test Successful message

Current Behavior:
Error Message: Curl error: (3) URL rejected: No host part in the URL

Notes:
if i click on  Authentication containers select button, i get all the authentication contains correctly from my LDAPS server.

System Info:
Type    opnsense   
Version    25.7.6   
Architecture    amd64   
Commit    0f651d7b6   
Mirror    https://pkg.opnsense.org/FreeBSD:14:amd64/25.7   
Repositories    OPNsense (Priority: 11)   
Updated on    Mon Nov 3 12:16:56 EET 2025   
Checked on    N/A

-------
UPDATE 3/NOV/2025
I clicked on save and when inside the System -> Access -> Testers logged in with a user and i was able to authenticate. so is it a bug in the test inside LDAPS?

The help text for the host address reads:

QuoteNOTE: When using SSL, this hostname MUST match the Common Name (CN) of the LDAP server's SSL Certificate.

So you cannot use an IP address there - which I guess you did, because you wrote "x.x.x.x"?
Deciso DEC750
People who think they know everything are a great annoyance to those of us who do. (Isaac Asimov)

Hello Patrick,

Thank you for the help!

Nop i used an FQDN and the CN matches the SSL Certificate, and i clicked test the issue kept on happening, i was like mehh let me try to save and use the Testers, and it worked fine in the testers !