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

124 lines
6.2 KiB
HTML

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<title>Active Directory Service Interfaces - Communicating to Novel Netware Server</title>
</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">
<h1><font face="Verdana" color="#0080C0"><strong><small>Communicating with
the Novell Netware Server</small></strong></font></h1>
</td>
</tr>
<tr>
<td width="2%" height="21"></td>
<td width="98%" height="21" valign="top"><p>&nbsp;<p><font face="Verdana" color="#0080C0"><strong><small>Requirements</small></strong></font><ul>
<li><font face="Verdana"><small>Install the Novell NetWare Server</small>.<br>
</font></li>
<li><font face="Verdana"><small>Install<small> </small>&quot;<a href="nds.htm#gateway">Gateway
and Client Services for NetWare</a>&quot;.</small><br>
</font></li>
<li><font face="Verdana"><small>Install ADSI 2.5 or higher (<a
href="http://www.microsoft.com/adsi">http://www.microsoft.com/adsi</a>). Note you must
install ADSI <u>after</u> you install the Gateway and Client Service for
NetWare.</small></font></li>
</ul>
<p>&nbsp;</p>
<p><font face="Verdana" color="#0080C0"><strong><small>Connecting to a
NetWare Server</small></strong></font></p>
<p><font face="Verdana" color="#000000"><small>If you have not yet done so, use
the <b>net use</b> command to log on to the NetWare Server.</small></font></p>
<p><font face="Verdana" color="#000000">
<small>For example:</small></font></p>
<p><font face="Verdana" color="#000000"><small>net use \\nwserver /U:mydom\jsmith</small></font></p>
<p><font face="Verdana" color="#000000"><small><b>IADsOpenObject::OpenDSObject</b> is not supported in the
current release of the NWCOMPAT provider, so you will need to use the <b>GetObject</b>
function.</small></font></p>
<p><small><font face="Verdana">adsPathName = &quot;NWCOMPAT://&quot; &amp; serverName<br>
Set cont = GetObject(adsPathName)
</font></small></p>
<p>&nbsp;</p>
<p><font face="Verdana" color="#0080C0"><strong><small>Enumerating a
Container</small></strong></font></p>
<p><small><font face="Verdana">For Each obj In cont<br>
&nbsp;&nbsp;&nbsp; Debug.Print obj.Name &amp; &quot; (&quot; &amp; obj.Class &amp;
&quot;)&quot;<br>
Next
</font></small></p>
<p>&nbsp;</p>
<p><font face="Verdana" color="#0080C0"><strong><small>Object Creation</small></strong></font></p>
<p><small><font face="Verdana">adsPath = &quot;NWCOMPAT://&quot; &amp; serverName<br>
Set cont = GetObject(adsPath)<br>
Set usr = cont.Create(&quot;user&quot;, &quot;alicew&quot;)<br>
usr.SetInfo
</font></small></p>
<p>&nbsp;</p>
<p><font face="Verdana" color="#0080C0"><strong><small>Attribute Retrieval and
Modification</small></strong></font></p>
<p><small><font face="Verdana">objPath = &quot;alicew,user&quot;<br>
adsPath = &quot;NWCOMPAT://&quot; &amp; serverName &amp; &quot;/&quot; &amp; objPath<br>
Set usr = GetObject(adsPath)<br>
usr.FullName = &quot;Alice I. Wonderland&quot;<br>
usr.SetInfo<br>
<br>
Debug.Print usr.FullName
</font></small></p>
<p>&nbsp;</p>
<p><font face="Verdana" color="#0080C0"><strong><small>Searching</small></strong></font></p>
<p><font face="Verdana" color="#000000"><small>Searching is not supported in NWCOMPAT. You
can, however, use the <b> IADsContainer::put_Filter</b> method to limit the type of object classes to be
included in the enumeration.</small></font></p>
<p><font face="Verdana"><small>adsPath = &quot;NWCOMPAT://&quot; &amp; serverName<br>
Set con = GetObject(adsPath)<br>
con.Filter = Array(&quot;user&quot;, &quot;group&quot;)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
'Show user and group<br>
<br>
For Each acct In con<br>
&nbsp;&nbsp;&nbsp; Debug.Print acct.Name &amp; &quot; (&quot; &amp; acct.Class &amp;
&quot;)&quot;<br>
Next<br>
<br>
</small>
</font></p>
<p><font face="Verdana"><small>Source code can be found in <a href="../samples/interopt/netware">\samples\interopt\netware</a>.</small></font></p>
<p>&nbsp;</td>
</tr>
</table>
</body>
</html>