<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>sssd &#8211; 楽しいブログ</title>
	<atom:link href="https://cs.machijun.net/tag/sssd/feed/" rel="self" type="application/rss+xml" />
	<link>https://cs.machijun.net/</link>
	<description>コンピュータ関連の記事を書いていこうかな</description>
	<lastBuildDate>Sat, 08 Dec 2018 15:24:00 +0000</lastBuildDate>
	<language>ja</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.2.15</generator>
	<item>
		<title>CentOS7をActiveDirectoryに参加させる</title>
		<link>https://cs.machijun.net/join-ad-centos7.html</link>
				<pubDate>Sat, 08 Dec 2018 14:55:41 +0000</pubDate>
		<dc:creator><![CDATA[machijun]]></dc:creator>
				<category><![CDATA[CentOS]]></category>
		<category><![CDATA[ActiveDirectory]]></category>
		<category><![CDATA[AD]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[sssd]]></category>

		<guid isPermaLink="false">https://cs.machijun.net/?p=78</guid>
				<description><![CDATA[はじめに CentOS7にADユーザーでログインできるよ...]]></description>
								<content:encoded><![CDATA[<h2>はじめに</h2>
<p>CentOS7にADユーザーでログインできるようにしたいと思います。</p>
<p><span id="more-78"></span><br />
</p>
<h2>前提</h2>
<p>事前にDNSでドメインコントローラの名前解決ができるようにしておいてください。</p>
<table style="border-collapse: collapse; width: 100%; height: 250px;" border="1">
<tbody>
<tr style="height: 45px;">
<td style="width: 50%; height: 45px;">項目</td>
<td style="width: 50%; height: 45px;">値</td>
</tr>
<tr style="height: 33px;">
<td style="width: 50%; height: 33px;">ドメインコントローラOS</td>
<td style="width: 50%; height: 33px;">Windows2008</td>
</tr>
<tr>
<td style="width: 50%;">ドメイン名</td>
<td style="width: 50%;">example.local</td>
</tr>
<tr style="height: 82px;">
<td style="width: 50%; height: 82px;">ドメイン機能レベル</td>
<td style="width: 50%; height: 82px;">Windows Server 2008</td>
</tr>
<tr style="height: 45px;">
<td style="width: 50%; height: 45px;">CentOSバージョン</td>
<td style="width: 50%; height: 45px;">7.6.1810</td>
</tr>
<tr style="height: 45px;">
<td style="width: 50%; height: 45px;">作業日</td>
<td style="width: 50%; height: 45px;">2018/12/08</td>
</tr>
</tbody>
</table>
<h2>作業</h2>
<h3>必要なパッケージのインストール</h3>
<pre class="brush: bash; title: ; notranslate">
yum install oddjob oddjob-mkhomedir sssd adcli samba-common samba-common-tools
</pre>
<h3>ADの情報取得</h3>
<pre class="brush: bash; title: ; notranslate">
# realm discover -v example.local
* Resolving: _ldap._tcp.example.local
* Performing LDAP DSE lookup on: 192.168.0.156
* Performing LDAP DSE lookup on: 192.168.0.142
* Successfully discovered: example.local
example.local
type: kerberos
realm-name: EXAMPLE.LOCAL
domain-name: example.local
configured: no
server-software: active-directory
client-software: sssd
required-package: oddjob
required-package: oddjob-mkhomedir
required-package: sssd
required-package: adcli
required-package: samba-common-tools
</pre>
<h3>realmdを設定</h3>
<pre class="brush: bash; title: ; notranslate">
#vi /etc/realmd.conf
[users]
default-home = /home/%U
default-shell = /bin/bash

[active-directory]
default-client = sssd

[service]
automatic-install = yes

[example.local]
computer-ou = OU=Computers,DC=example,DC=local
automatic-id-mapping = yes
fully-qualified-names = no
</pre>
<h3>ドメイン参加</h3>
<pre class="brush: bash; title: ; notranslate">
# realm join example.local -U Administrator
Administrator に対するパスワード:
</pre>
<p>&nbsp;</p>
<h3>ログイン確認</h3>
<pre class="brush: bash; title: ; notranslate">
#ssh (username)@localhost
</pre>
<p>これで、ログインできればOK.</p>
]]></content:encoded>
										</item>
	</channel>
</rss>
