From 38d0c9698fd60ed46432bc30a110b820eb9aebb6 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Thu, 25 Dec 2003 22:29:38 +0000 Subject: 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 17473a65eb119ca2240b40a8c029d9a499cde177) --- source3/lib/smbldap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source3/lib/smbldap.c') diff --git a/source3/lib/smbldap.c b/source3/lib/smbldap.c index 8f6394ea92..da409dce04 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")) { -- cgit