{"id":215573,"date":"2014-03-12T20:28:03","date_gmt":"2014-03-12T16:28:03","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=215573"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=215573","title":{"rendered":"<span class=\"post_title\">\u041a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440 \u0434\u043e\u043c\u0435\u043d\u0430 \u043d\u0430 Ubuntu Server<\/span>"},"content":{"rendered":"<div class=\"content html_format\">   \t\u042d\u0442\u043e\u0442 \u0432\u0430\u0440\u0438\u0430\u043d\u0442 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043f\u043e\u043b\u0435\u0437\u0435\u043d \u0434\u043b\u044f \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u0438\u0445 \u043e\u0440\u0433\u0430\u043d\u0438\u0437\u0430\u0446\u0438\u0439 \u0441 \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440\u0430\u043c\u0438 \u043f\u043e\u0434 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435\u043c Windows.<br \/>  \u041d\u0435\u0442 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u0438 \u043f\u0440\u0438\u043e\u0431\u0440\u0435\u0442\u0430\u0442\u044c \u043d\u0435\u0434\u0435\u0448\u0435\u0432\u0443\u044e Windows Server \u0434\u043b\u044f \u043e\u0440\u0433\u0430\u043d\u0438\u0437\u0430\u0446\u0438\u0438 AD \u0438 CAL \u043b\u0438\u0446\u0435\u043d\u0437\u0438\u0438 \u0434\u043b\u044f \u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u043a \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0443 \u0434\u043e\u043c\u0435\u043d\u0430.<br \/>  \u0412 \u043a\u043e\u043d\u0435\u0447\u043d\u043e\u043c \u0438\u0442\u043e\u0433\u0435 \u0438\u043c\u0435\u0435\u043c \u043f\u043b\u044e\u0448\u043a\u0438 AD: \u0433\u0440\u0443\u043f\u043f\u043e\u0432\u044b\u0435 \u043f\u043e\u043b\u0438\u0442\u0438\u043a\u0438, \u0440\u0430\u0437\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u0435 \u043f\u0440\u0430\u0432 \u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u043a \u0440\u0435\u0441\u0443\u0440\u0441\u0430\u043c \u0438 \u0442.\u0434.<br \/>  <a name=\"habracut\"><\/a><br \/>  \u042f \u043f\u043e\u043f\u044b\u0442\u0430\u043b\u0441\u044f \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u044b\u0439 \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0439 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0445 \u0434\u043b\u044f \u043e\u0440\u0433\u0430\u043d\u0438\u0437\u0430\u0446\u0438\u0438 Active Directory (AD) Domain Controller (DC) \u043d\u0430 \u0431\u0430\u0437\u0435 Ubuntu Server.<\/p>\n<p>  <i>\u0420\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0443 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0430 \u0434\u043e\u043c\u0435\u043d\u0430 \u043d\u0430 \u043f\u0440\u0438\u043c\u0435\u0440\u0435 Ubuntu Server 12.04.4 LTS \u0438\u043b\u0438 Ubuntu Server 13.10, \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u044f \u043f\u043e\u0434\u0445\u043e\u0434\u0438\u0442 \u0434\u043b\u044f \u043e\u0431\u043e\u0438\u0445 \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u043e\u0432 \u0431\u0435\u0437 \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0445 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0439<\/i><\/p>\n<h5>1. \u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 Ubuntu<\/h5>\n<p>  \u0414\u0443\u043c\u0430\u044e \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 Ubuntu-server \u043d\u0435 \u0432\u044b\u0437\u043e\u0432\u0435\u0442 \u043f\u0440\u043e\u0431\u043b\u0435\u043c \u0434\u0430\u0436\u0435 \u0443 \u0431\u043e\u043b\u044c\u0448\u0438\u043d\u0441\u0442\u0432\u0430 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439 \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440\u043e\u0432.<br \/>  \u0416\u0435\u043b\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u043f\u0440\u0438 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0435 \u041e\u0421 \u0441\u0440\u0430\u0437\u0443 \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e \u0443\u043a\u0430\u0437\u0430\u0442\u044c \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u043c\u0430\u0448\u0438\u043d\u044b \u0432 \u0441\u0435\u0442\u0438 (hostname) \u0441 \u0443\u043a\u0430\u0437\u0430\u043d\u0438\u0435\u043c \u0434\u043e\u043c\u0435\u043d\u0430 (\u0434\u043b\u044f \u043f\u0440\u0438\u043c\u0435\u0440\u0430 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e <b>dc1.domain.local<\/b>), \u0447\u0442\u043e\u0431\u044b \u0432 \u0434\u0430\u043b\u044c\u043d\u0435\u0439\u0448\u0435\u043c \u043c\u0435\u043d\u044c\u0448\u0435 \u043d\u0430\u0434\u043e \u0431\u044b\u043b\u043e \u043f\u0440\u0430\u0432\u0438\u0442\u044c \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044e \u0432 \u0444\u0430\u0439\u043b\u0430\u0445.<br \/>  \u0415\u0441\u043b\u0438 \u0432 \u0441\u0435\u0442\u0438 \u043d\u0435 \u043f\u0440\u0438\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442 DHCP-\u0441\u0435\u0440\u0432\u0435\u0440, \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0449\u0438\u043a \u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0438\u0442 \u0432\u0432\u0435\u0441\u0442\u0438 IP-\u0430\u0434\u0440\u0435\u0441, \u043c\u0430\u0441\u043a\u0443 \u0441\u0435\u0442\u0438, \u0448\u043b\u044e\u0437 \u0438 DNS.<br \/>  \u0412\u043e \u0432\u0440\u0435\u043c\u044f \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438, \u0442\u0430\u043a\u0436\u0435 \u0436\u0435\u043b\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c OpenSSH server, \u0447\u0442\u043e\u0431\u044b \u0438\u043c\u0435\u0442\u044c \u0443\u0434\u0430\u043b\u0435\u043d\u043d\u044b\u0439 \u0434\u043e\u0441\u0442\u0443\u043f \u043a \u0441\u0435\u0440\u0432\u0435\u0440\u0443, \u0430 \u0442\u0430\u043a\u0436\u0435 \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e \u0443\u043a\u0430\u0437\u0430\u0442\u044c \u0447\u0430\u0441\u043e\u0432\u043e\u0439 \u043f\u043e\u044f\u0441, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u043c\u0430\u0448\u0438\u043d\u0430.<\/p>\n<h5>2. \u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432 \u0441\u0435\u0442\u0435\u0432\u043e\u0433\u043e \u0430\u0434\u0430\u043f\u0442\u0435\u0440\u0430<\/h5>\n<p>  \u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u0441\u0435\u0442\u0438 \u0445\u0440\u0430\u043d\u044f\u0442\u0441\u044f \u0432 \u0444\u0430\u0439\u043b\u0435 \/etc\/network\/interfaces<br \/>  \u0420\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u0443\u0435\u043c \u0435\u0433\u043e \u043d\u0430 \u0441\u0432\u043e\u0439 \u0432\u043a\u0443\u0441. \u0412 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0440\u0435\u0434\u0430\u043a\u0442\u043e\u0440\u0430 \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c nano, vi \u0438 \u0442.\u043f.<br \/>  \u0414\u043b\u044f \u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0444\u0430\u0439\u043b\u043e\u0432 \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u044f\u0442\u0441\u044f root \u043f\u0440\u0430\u0432\u0430, \u0438\u0445 \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u043a\u043e\u043c\u0430\u043d\u0434\u043e\u0439 <\/p>\n<pre><code class=\"bash\">sudo su <\/code><\/pre>\n<p> \u043f\u043e\u0441\u043b\u0435 \u044d\u0442\u043e\u0433\u043e, \u0412\u044b \u0431\u0443\u0434\u0435\u0442\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0438\u0437 \u043f\u043e\u0434 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f root.<br \/>  <sub><i>\u041e \u0442\u043e\u043c \u0447\u0442\u043e \u0412\u044b \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442\u0435 \u0441 \u043f\u0440\u0430\u0432\u0430\u043c\u0438 root \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u0441\u0432\u0438\u0434\u0435\u0442\u0435\u043b\u044c\u0441\u0442\u0432\u0443\u0435\u0442 \u0437\u043d\u0430\u043a <\/i>#<i> \u0432 \u043f\u0440\u0438\u0433\u043b\u0430\u0448\u0435\u043d\u0438\u0438 \u043a\u043e\u043c\u0430\u043d\u0434\u043d\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u0438<\/i> <\/sub><br \/>  \u041b\u0438\u0431\u043e \u0412\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u043f\u0435\u0440\u0435\u0434 \u043a\u0430\u0436\u0434\u043e\u0439 \u043a\u043e\u043c\u0430\u043d\u0434\u043e\u0439, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0442\u0440\u0435\u0431\u0443\u0435\u0442 root \u0434\u043e\u0441\u0442\u0443\u043f\u0430, \u043f\u0440\u0438\u043f\u0438\u0441\u044b\u0432\u0430\u0442\u044c sudo  <\/p>\n<pre><code class=\"bash\">sudo nano \/etc\/network\/interfaces <\/code><\/pre>\n<p>  \u0412 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 \u0412\u0430\u0448\u0435\u0433\u043e \u0441\u0435\u0442\u0435\u0432\u043e\u0433\u043e \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430, \u0441\u043a\u043e\u0440\u0435\u0435 \u0432\u0441\u0435\u0433\u043e, \u0431\u0443\u0434\u0435\u0442 <\/p>\n<blockquote><p>iface eth0 inet dhcp<\/p><\/blockquote>\n<p>\u043f\u043e\u043c\u0435\u043d\u044f\u0435\u043c \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u043d\u0430 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u0441\u0442\u0430\u0442\u0438\u0447\u043d\u043e\u0433\u043e ip-\u0430\u0434\u0440\u0435\u0441\u0430.<br \/>  \u0412 \u043c\u043e\u0435\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u043e\u043d\u0438 \u0432\u044b\u0433\u043b\u044f\u0434\u044f\u0442 \u0432\u043e\u0442 \u0442\u0430\u043a:  <\/p>\n<blockquote><p>auto lo<br \/>  iface lo inet loopback<\/p>\n<p>  auto eth0<br \/>  iface eth0 inet static<br \/>   address 192.168.10.1<br \/>   netmask 255.255.255.0<br \/>   gateway 192.168.10.10<br \/>   dns-nameservers 192.168.10.10 <br \/>   dns-search domain.local domain<\/p><\/blockquote>\n<p>\u041f\u043e\u0441\u043b\u0435 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0441\u0435\u0442\u0435\u0432\u044b\u0445 \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043a \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u043f\u0435\u0440\u0435\u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u0441\u0435\u0442\u0435\u0432\u043e\u0439 \u0441\u0435\u0440\u0432\u0438\u0441  <\/p>\n<pre><code class=\"bash\">\/etc\/init.d\/networking restart <\/code><\/pre>\n<p>  <\/p>\n<h5>3. \u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0445 \u043f\u0430\u043a\u0435\u0442\u043e\u0432<\/h5>\n<p>  \u0415\u0441\u043b\u0438 \u0412\u044b \u0432\u0441\u0435 \u0436\u0435 \u043d\u0435 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043b\u0438 OpenSSH server \u043d\u0430 \u043f\u0435\u0440\u0432\u043e\u043c \u044d\u0442\u0430\u043f\u0435, \u044d\u0442\u043e \u043c\u043e\u0436\u043d\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u043a\u043e\u043c\u0430\u043d\u0434\u043e\u0439 <\/p>\n<pre><code class=\"bash\">apt-get install ssh <\/code><\/pre>\n<p>  \u041f\u0435\u0440\u0435\u0434 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u043e\u0439 \u0447\u0435\u0433\u043e \u043b\u0438\u0431\u043e, \u043b\u0443\u0447\u0448\u0435 \u0441\u043d\u0430\u0447\u0430\u043b\u0430 \u043e\u0431\u043d\u043e\u0432\u0438\u0442\u044c \u0441\u0438\u0441\u0442\u0435\u043c\u0443 \u0438 \u043f\u0430\u043a\u0435\u0442\u044b \u043a\u043e\u043c\u0430\u043d\u0434\u043e\u0439 <\/p>\n<pre><code class=\"bash\">apt-get update && apt-get upgrade <\/code><\/pre>\n<p>  \u0414\u043b\u044f \u0442\u043e\u0433\u043e, \u0447\u0442\u043e\u0431\u044b \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440\u044b \u0441\u0435\u0442\u0438 \u0441\u0432\u0435\u0440\u044f\u043b\u0438 \u0432\u0440\u0435\u043c\u044f \u043f\u043e \u043d\u0430\u0448\u0435\u043c\u0443 \u0441\u0435\u0440\u0432\u0435\u0440\u0443 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043c ntp-\u0441\u0435\u0440\u0432\u0435\u0440  <\/p>\n<pre><code class=\"bash\">apt-get install ntp <\/code><\/pre>\n<p>  Samba4 \u0431\u0443\u0434\u0435\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u0439 \u0432\u0435\u0440\u0441\u0438\u0438 \u0438 \u0441\u043e\u0431\u0438\u0440\u0430\u0442\u044c \u0438\u0437 \u0438\u0441\u0445\u043e\u0434\u043d\u0438\u043a\u043e\u0432, \u0442\u0430\u043a \u0447\u0442\u043e \u043d\u0430\u043c \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u044f\u0442\u0441\u044f \u043f\u0430\u043a\u0435\u0442\u044b \u0434\u043b\u044f \u0435\u0451 \u0441\u0431\u043e\u0440\u043a\u0438 \u0438 \u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u043e\u0439 \u0440\u0430\u0431\u043e\u0442\u044b.  <\/p>\n<pre><code class=\"bash\">apt-get install git build-essential libacl1-dev libattr1-dev libblkid-dev libgnutls-dev libreadline-dev python-dev python-dnspython gdb pkg-config libpopt-dev libldap2-dev dnsutils libbsd-dev attr docbook-xsl libcups2-dev acl <\/code><\/pre>\n<p>  <\/p>\n<h5>4. \u0421\u0431\u043e\u0440\u043a\u0430 Samba4<\/h5>\n<p>  \u0414\u043b\u044f \u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u043e\u0439 \u0440\u0430\u0431\u043e\u0442\u044b Samba \u043f\u043e\u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0430 vfs \u043d\u0430 \u0443\u0440\u043e\u0432\u043d\u0435 \u0444\u0430\u0439\u043b\u043e\u0432\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u044b, \u0434\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0432\u043d\u0435\u0441\u0435\u043c \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0432 \/etc\/fstab, \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c <i>user_xattr,acl,barrier=1<\/i> \u0432 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u043a\u043e\u0440\u043d\u0435\u0432\u043e\u0433\u043e \u0440\u0430\u0437\u0434\u0435\u043b\u0430 <i>\/<\/i>  <\/p>\n<pre><code class=\"bash\">nano \/etc\/fstab <\/code><\/pre>\n<p>\u0434\u043e\u043b\u0436\u043d\u0430 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u0441\u044f \u0441\u0442\u0440\u043e\u043a\u0430, \u0447\u0442\u043e-\u0442\u043e \u0432\u0440\u043e\u0434\u0435 \u044d\u0442\u043e\u0439:<\/p>\n<blockquote><p>\/dev\/mapper\/dc1&#8212;vg-root \/ ext4 <b>user_xattr,acl,barrier=1,<\/b>errors=remount-ro 0 1<\/p><\/blockquote>\n<p>\u043f\u043e\u0441\u043b\u0435 \u0447\u0435\u0433\u043e \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u043f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044c \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440<\/p>\n<pre><code class=\"bash\">reboot <\/code><\/pre>\n<p>\u041d\u0435 \u0437\u0430\u0431\u044b\u0432\u0430\u0435\u043c \u043f\u0440\u043e root \u043f\u0440\u0430\u0432\u0430 <\/p>\n<pre><code class=\"bash\">sudo su<\/code><\/pre>\n<p>  \u0421\u043a\u0430\u0447\u0438\u0432\u0430\u0435\u043c \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u044e\u044e \u0441\u0442\u0430\u0431\u0438\u043b\u044c\u043d\u0443\u044e \u0432\u0435\u0440\u0441\u0438\u044e Samba \u0438\u0437 GIT \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u0430\u0440\u0438\u044f<\/p>\n<pre><code class=\"bash\">cd \/usr\/src git clone -b v4-1-stable git:\/\/git.samba.org\/samba.git samba-v4-1-stable <\/code><\/pre>\n<p>  \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0438\u0440\u0443\u0435\u043c, \u043a\u043e\u043c\u043f\u0438\u043b\u0438\u0440\u0443\u0435\u043c \u0438 \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c Samba <\/p>\n<pre><code class=\"bash\">cd samba-v4-1-stable && .\/configure --enable-debug && make && make install <\/code><\/pre>\n<p>\u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 <i>&#8212;enable-debug<\/i> \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c \u0434\u043b\u044f \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f \u0431\u043e\u043b\u0435\u0435 \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u043e\u0439 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438 \u0432 \u043b\u043e\u0433\u0430\u0445 Samba.<\/p>\n<p>  \u041f\u043e\u0441\u043b\u0435 \u0442\u043e\u0433\u043e, \u043a\u0430\u043a \u0441\u043e\u0431\u0435\u0440\u0435\u0442\u0441\u044f \u0438 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0441\u044f Samba (\u044d\u0442\u043e \u0434\u043e\u043b\u0433\u043e\u0435 \u0437\u0430\u043d\u044f\u0442\u0438\u0435), \u0434\u043b\u044f \u0443\u0434\u043e\u0431\u0441\u0442\u0432\u0430 \u0435\u0451 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f, \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u043f\u0440\u043e\u043f\u0438\u0441\u0430\u0442\u044c \u043f\u0443\u0442\u0438 \u0434\u043e \u0438\u0441\u043f\u043e\u043b\u043d\u044f\u0435\u043c\u044b\u0445 \u0444\u0430\u0439\u043b\u043e\u0432 \/usr\/local\/samba\/sbin \u0438 \/usr\/local\/samba\/bin \u0432 \u0444\u0430\u0439\u043b\u0430\u0445 <i>\/etc\/sudoers<\/i> \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0430\u044f <i>secure_path<\/i> \u0438 <i>\/etc\/environment<\/i> \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0430\u044f <i>PATH<\/i>, \u0434\u043e\u0431\u0430\u0432\u0438\u0432 \u0441\u0442\u0440\u043e\u043a\u0443 <i>:\/usr\/local\/samba\/sbin:\/usr\/local\/samba\/bin<\/i>  <\/p>\n<pre><code class=\"bash\">nano \/etc\/sudoers <\/code><\/pre>\n<p>\u0434\u043e\u043b\u0436\u043d\u0430 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u0441\u044f \u0441\u0442\u0440\u043e\u0447\u043a\u0430 \u0447\u0442\u043e-\u0442\u043e \u0432\u0440\u043e\u0434\u0435 \u044d\u0442\u043e\u0439:  <\/p>\n<blockquote><p>Defaults secure_path=&quot;\/usr\/local\/sbin:\/usr\/local\/bin:\/usr\/sbin:\/usr\/bin:\/sbin:\/bin<b>:\/usr\/local\/samba\/sbin:\/usr\/local\/samba\/bin<\/b>&quot;<\/p><\/blockquote>\n<pre><code class=\"bash\">nano \/etc\/environment <\/code><\/pre>\n<p>\u0434\u043e\u043b\u0436\u043d\u0430 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u0441\u044f \u0441\u0442\u0440\u043e\u0447\u043a\u0430 \u0447\u0442\u043e-\u0442\u043e \u0432\u0440\u043e\u0434\u0435 \u044d\u0442\u043e\u0439:  <\/p>\n<blockquote><p>PATH=&quot;\/usr\/local\/sbin:\/usr\/local\/bin:\/usr\/sbin:\/usr\/bin:\/sbin:\/bin:\/usr\/games<b>:\/usr\/local\/samba\/sbin:\/usr\/local\/samba\/bin<\/b>&quot;<\/p><\/blockquote>\n<p>  \u043f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0437\u0438\u043c\u0441\u044f \u0435\u0449\u0435 \u0440\u0430\u0437 (\u043d\u0430 \u0432\u0441\u044f\u043a\u0438\u0439 \u0441\u043b\u0443\u0447\u0430\u0439)  <\/p>\n<pre><code class=\"bash\">reboot <\/code><\/pre>\n<p>  <\/p>\n<h5>5. \u041f\u043e\u0434\u043d\u0438\u043c\u0430\u0435\u043c AD<\/h5>\n<p>  \u0412 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 DNS \u0441\u0435\u0440\u0432\u0435\u0440\u0430 AD \u0431\u0443\u0434\u0435\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c Samba, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043e\u0442\u043a\u043b\u044e\u0447\u0430\u0435\u043c bind \u043a\u043e\u043c\u0430\u043d\u0434\u043e\u0439  <\/p>\n<pre><code class=\"bash\">service bind9 stop && update-rc.d bind9 disable <\/code><\/pre>\n<p>  \u0414\u043b\u044f \u043c\u0430\u043d\u0438\u043f\u0443\u043b\u044f\u0446\u0438\u0439 \u0441 AD \u0432 Samba \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442 \u0438\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442 samba-tool.<br \/>  \u0414\u043b\u044f \u043f\u0435\u0440\u0432\u043e\u043d\u0430\u0447\u0430\u043b\u044c\u043d\u043e\u0439 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 Samba \u0432\u0432\u043e\u0434\u0438\u043c \u043a\u043e\u043c\u0430\u043d\u0434\u0443  <\/p>\n<pre><code class=\"bash\">samba-tool domain provision <\/code><\/pre>\n<p>  \u0415\u0441\u043b\u0438 \u043d\u0430 \u043f\u0435\u0440\u0432\u043e\u043c \u044d\u0442\u0430\u043f\u0435 \u0412\u044b \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e \u0443\u043a\u0430\u0437\u0430\u043b\u0438 \u0438\u043c\u044f \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440\u0430, \u0432\u0441\u0435 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0437\u0430\u043f\u0440\u043e\u0441\u0438\u0442 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430, \u043c\u043e\u0436\u043d\u043e \u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u043f\u043e\u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e.<br \/>  \u0412\u043e \u0432\u0440\u0435\u043c\u044f \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u0431\u0443\u0434\u0435\u0442 \u0437\u0430\u043f\u0440\u043e\u0448\u0435\u043d \u043f\u0430\u0440\u043e\u043b\u044c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f Administrator \u0434\u043b\u044f AD, \u043e\u043d \u0434\u043e\u043b\u0436\u0435\u043d \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u043e\u0432\u0430\u0442\u044c \u0442\u0440\u0435\u0431\u043e\u0432\u0430\u043d\u0438\u044f\u043c \u0441\u043b\u043e\u0436\u043d\u043e\u0441\u0442\u0438 \u043f\u0430\u0440\u043e\u043b\u044f \u043f\u043e\u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e: \u0445\u043e\u0442\u044f\u0431\u044b \u043e\u0434\u043d\u0430 \u0431\u0443\u043a\u0432\u0430 \u0432\u0435\u0440\u0445\u043d\u0435\u0433\u043e \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430, \u0445\u043e\u0442\u044f\u0431\u044b \u043e\u0434\u043d\u0430 \u0446\u0438\u0444\u0440\u0430, \u043c\u0438\u043d\u0438\u043c\u0443\u043c 8 \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432.<br \/>  \u0415\u0441\u043b\u0438 \u0436\u0435 \u043f\u0430\u0440\u043e\u043b\u044c \u043d\u0435 \u043f\u043e\u0434\u043e\u0448\u0435\u043b \u043f\u043e \u0441\u043b\u043e\u0436\u043d\u043e\u0441\u0442\u0438 \u0438 \u0412\u044b \u0443\u0432\u0438\u0434\u0435\u043b\u0438 \u043e\u0448\u0438\u0431\u043a\u0443 \u0432\u0440\u043e\u0434\u0435 \u044d\u0442\u043e\u0439:  <\/p>\n<blockquote><p>ERROR(ldb): uncaught exception \u2014 0000052D: Constraint violation \u2014 check_password_restrictions: the password is too short. It should be equal or longer than 7 characters!<\/p><\/blockquote>\n<p>\u0442\u043e \u043f\u0435\u0440\u0435\u0434 \u043f\u043e\u0432\u0442\u043e\u0440\u043d\u044b\u043c \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435\u043c \u043f\u0435\u0440\u0432\u043e\u043d\u0430\u0447\u0430\u043b\u044c\u043d\u043e\u0439 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438, \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0443\u0434\u0430\u043b\u0438\u0442\u044c \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u0435 \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u043e\u0432 \/usr\/local\/samba\/private\/ \u0438 \/usr\/local\/samba\/etc\/<br \/>  \u0415\u0441\u043b\u0438 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u044c \u0441\u043b\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u043f\u0430\u0440\u043e\u043b\u0435\u0439 \u044d\u0442\u043e \u043c\u043e\u0436\u043d\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u043a\u043e\u043c\u0430\u043d\u0434\u043e\u0439 <\/p>\n<pre><code class=\"bash\">samba-tool domain passwordsettings set --min-pwd-length=6 --complexity=off --max-pwd-age=0 --min-pwd-age=0 <\/code><\/pre>\n<p>\u044d\u0442\u0430 \u043a\u043e\u043c\u0430\u043d\u0434\u0430 \u043e\u0442\u043a\u043b\u044e\u0447\u0430\u0435\u0442 \u0442\u0440\u0435\u0431\u043e\u0432\u0430\u043d\u0438\u0435 \u0441\u043b\u043e\u0436\u043d\u043e\u0441\u0442\u0438, \u043e\u0442\u043a\u043b\u044e\u0447\u0430\u0435\u0442 \u0441\u0440\u043e\u043a\u0438 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u043f\u0430\u0440\u043e\u043b\u0435\u0439, \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u0442 \u043c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u0443\u044e \u0434\u043b\u0438\u043d\u0443 \u043f\u0430\u0440\u043e\u043b\u044f 6 \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432<\/p>\n<p>  \u0414\u0430\u043b\u0435\u0435 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u043f\u043e\u0434\u043f\u0440\u0430\u0432\u0438\u0442\u044c \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 Samba \u0438 \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0442\u0443\u0434\u0430 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u0441\u0442\u0440\u043e\u043a\u0438 \u0432 \u0441\u0435\u043a\u0446\u0438\u044e <i>[global]<\/i>  <\/p>\n<pre><code class=\"bash\">nano \/usr\/local\/samba\/etc\/smb.conf <\/code><\/pre>\n<blockquote><p> allow dns updates = nonsecure and secure<br \/>   printing = bsd<br \/>   printcap name = \/dev\/null<\/p><\/blockquote>\n<p>\u042d\u0442\u043e \u043f\u043e\u0437\u0432\u043e\u043b\u0438\u0442 \u0434\u0438\u043d\u0430\u043c\u0438\u0447\u0435\u0441\u043a\u0438 \u043e\u0431\u043d\u043e\u0432\u043b\u044f\u0442\u044c DNS-\u0437\u0430\u043f\u0438\u0441\u0438 \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0435, \u043f\u0440\u0438 \u0432\u0445\u043e\u0434\u0435 \u0440\u0430\u0431\u043e\u0447\u0435\u0439 \u0441\u0442\u0430\u043d\u0446\u0438\u0438 (\u043f\u043e\u0434 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435\u043c windows) \u0432 \u0434\u043e\u043c\u0435\u043d \u0438 \u043e\u0442\u043a\u043b\u044e\u0447\u0438\u0442 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0443 \u043f\u0435\u0447\u0430\u0442\u0438, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043f\u043e\u0441\u0442\u043e\u044f\u043d\u043d\u043e \u0432\u044b\u0434\u0430\u0435\u0442 \u043e\u0448\u0438\u0431\u043a\u0438 \u0432 \u043b\u043e\u0433.<\/p>\n<p>  \u0412 \u0444\u0430\u0439\u043b\u0435 \/etc\/resolvconf\/resolv.conf.d\/head \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0443\u043a\u0430\u0437\u0430\u0442\u044c \u043d\u0430\u0448 DNS-\u0441\u0435\u0440\u0432\u0435\u0440 Samba 127.0.0.1  <\/p>\n<pre><code class=\"bash\">echo &quot;nameserver 127.0.0.1&quot; &gt;&gt; \/etc\/resolvconf\/resolv.conf.d\/head <\/code><\/pre>\n<p>\u0438 \u043f\u0435\u0440\u0435\u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u0441\u0435\u0440\u0432\u0438\u0441 resolvconf<\/p>\n<pre><code class=\"bash\">service resolvconf restart <\/code><\/pre>\n<p>  \u0422\u0430\u043a\u0436\u0435 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043c Kerberos \u043a\u043b\u0438\u0435\u043d\u0442<\/p>\n<pre><code class=\"bash\">apt-get install krb5-user<\/code><\/pre>\n<p>\u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u043c \u043d\u0430 AD \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0444\u0430\u0439\u043b\u0430 \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u043e\u0433\u043e \u043d\u0430 \u044d\u0442\u0430\u043f\u0435 <i>samba-tool domain provision<\/i><\/p>\n<pre><code class=\"bash\">mv \/etc\/krb5.conf \/etc\/krb5.conf.old cp \/usr\/local\/samba\/private\/krb5.conf \/etc\/krb5.conf <\/code><\/pre>\n<p>  \u0414\u043b\u044f \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e \u0437\u0430\u043f\u0443\u0441\u043a\u0430 \u0441\u0435\u0440\u0432\u0438\u0441\u0430 Samba \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c \u0441\u043a\u0440\u0438\u043f\u0442:  <\/p>\n<pre><code class=\"bash\">nano \/etc\/init.d\/samba4 <\/code><\/pre>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\/etc\/init.d\/samba4<\/b><\/p>\n<div class=\"spoiler_text\">#! \/bin\/sh<br \/>  ### BEGIN INIT INFO<br \/>  # Provides: samba4<br \/>  # Required-Start: $network $local_fs $remote_fs<br \/>  # Required-Stop: $network $local_fs $remote_fs<br \/>  # Default-Start: 2 3 4 5<br \/>  # Default-Stop: 0 1 6<br \/>  # Short-Description: start Samba daemons<br \/>  ### END INIT INFO<br \/>  #<br \/>  # Start\/stops the Samba daemon (samba).<br \/>  # Adapted from the Samba 3 packages.<br \/>  #<br \/>  PIDDIR=\/var\/run\/samba<br \/>  SAMBAPID=$PIDDIR\/samba.pid<\/p>\n<p>  # clear conflicting settings from the environment<br \/>  unset TMPDIR<br \/>  # See if the daemon and the config file are there<br \/>  test -x \/usr\/local\/samba\/sbin\/samba -a -r \/usr\/local\/samba\/etc\/smb.conf || exit 0<\/p>\n<p>  . \/lib\/lsb\/init-functions<\/p>\n<p>  case &quot;$1&quot; in<br \/>  start)<br \/>  log_daemon_msg \u00abStarting Samba 4 daemon\u00bb \u00absamba\u00bb<br \/>  # Make sure we have our PIDDIR, even if it\u2019s on a tmpfs<br \/>  install -o root -g root -m 755 -d $PIDDIR<br \/>  if! start-stop-daemon &#8212;start &#8212;quiet &#8212;oknodo &#8212;exec \/usr\/local\/samba\/sbin\/samba \u2014 -D; then<br \/>  log_end_msg 1<br \/>  exit 1<br \/>  fi<\/p>\n<p>  log_end_msg 0<br \/>  ;;<br \/>  stop)<br \/>  log_daemon_msg \u00abStopping Samba 4 daemon\u00bb \u00absamba\u00bb<\/p>\n<p>  start-stop-daemon &#8212;stop &#8212;quiet &#8212;name samba $SAMBAPID<br \/>  # Wait a little and remove stale PID file<br \/>  sleep 1<br \/>  if [ -f $SAMBAPID ] &#038;&#038;! ps h `cat $SAMBAPID` &gt; \/dev\/null<br \/>  then<br \/>  # Stale PID file (samba was succesfully stopped),<br \/>  # remove it (should be removed by samba itself IMHO.)<br \/>  rm -f $SAMBAPID<br \/>  fi<\/p>\n<p>  log_end_msg 0<br \/>  ;;<br \/>  restart|force-reload)<br \/>  $0 stop<br \/>  sleep 1<br \/>  $0 start<br \/>  ;;<br \/>  *)<br \/>  echo \u00abUsage: \/etc\/init.d\/samba4 {start|stop|restart|force-reload}\u00bb<br \/>  exit 1<br \/>  ;;<br \/>  esac<\/p>\n<p>  exit 0<\/p><\/div>\n<\/div>\n<p>  \u0435\u0433\u043e \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0438\u0441\u043f\u043e\u043b\u043d\u044f\u0435\u043c\u044b\u043c<\/p>\n<pre><code class=\"bash\">chmod 755 \/etc\/init.d\/samba4 <\/code><\/pre>\n<p>  \u0438 \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u043f\u043e\u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e<\/p>\n<pre><code class=\"bash\">update-rc.d samba4 defaults <\/code><\/pre>\n<p>  \u041f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0436\u0430\u0435\u043c \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440<\/p>\n<pre><code class=\"bash\">reboot <\/code><\/pre>\n<p>  <\/p>\n<h5>6. \u041f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c \u0440\u0430\u0431\u043e\u0442\u043e\u0441\u043f\u043e\u0441\u043e\u0431\u043d\u043e\u0441\u0442\u044c \u0441\u0435\u0440\u0432\u0435\u0440\u0430<\/h5>\n<p>  \u0423 \u043d\u0430\u0441 \u0434\u043e\u043b\u0436\u0435\u043d\u0430 \u0431\u044b\u0442\u044c \u0437\u0430\u043f\u0443\u0449\u0435\u043d\u0430 samba \u043f\u043e\u0441\u043b\u0435 \u043f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438  <\/p>\n<pre><code class=\"bash\">ps aux | grep samba <\/code><\/pre>\n<blockquote><p>root 865 0.3 3.0 95408 31748? Ss 18:59 0:00 \/usr\/local\/samba\/sbin\/samba -D<\/p><\/blockquote>\n<p>  \u0414\u043e\u043b\u0436\u0435\u043d \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c DNS \u0441\u0435\u0440\u0432\u0435\u0440  <\/p>\n<pre><code class=\"bash\">nslookup dc1 <\/code><\/pre>\n<blockquote><p>Server: 127.0.0.1<br \/>  Address: 127.0.0.1#53<\/p>\n<p>  Name: dc1.domain.local<br \/>  Address: 192.168.10.1<\/p><\/blockquote>\n<p>  \u0414\u043e\u043b\u0436\u043d\u044b \u0431\u044b\u0442\u044c \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b \u0441\u0435\u0442\u0435\u0432\u044b\u0435 \u0440\u0435\u0441\u0443\u0440\u0441\u044b AD  <\/p>\n<pre><code class=\"bash\">smbclient -L localhost -U% <\/code><\/pre>\n<blockquote><p>Domain=[DOMAIN] OS=[Unix] Server=[Samba 4.1.6]<br \/>   Sharename Type Comment<br \/>   \u2014  \u2014  \u2014  netlogon Disk<br \/>   sysvol Disk<br \/>   IPC$ IPC IPC Service (Samba 4.1.6)<br \/>  Domain=[DOMAIN] OS=[Unix] Server=[Samba 4.1.6]<br \/>   Server Comment<br \/>   \u2014  \u2014  Workgroup Master<br \/>   \u2014 &#8212;&#8212;-<\/p><\/blockquote>\n<p>  \u0414\u043e\u043b\u0436\u0435\u043d \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0442\u044c\u0441\u044f Kerberos  <\/p>\n<pre><code class=\"bash\">kinit administrator <\/code><\/pre>\n<blockquote><p>Warning: Your password will expire in 41 days on Wed Apr 23 18:49:14 2014<\/p><\/blockquote>\n<p>  \u0414\u043e\u043b\u0436\u0435\u043d \u0445\u0440\u0430\u043d\u0438\u0442\u044c\u0441\u044f Ticket kerberos&#8217;a  <\/p>\n<pre><code class=\"bash\">klist <\/code><\/pre>\n<blockquote><p>Valid starting Expires Service principal<br \/>  12\/03\/2014 19:17 13\/03\/2014 05:17 krbtgt\/DOMAIN.LOCAL@DOMAIN.LOCAL<\/p><\/blockquote>\n<p>  \u0414\u043e\u043b\u0436\u043d\u0430 \u043f\u0440\u043e\u0445\u043e\u0434\u0438\u0442\u044c \u0430\u0443\u0442\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u044f netlogon  <\/p>\n<pre><code class=\"bash\">smbclient \/\/localhost\/netlogon -UAdministrator -c 'ls' <\/code><\/pre>\n<blockquote><p>Domain=[DOMAIN] OS=[Unix] Server=[Samba 4.1.6]<br \/>  . D 0 Wed Mar 12 18:46:48 2014<br \/>  \u2026 D 0 Wed Mar 12 18:49:15 2014<\/p><\/blockquote>\n<p>  \u0412\u043e\u0442 \u0438 \u0432\u0441\u0451.<br \/>  \u041c\u043e\u0436\u043d\u043e \u0432\u0432\u043e\u0434\u0438\u0442\u044c \u0432 \u0434\u043e\u043c\u0435\u043d \u043a\u043b\u0438\u0435\u043d\u0442\u043e\u0432, \u0437\u0430\u0432\u043e\u0434\u0438\u0442\u044c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439.<\/p>\n<p>  \u0423\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c AD \u043c\u043e\u0436\u043d\u043e:<br \/>  <i>\u0447\u0430\u0441\u0442\u0438\u0447\u043d\u043e<\/i> \u043f\u0440\u0438 \u043f\u043e\u043c\u043e\u0449\u0438 samba-tool \u043d\u0430 Ubuntu<br \/>  \u043f\u0440\u0438 \u043f\u043e\u043c\u043e\u0449\u0438 Administration Tools Pack \u043d\u0430 Windows XP<br \/>  \u043f\u0440\u0438 \u043f\u043e\u043c\u043e\u0449\u0438 Remote Server Administration Tools (RSAT) \u043d\u0430 Windows 7 \u0438 \u0432\u044b\u0448\u0435<\/p>\n<p>  \u042d\u0442\u043e\u0442 \u043f\u043e\u0441\u0442 \u043c\u043e\u0436\u043d\u043e \u0441\u0447\u0438\u0442\u0430\u0442\u044c \u043d\u0435\u043a\u0438\u043c \u043f\u0435\u0440\u0435\u0432\u043e\u0434\u043e\u043c \u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u0433\u043e wiki Samba, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u043f\u043e \u0430\u0434\u0440\u0435\u0441\u0443:<br \/>  <a href=\"https:\/\/wiki.samba.org\/index.php\/Samba_AD_DC_HOWTO\">wiki.samba.org\/index.php\/Samba_AD_DC_HOWTO<\/a>, \u0441 \u043c\u043e\u0438\u043c\u0438 \u0434\u043e\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f\u043c\u0438.<\/p>\n<p>  P.S. \u0415\u0441\u043b\u0438 \u043a\u043e\u043c\u0443-\u0442\u043e \u0431\u0443\u0434\u0435\u0442 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e \u043c\u043e\u0433\u0443 \u0435\u0449\u0435 \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u00ab\u043c\u0430\u043d\u0443\u0430\u043b\u00bb \u043f\u0440\u043e \u0432\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u0440\u0435\u0437\u0435\u0440\u0432\u043d\u043e\u0433\u043e \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0430 \u043d\u0430 Ubuntu \u0432 \u0434\u043e\u043c\u0435\u043d.    \t<\/p>\n<div class=\"clear\"><\/div>\n<\/p><\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"http:\/\/habrahabr.ru\/post\/215573\/\"> http:\/\/habrahabr.ru\/post\/215573\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"content html_format\">   \t\u042d\u0442\u043e\u0442 \u0432\u0430\u0440\u0438\u0430\u043d\u0442 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043f\u043e\u043b\u0435\u0437\u0435\u043d \u0434\u043b\u044f \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u0438\u0445 \u043e\u0440\u0433\u0430\u043d\u0438\u0437\u0430\u0446\u0438\u0439 \u0441 \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440\u0430\u043c\u0438 \u043f\u043e\u0434 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435\u043c Windows.<br \/>  \u041d\u0435\u0442 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u0438 \u043f\u0440\u0438\u043e\u0431\u0440\u0435\u0442\u0430\u0442\u044c \u043d\u0435\u0434\u0435\u0448\u0435\u0432\u0443\u044e Windows Server \u0434\u043b\u044f \u043e\u0440\u0433\u0430\u043d\u0438\u0437\u0430\u0446\u0438\u0438 AD \u0438 CAL \u043b\u0438\u0446\u0435\u043d\u0437\u0438\u0438 \u0434\u043b\u044f \u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u043a \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0443 \u0434\u043e\u043c\u0435\u043d\u0430.<br \/>  \u0412 \u043a\u043e\u043d\u0435\u0447\u043d\u043e\u043c \u0438\u0442\u043e\u0433\u0435 \u0438\u043c\u0435\u0435\u043c \u043f\u043b\u044e\u0448\u043a\u0438 AD: \u0433\u0440\u0443\u043f\u043f\u043e\u0432\u044b\u0435 \u043f\u043e\u043b\u0438\u0442\u0438\u043a\u0438, \u0440\u0430\u0437\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u0435 \u043f\u0440\u0430\u0432 \u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u043a \u0440\u0435\u0441\u0443\u0440\u0441\u0430\u043c \u0438 \u0442.\u0434.  <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-215573","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/215573","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=215573"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/215573\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=215573"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=215573"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=215573"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}