OPNsense Forum

English Forums => 25.7, 25.10 Series => Topic started by: ziadkiwan on November 03, 2025, 11:56:55 AM

Title: Potential Bug: Ldap Test Button Failing with Curl error: No host part in the URL
Post by: ziadkiwan on November 03, 2025, 11:56:55 AM
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:

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?
Title: Re: Potential Bug: Ldap Test Button Failing with Curl error: No host part in the URL
Post by: Patrick M. Hausen on November 03, 2025, 12:56:58 PM
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"?
Title: Re: Potential Bug: Ldap Test Button Failing with Curl error: No host part in the URL
Post by: ziadkiwan on November 03, 2025, 01:25:19 PM
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 !