summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2003-12-25 22:29:38 +0000
committerVolker Lendecke <vlendec@samba.org>2003-12-25 22:29:38 +0000
commit38d0c9698fd60ed46432bc30a110b820eb9aebb6 (patch)
tree00ee9c383cb816ad725ab0225c2c7eba237bb2a2 /source3
parent91e1154370567d9ab6899ce337b8bb891ed77a33 (diff)
downloadsamba-38d0c9698fd60ed46432bc30a110b820eb9aebb6.tar.gz
samba-38d0c9698fd60ed46432bc30a110b820eb9aebb6.tar.bz2
samba-38d0c9698fd60ed46432bc30a110b820eb9aebb6.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 17473a65eb119ca2240b40a8c029d9a499cde177)
Diffstat (limited to 'source3')
-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 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")) {