From ba1d1842fe7c2e35c9a6835bbdbbe7f4616d408c Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Thu, 25 Dec 2003 22:31:30 +0000 Subject: [PATCH] Fix our parsing of the LDAP url. We get around it as all decent systems seem to have ldap_initialize. Thanks to abartlet for the fix (and the bug in the first place ;-)) Volker (This used to be commit 943e156788ea361cb3ec0ab37a87653494e47f2e) --- source3/lib/smbldap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source3/lib/smbldap.c b/source3/lib/smbldap.c index 7bd4c6d7aa8..20fa4fbc62a 100644 --- a/source3/lib/smbldap.c +++ b/source3/lib/smbldap.c @@ -548,7 +548,7 @@ static int smbldap_open_connection (struct smbldap_state *ldap_state) p += 4; } - sscanf(p, "%10[^:]://%254s[^:]:%d", protocol, host, &port); + sscanf(p, "%10[^:]://%254[^:/]:%d", protocol, host, &port); if (port == 0) { if (strequal(protocol, "ldap")) { -- 2.34.1