summaryrefslogtreecommitdiff
path: root/source3/lib
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2003-12-25 22:31:30 +0000
committerVolker Lendecke <vlendec@samba.org>2003-12-25 22:31:30 +0000
commitba1d1842fe7c2e35c9a6835bbdbbe7f4616d408c (patch)
tree99e877f2fcb9c856edf873f8544c43cd60717bf9 /source3/lib
parentf7650ce10d89a4a602416f1eb76166a0f1d47dbc (diff)
downloadsamba-ba1d1842fe7c2e35c9a6835bbdbbe7f4616d408c.tar.gz
samba-ba1d1842fe7c2e35c9a6835bbdbbe7f4616d408c.tar.bz2
samba-ba1d1842fe7c2e35c9a6835bbdbbe7f4616d408c.zip
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)
Diffstat (limited to 'source3/lib')
-rw-r--r--source3/lib/smbldap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/lib/smbldap.c b/source3/lib/smbldap.c
index 7bd4c6d7aa..20fa4fbc62 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")) {