[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: (ITS#8654) Option for LDAP client to bind to a local address.
--_000_BC204A77E2E9CD4A85A8F600C7F0BA848C0F4476SPQCMBX01exfoco_
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
For reference:
https://msdn.microsoft.com/en-us/library/aa367019(v=3Dvs.85).aspx
LDAP_OPT_SOCKET_BIND_ADDRESSES
0x44
Sets or retrieves a pointer to a TCHAR string containing a list of space-se=
parated addresses to be used by socket bind. For a multihomed machine, use =
this option to set a particular network interface address to be used for so=
cket bind. Socket bind will be performed before socket connect for the serv=
er address. See socket bind for more details.
You should provide both IPv4 and IPv6 local addresses, if available, becaus=
e both IPv4 and IPv6 server addresses can be used for socket connect. Socke=
t bind will fail if there is an address family mismatch. On the Domain Cont=
roller, for the default Server (HostName=3DNULL), loopback addresses will b=
e used for socket connect. Set loopback addresses (for both IPv4 and IPv6) =
for this option to work.
This option can only be set before a connection is established. That is, ju=
st after ldap_init.
-------------------------------
I am not sure what "a list of space-separated addresses" exactly means. Per=
haps one IPv4 IP address and one IPv6 address if both are available. My use=
case is either a local IPv4 or IPv6 address.
Daniel
--_000_BC204A77E2E9CD4A85A8F600C7F0BA848C0F4476SPQCMBX01exfoco_
Content-Type: text/html; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
<html xmlns:v=3D"urn:schemas-microsoft-com:vml" xmlns:o=3D"urn:schemas-micr=
osoft-com:office:office" xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns:m=3D"http://schemas.microsoft.com/office/2004/12/omml" xmlns=3D"http:=
//www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dus-ascii"=
>
<meta name=3D"Generator" content=3D"Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:#954F72;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri",sans-serif;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext=3D"edit">
<o:idmap v:ext=3D"edit" data=3D"1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang=3D"EN-US" link=3D"#0563C1" vlink=3D"#954F72">
<div class=3D"WordSection1">
<p class=3D"MsoNormal">For reference:<o:p></o:p></p>
<p class=3D"MsoNormal">https://msdn.microsoft.com/en-us/library/aa367019(v=
=3Dvs.85).aspx<o:p></o:p></p>
<p class=3D"MsoNormal"><o:p> </o:p></p>
<p class=3D"MsoNormal">LDAP_OPT_SOCKET_BIND_ADDRESSES<o:p></o:p></p>
<p class=3D"MsoNormal">0x44<o:p></o:p></p>
<p class=3D"MsoNormal"><o:p> </o:p></p>
<p class=3D"MsoNormal">Sets or retrieves a pointer to a TCHAR string contai=
ning a list of space-separated addresses to be used by socket bind. For a m=
ultihomed machine, use this option to set a particular network interface ad=
dress to be used for socket bind.
Socket bind will be performed before socket connect for the server address=
. See socket bind for more details.<o:p></o:p></p>
<p class=3D"MsoNormal"><o:p> </o:p></p>
<p class=3D"MsoNormal">You should provide both IPv4 and IPv6 local addresse=
s, if available, because both IPv4 and IPv6 server addresses can be used fo=
r socket connect. Socket bind will fail if there is an address family misma=
tch. On the Domain Controller, for
the default Server (HostName=3DNULL), loopback addresses will be used for =
socket connect. Set loopback addresses (for both IPv4 and IPv6) for this op=
tion to work.<o:p></o:p></p>
<p class=3D"MsoNormal"><o:p> </o:p></p>
<p class=3D"MsoNormal">This option can only be set before a connection is e=
stablished. That is, just after ldap_init.<o:p></o:p></p>
<p class=3D"MsoNormal"><o:p> </o:p></p>
<p class=3D"MsoNormal">-------------------------------<o:p></o:p></p>
<p class=3D"MsoNormal">I am not sure what "a list of space-separated a=
ddresses" exactly means. Perhaps one IPv4 IP address and one IPv6 addr=
ess if both are available. My use case is either a local IPv4 or IPv6 addre=
ss.<o:p></o:p></p>
<p class=3D"MsoNormal"><o:p> </o:p></p>
<p class=3D"MsoNormal">Daniel<o:p></o:p></p>
</div>
</body>
</html>
--_000_BC204A77E2E9CD4A85A8F600C7F0BA848C0F4476SPQCMBX01exfoco_--