The Samba-Bugzilla – Attachment 11071 Details for
Bug 11281
IPv6 ADS LDAP Client connects fail. LDAP URL format in code is wrong.
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch: adds IPv6 support to ADS client side LDAP connects
0001-Add-IPv6-support-to-ADS-client-side-LDAP-connects.-C.patch (text/plain), 1.11 KB, created by
David Holder
on 2015-05-20 16:05:39 UTC
(
hide
)
Description:
Patch: adds IPv6 support to ADS client side LDAP connects
Filename:
MIME Type:
Creator:
David Holder
Created:
2015-05-20 16:05:39 UTC
Size:
1.11 KB
patch
obsolete
>From d5b7070b38f6152a52c2e08f81f1f1ee63d3091a Mon Sep 17 00:00:00 2001 >From: David Holder <david.holder@erion.co.uk> >Date: Tue, 12 May 2015 16:09:54 +0100 >Subject: [PATCH] Add IPv6 support to ADS client side LDAP connects. Corrected > format for IPv6 LDAP URI. Signed-off-by: David Holder > <david.holder@erion.co.uk> > >Signed-off-by: David Holder <david.holder@erion.co.uk> >Reviewed-by: Jeremy Allison <jra@samba.org> >--- > source3/libads/ldap.c | 8 +++++++- > 1 file changed, 7 insertions(+), 1 deletion(-) > >diff --git a/source3/libads/ldap.c b/source3/libads/ldap.c >index 3f5302f..2ad9bfd 100644 >--- a/source3/libads/ldap.c >+++ b/source3/libads/ldap.c >@@ -79,7 +79,13 @@ static void gotalarm_sig(int signum) > /* End setup timeout. */ > } > >- uri = talloc_asprintf(talloc_tos(), "ldap://%s:%u", server, port); >+ if ( strchr_m(server, ':') ) { >+ /* IPv6 URI */ >+ uri = talloc_asprintf(talloc_tos(), "ldap://[%s]:%u", server, port); >+ } else { >+ /* IPv4 URI */ >+ uri = talloc_asprintf(talloc_tos(), "ldap://%s:%u", server, port); >+ } > if (uri == NULL) { > return NULL; > } >-- >2.2.0.rc0.207.ga3a616c >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 11281
:
11071
|
11093
|
11094