diff options
author | Volker Lendecke <vlendec@samba.org> | 2003-12-25 22:31:30 +0000 |
---|---|---|
committer | Volker Lendecke <vlendec@samba.org> | 2003-12-25 22:31:30 +0000 |
commit | ba1d1842fe7c2e35c9a6835bbdbbe7f4616d408c (patch) | |
tree | 99e877f2fcb9c856edf873f8544c43cd60717bf9 /source3/lib | |
parent | f7650ce10d89a4a602416f1eb76166a0f1d47dbc (diff) | |
download | samba-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.c | 2 |
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")) { |