poptop_ads_howto_6a.htm 3.4 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
  2. "http://www.w3.org/TR/html4/loose.dtd">
  3. <html>
  4. <head>
  5. <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
  6. <title>Poptop MSCHAP2 ADS Howto</title>
  7. </head>
  8. <body>
  9. <p> <a name="smbjoin"></a><strong>10. Join the AD Domain</strong></p>
  10. <p>Once the Kerberos and Samba are configured, it's time to add the pptpd server to the AD domain. For Samba version below 3.0.23:</p>
  11. <blockquote>
  12. <pre>[root@pptp ~]# net ads join -U skwok@EXAMPLENET.ORG &quot;Asiapac/Australia/Sydney/Servers&quot;<br>skwok@EXAMPLENET.ORG's password: <br>Using short domain name -- EXAMPLE<br>Joined 'PPTPDSVR' to realm 'EXAMPLENET.ORG'
  13. </pre>
  14. </blockquote>
  15. <p>For Samba version 3.0.23 or above:</p>
  16. <blockquote>
  17. <pre>[root@pptp ~]# net ads join -U skwok@EXAMPLENET.ORG createcomputer=&quot;Asiapac/Australia/Sydney/Servers&quot;
  18. skwok@EXAMPLENET.ORG's password:
  19. Using short domain name -- EXAMPLEE
  20. Joined 'PPTPDSVR' to realm 'EXAMPLENET.ORG'</pre>
  21. </blockquote>
  22. <p>The above<em> net ads join</em> command creates the server in the container</p>
  23. <p>"OU=Servers,OU=Sydney,OU=Australia,OU=Asiapac,DC=EXAMPLENET,DC=ORG&quot;</p>
  24. <p>The user must have admin right on the container to create the server object. If the operation is successful, you will see a new server object created in the AD.</p>
  25. <p>Another test to see if the trust between the pptpd server and the domain is working is smbclient.</p>
  26. <blockquote>
  27. <pre>[root@pptp ~]# smbclient //dc1/c$ -k<br>OS=[Windows Server 2003 3790 Service Pack 1] Server=[Windows Server 2003 5.2]<br>smb: \&gt; dir<br> AUTOEXEC.BAT A 0 Wed Jul 20 10:53:47 2005<br> boot.ini AHSR 208 Fri Jul 22 10:41:57 2005<br> CONFIG.SYS A 0 Wed Jul 20 10:53:47 2005<br> Documents and Settings D 0 Fri Jul 22 16:25:51 2005<br> download D 0 Thu Aug 4 17:31:28 2005<br> IO.SYS AHSR 0 Wed Jul 20 10:53:47 2005<br> MSDOS.SYS AHSR 0 Wed Jul 20 10:53:47 2005<br> NTDETECT.COM AHSR 47772 Fri Jul 22 10:16:32 2005<br> ntldr AHSR 295536 Fri Jul 22 10:16:32 2005<br> pagefile.sys AHS 805306368 Fri Aug 12 11:24:27 2005<br> Program Files DR 0 Wed Jul 20 10:51:09 2005<br> shared1 D 0 Thu Jul 21 17:06:28 2005<br> System Volume Information DHS 0 Fri Jul 22 10:52:09 2005<br> WINDOWS D 0 Tue Aug 16 14:33:36 2005<br> wmpub D 0 Wed Jul 20 10:55:13 2005</pre>
  28. <p> 39064 blocks of size 524288. 31129 blocks available<br>
  29. smb: \&gt; </p>
  30. </blockquote>
  31. <p><strong>Note</strong>: With Samba v3.0.14a or v3.0.20, everytime I run &quot;net ads join&quot;, the command crash at the end with message &quot;*** glibc detected *** net: free(): invalid pointer: 0x001cddb0 ***&quot; and then a dump to the screen. The join seems to be working fine though. Samba v3.0.21a or above does not have this problem. </p>
  32. <hr>
  33. <a href="poptop_ads_howto_7.htm">Next</a> &nbsp;&nbsp;<a href="poptop_ads_howto_6.htm">Previous</a>&nbsp;&nbsp;<a href="poptop_ads_howto_1.htm#toc">Content</a>
  34. <p>&nbsp; </p>
  35. </body>
  36. </html>