2025-11-28 00:35:46 +09:00

105 lines
5.8 KiB
HTML
Raw Permalink Blame History

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Active Directory Service Interfaces - Connecting to the Internet</title>
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
</head>
<body topmargin="0" leftmargin="0">
<table border="0" height="86" cellpadding="0" cellspacing="0">
<tr>
<td width="77%" valign="top" height="58"><map name="FPMap2">
<area href="http://www.microsoft.com/windows2000/library/howitworks/activedirectory/adsilinks.asp" shape="rect" coords="4, 6, 248, 57"></map><img src="banner.gif"
border="0" alt="http://www.microsoft.com/windows2000/library/howitworks/activedirectory/adsilinks.asp" width="250" height="60" usemap="#FPMap2"></td>
<td width="3%" height="58"></td>
<td width="21%" height="58" valign="bottom"><p align="right"><map name="FPMap3">
<area href="http://www.microsoft.com" shape="rect" coords="7, 6, 108, 39"></map><img src="mslogo.gif"
border="0" alt="http://www.microsoft.com" width="112" height="40" usemap="#FPMap3"></td>
</tr>
<tr>
<td valign="top" align="left" height="28"><map name="FPMap0">
<area href="rtk.htm" shape="rect" coords="420, 1, 515, 18" ALT="rtk.htm">
<area href="interopt.htm" shape="rect" coords="350, 1, 415, 19" ALT="interopt.htm">
<area href="ad.htm" shape="rect" coords="233, 1, 345, 19" ALT="ad.htm">
<area href="winnt.htm" shape="rect" coords="165, 1, 223, 19" ALT="winnt.htm">
<area href="dev.htm" shape="rect" coords="67, 1, 165, 19" ALT="dev.htm">
<area href="../default.htm" shape="rect" coords="13, 1, 65, 20" ALT = "../default.htm"></map>
<img rectangle="(233,1) (345, 19) ad.htm" rectangle="(165,1) (223, 19) winnt.htm" rectangle="(67,1) (165, 19) dev.htm" rectangle="(13,1) (65, 20) ../default.htm" src="router.gif" alt="router.gif (3874 bytes)" border="0" usemap="#FPMap0" width="536" height="26"></td>
<td width="3%" height="28"></td>
<td width="21%" height="28"></td>
</tr>
</table>
<table border="0" width="100%" cellspacing="0" cellpadding="0" height="40">
<tr>
<td width="2%" height="19"></td>
<td width="98%" height="19">
</td>
</tr>
<tr>
<td width="2%" height="21"></td>
<td width="98%" height="21"><img src="internet.gif" alt="internet.gif (5394 bytes)" width="297" height="60"></td>
</tr>
<tr>
<td width="2%" height="21"></td>
<td width="98%" height="21" valign="top"><font face="Verdana"><small>ADSI allows you to
communicate to other Internet directories such as Yahoo, BigFoot, WhoWhere, and many others. Most directories store a person's e-mail address, address, and name. With ADSI, you can easily
search for your friend's name and get back her e-mail address on the Internet. <a href="../samples/Internet">ADSIWAB</a> is a working sample which does exactly
that. </small><small>The ADSIWAB source code can be found in the <a href="../samples/internet">\\samples\internet</a> directory.</small></font><p><small><font face="Verdana">&nbsp;</font></small></p>
<blockquote>
<p><img src="wab.jpg" alt="wab.jpg (64799 bytes)" width="478" height="466"><small><font face="Verdana">&nbsp; </font></small></p>
</blockquote>
<p><strong><font face="Verdana" color="#0080C0"><small>&nbsp;</small></font></strong></p>
<p><strong><font face="Verdana" color="#0080C0"><small>Requirements</small></font></strong><ul>
<li><font face="Verdana"><small>ADSI 2.5 or higher. For more information and
downloads, please visit <a href="http://www.microsoft.com/adsi">
http://www.microsoft.com/adsi</a>.</small></font></li>
</ul>
<ul>
<li><font face="Verdana"><small>A connection to the Internet. If you're connected to the
corporate LAN, you may need to install the client proxy which allows you to communicate to the
Internet. The port number is 389.</small></font></li>
</ul>
<p>&nbsp;</p>
<p><font face="Verdana" color="#0080C0"><strong><small>Step-by-Step Instructions</small></strong></font></p>
<font face="Verdana">
<small>You can use either Visual Basic<69> Scripting Edition or Visual
C++<2B>.
&nbsp; For VBScript, you must use the ADO object model. For VC++, you can either use
ADO/OLE DB or <b>IDirectorySearch</b>. For more information, see <a href="start.htm">Getting Started with ADSI</a>.</small></font>
<font face="Verdana">
<small>Find out the Internet Directory address you want to connect
to. For example, ldap.yahoo.com.</small></font>
<p><font face="Verdana"><small>Let's assume you want to search for 'Loff'</small> <small>on
the yahoo.ldap.com server</small>:
</font>
<ol>
<li><font face="Verdana"><small>Connect as an anonymous user. Set userName, password as
&quot;&quot;. Do not use a secure authentication flag when connecting to the directory
server.<br>
</small> </font></li>
<li><font face="Verdana"><small>Set the base DN as GC://your.internet.address.com:389.<br>
</small></font></li>
<li><font face="Verdana"><small>Set the filter as:</small><br>
<small><br>
(|(|(|(cn=loff*)(mail=loff*))(sn=loff*))(givenName=loff*))<br>
</small></font></li>
<li><font face="Verdana"><small>Set the attributes returned as:</small><br>
<small>cn,mail,givenName,sn,st,c,homePhone.<br>
</small></font></li>
<li><font face="Verdana"><small>Set the search scope as: subtree.<br>
</small></font></li>
<li><font face="Verdana"><small>Execute the query. You should get the result as shown above.<br>
</small></font></li>
</ol>
<p><font face="Verdana"><small>&nbsp;</small></font></p>
<p><font face="Verdana"><br>
<small></small></font></p>
</td>
</tr>
</table>
</body>
</html>