SlideShare a Scribd company logo
1 of 15
Download to read offline
Samba 4.0の
最新動向
日本Sambaユーザ会
たかはしもとのぶ(髙橋基信) 
monyo@samba.gr.jp
2
Samba 4.X系列とは
 Active Directory(以下AD)のドメインコントロー
ラ(以下DC)機能を実装したSambaの最新版
現在の最新版はSamba 4.1.5(2014/02/21)
 Samba 4.1系列最初の4.1.0は2013/10/11リリース
 Sambaのサポートポリシー
9か月毎に新系列をリリース
 最新系列(4.1):フルサポート
 1つ前(4.0):メンテナンスサポート
 2つ前(3.6):セキュリティ修正のみサポート
6週間毎目途で、パッチリリース
 4.1.5は、4.1系列で5回目のパッチリリース
3
Samba 4.X系列の特徴
 ADのドメインコントローラ機能とそれ以外でバイ
ナリが分離されている
ADのドメインコントローラ機能→sambaバイナリ
その他機能→レガシーバイナリ
(smbd/nmbd/winbindd)
sambaバイナリとレガシーバイナリは共存不可
 ファイルサーバなど、ドメインコントローラ以外の
機能については、レガシーバイナリが推奨
※レガシーバイナリという用語はわたしの造語です
4
レガシーバイナリとは
 前バージョン(3.6系列)までと同等
ADのメンバサーバ、ファイル/プリンタサー
バ、SambaドメインのDCなどとして従来通り使用で
きる
設定方法は従来と基本的に変わらず
→Samba 3.X系列の知識で設定可能
 Windowsの機能強化があれば、地道に追従
ADメンバサーバとしての機能は一通り対応済
Windows自身にOSとして目立った機能強化がない
5
レガシーバイナリの動向
 主な変更点(4.0)
security = share/serverが廃止
 元々Windows 9x由来の機能であり、サポートが困難に
SMB2.1(大半の機能)、SMB3.0(主要機能)サポート
CTDBによるクラスタ機能が正式サポート
 主な変更点(4.1)→主に2012対応
クライアント側のSMB2.1/3.0サポート
 ファイル共有プロトコルの最新バージョンをSambaサーバ
だけではなく、smbclientなどクライアントでも使用可能
 smbclient -mSMB3
6
レガシーバイナリの動向
ネットワーク上の暗号化転送サポート
 SMB3の機能である暗号化転送をサポート
 smbclient -mSMB3 -e
サーバ上でのファイルコピーサポート
 クライアントからの操作で同一サーバ内でファイルコピー
を行う際の効率が向上
 例えば、ある共有にあるファイルAを同じ共有内にファイルBとし
て複製する際など
SWATの廃止
 平文パスワードしか対応しておらずセキュリティが脆弱
 Web管理ツールは様々なアドオンもあり、Samba本体と
してサポートする必然性が低い
7
sambaバイナリとは
 ADのドメインコントローラに特化
nmbd、smbd、winbinddを包含した単一プロセス
 DCとして必要なサービスの大半を単独で実装
 Kerberos(Heimdal Kerberosをソースに取り込み)
 LDAP(独自実装)
 OpenLDAPの使用は考慮されていない(alpha15以降)
→OpenLDAPではADが必要とする機能をサポートできないため
→ただし、現状OpenLDAP側と協力して再サポートを模索中
別プロダクトと連携して実現している機能
 DNS(BIND)→内蔵DNSが標準だが、大規模環境では
BIND連携推奨、NTP(ntpd)
 スクリプティング(Python) ← Pythonがないとビルド不可
8
参考:DNS、NTPの連携方式
 DNSとして以下の3種類の方式をサポート
 NTPは必須ではないが、時刻同期は必須
 ntpd 4.2.6以降は、AD互換の署名NTPを実装
 設定を行うことで、時刻同期を許可するクライアントを同一ADのクラ
イアントに制限可能
方式 概要 特徴
Samba内蔵 ・DNSサーバはSamba内蔵
・ゾーン情報はADから取得
・設定が簡単
・基本的な機能のみ実装
BIND9DLZ
モジュール
・DNSサーバはBIND9
・ゾーン情報はADから取得
※BIND9のDLZ機能を使用
・複雑、大規模環境への適用が可能
・DLZ機能に対応したBIND 9.7以降
が必要
BIND9静的
ファイル
・DNSサーバはBIND9
・ゾーン情報はBIND9のゾーンファ
イルから取得
・複雑、大規模環境への適用が可能
・Sambaの設定変更に伴うゾーン情
報の更新を手作業で行う必要がある
9
sambaバイナリの動向
 ADの機能のサポートを拡大していく方向
現状、単一ドメインに閉じた機能はほぼサポート
項目 Samba 4.0系列 【参考】Win 2008 R2
フォレスト・ドメイン機能レベル ◎ ◎
FSMO操作 ◎ ◎
サイト △ ◎
信頼関係 △ ◎
マルチフォレスト・ドメイン × ◎
Windows DCの参加 ○(2012/2003等で若干トラブルあり) ◎
RODC △(いろいろトラブルがあるよう…) ◎
ディレクトリ複製(DRS) ○→◎ ◎
ファイル複製(FRS) ×(rsyncなどで別途対応必要) ◎
OUによる権限の委任 ◎ ◎
グループポリシ ◎ ◎
ドメインベースDFS △(ADDSに必要な範囲) ◎
10
参考:既存のドメインからの移行
 Samba3ドメインからの移行
samba-tool domain classicupgrade というコマンド
が用意されている
 インプレースアップグレード前提
アップグレード元のSambaドメインのデータベースに
ゴミや不整合があると移行に失敗するので移行リハ
できちんと取り除いておくこと(SID重複など)
 Windowsドメインから/への移行
Windows同士のドメインコントローラ移行と同様にし
て可能
11
SambaによるAD管理の方向性
 smb.confの設定はあまり必要でない
実はインストーラが生成したままでも使えてしまう
 samba-toolやGUI
による動的設定増加
AD周りの設定は、
ほぼコマンドorGUI
ファイルサーバの
アクセス制御もGUI
から行うのが基本
良くも悪くも、Windows的スキルが必要→いったん
起動すれば、Windowsサーバと同等に管理可能
# Global parameters
[global]
workgroup = SAMBA40AD3
realm = SAMBA40AD3.SAMBA.LOCAL
netbios name = SQUEEZE32-2
server role = active directory domain controller
dns forwarder = 192.168.135.2
idmap_ldb:use rfc2307 = yes
[netlogon]
path = /usr/local/samba/var/locks/sysvol/samba40ad3.samba.local/scripts
read only = No
[sysvol]
path = /usr/local/samba/var/locks/sysvol
read only = No
スクリプトの生成したsmb.conf例
12
参考:Samba 4.0によるADの操作
 基本的には各種Windows管理ツールから操作
samba-toolによるコマンドライン操作も可能
13
Sambaが生成したUNIXユーザの管理
 メンバサーバ上 →Samba 3.6以前と同じ
Winbindを使ったり、/etc/passwdと対応付けしたり
 DC上
Winbind機構が必ず動作
 UNIXユーザのUID/GIDはデフォルト自動生成
 ADのUNIX属性を参照させる設定も可能(Samba 4.1以降)
 シェルなどを個別設定できない
# getent passwd
root:x:0:0:root:/root:/bin/bash
…
SAMBA41AD1Administrator:*:0:10000::/home/SAMBA41AD1/Administrator:/bin/false
SAMBA41AD1Guest:*:3000011:3000012::/home/SAMBA41AD1/Guest:/bin/false
SAMBA41AD1krbtgt:*:3000020:10000::/home/SAMBA41AD1/krbtgt:/bin/false
SAMBA41AD1samba01:*:3000012:10000:samba 01:/home/SAMBA41AD1/samba01:/bin/false
…
SAMBA41AD1ldap-connect:*:3000021:10000::/home/SAMBA41AD1/ldap-connect:/bin/false
SAMBA41AD1samba07:*:3000022:10000:samba 07:/home/SAMBA41AD1/samba07:/bin/false
14
Sambaが生成したUNIXユーザの管理
シェルやホームディレクトリもUNIX属性を参照させ
たい場合(Samba 3.Xと同等の設定をしたい)
 ADをLDAPサーバとして扱い、sssdなどでADに存在する
ユーザを自動生成、その際に関連する属性を参照させる
ことで(一応)実現可能
 ただし、Winbind機構で生成されるユーザとは別ユーザと
して扱われる
# getent passwd
root:x:0:0:root:/root:/bin/bash
…
messagebus:x:103:104::/var/run/dbus:/bin/false
samba01:*:10000:10000:samba 01:/home/samba01:/bin/bash
…
samba06:*:10003:10000:samba 06:/home/samba06:/bin/sh
SAMBA41AD1Administrator:*:0:10000::/home/SAMBA41AD1/Administrator:/bin/false
SAMBA41AD1Guest:*:3000011:3000012::/home/SAMBA41AD1/Guest:/bin/false
SAMBA41AD1krbtgt:*:3000020:10000::/home/SAMBA41AD1/krbtgt:/bin/false
SAMBA41AD1samba01:*:10000:10000:samba 01:/home/SAMBA41AD1/samba01:/bin/false
…
SAMBA41AD1samba06:*:10003:10000:samba 06:/home/SAMBA41AD1/samba06:/bin/false
15
ご清聴ありがとうございました

More Related Content

Recently uploaded

Open Source UN-Conference 2024 Kawagoe - 独自OS「DaisyOS GB」の紹介
Open Source UN-Conference 2024 Kawagoe - 独自OS「DaisyOS GB」の紹介Open Source UN-Conference 2024 Kawagoe - 独自OS「DaisyOS GB」の紹介
Open Source UN-Conference 2024 Kawagoe - 独自OS「DaisyOS GB」の紹介Yuma Ohgami
 
論文紹介:Content-Aware Token Sharing for Efficient Semantic Segmentation With Vis...
論文紹介:Content-Aware Token Sharing for Efficient Semantic Segmentation With Vis...論文紹介:Content-Aware Token Sharing for Efficient Semantic Segmentation With Vis...
論文紹介:Content-Aware Token Sharing for Efficient Semantic Segmentation With Vis...Toru Tamaki
 
論文紹介:Automated Classification of Model Errors on ImageNet
論文紹介:Automated Classification of Model Errors on ImageNet論文紹介:Automated Classification of Model Errors on ImageNet
論文紹介:Automated Classification of Model Errors on ImageNetToru Tamaki
 
SOPを理解する 2024/04/19 の勉強会で発表されたものです
SOPを理解する       2024/04/19 の勉強会で発表されたものですSOPを理解する       2024/04/19 の勉強会で発表されたものです
SOPを理解する 2024/04/19 の勉強会で発表されたものですiPride Co., Ltd.
 
論文紹介:Semantic segmentation using Vision Transformers: A survey
論文紹介:Semantic segmentation using Vision Transformers: A survey論文紹介:Semantic segmentation using Vision Transformers: A survey
論文紹介:Semantic segmentation using Vision Transformers: A surveyToru Tamaki
 
[DevOpsDays Tokyo 2024] 〜デジタルとアナログのはざまに〜 スマートビルディング爆速開発を支える 自動化テスト戦略
[DevOpsDays Tokyo 2024] 〜デジタルとアナログのはざまに〜 スマートビルディング爆速開発を支える 自動化テスト戦略[DevOpsDays Tokyo 2024] 〜デジタルとアナログのはざまに〜 スマートビルディング爆速開発を支える 自動化テスト戦略
[DevOpsDays Tokyo 2024] 〜デジタルとアナログのはざまに〜 スマートビルディング爆速開発を支える 自動化テスト戦略Ryo Sasaki
 
【早稲田AI研究会 講義資料】3DスキャンとTextTo3Dのツールを知ろう!(Vol.1)
【早稲田AI研究会 講義資料】3DスキャンとTextTo3Dのツールを知ろう!(Vol.1)【早稲田AI研究会 講義資料】3DスキャンとTextTo3Dのツールを知ろう!(Vol.1)
【早稲田AI研究会 講義資料】3DスキャンとTextTo3Dのツールを知ろう!(Vol.1)Hiroki Ichikura
 
Postman LT Fukuoka_Quick Prototype_By Daniel
Postman LT Fukuoka_Quick Prototype_By DanielPostman LT Fukuoka_Quick Prototype_By Daniel
Postman LT Fukuoka_Quick Prototype_By Danieldanielhu54
 
TSAL operation mechanism and circuit diagram.pdf
TSAL operation mechanism and circuit diagram.pdfTSAL operation mechanism and circuit diagram.pdf
TSAL operation mechanism and circuit diagram.pdftaisei2219
 
スマートフォンを用いた新生児あやし動作の教示システム
スマートフォンを用いた新生児あやし動作の教示システムスマートフォンを用いた新生児あやし動作の教示システム
スマートフォンを用いた新生児あやし動作の教示システムsugiuralab
 

Recently uploaded (10)

Open Source UN-Conference 2024 Kawagoe - 独自OS「DaisyOS GB」の紹介
Open Source UN-Conference 2024 Kawagoe - 独自OS「DaisyOS GB」の紹介Open Source UN-Conference 2024 Kawagoe - 独自OS「DaisyOS GB」の紹介
Open Source UN-Conference 2024 Kawagoe - 独自OS「DaisyOS GB」の紹介
 
論文紹介:Content-Aware Token Sharing for Efficient Semantic Segmentation With Vis...
論文紹介:Content-Aware Token Sharing for Efficient Semantic Segmentation With Vis...論文紹介:Content-Aware Token Sharing for Efficient Semantic Segmentation With Vis...
論文紹介:Content-Aware Token Sharing for Efficient Semantic Segmentation With Vis...
 
論文紹介:Automated Classification of Model Errors on ImageNet
論文紹介:Automated Classification of Model Errors on ImageNet論文紹介:Automated Classification of Model Errors on ImageNet
論文紹介:Automated Classification of Model Errors on ImageNet
 
SOPを理解する 2024/04/19 の勉強会で発表されたものです
SOPを理解する       2024/04/19 の勉強会で発表されたものですSOPを理解する       2024/04/19 の勉強会で発表されたものです
SOPを理解する 2024/04/19 の勉強会で発表されたものです
 
論文紹介:Semantic segmentation using Vision Transformers: A survey
論文紹介:Semantic segmentation using Vision Transformers: A survey論文紹介:Semantic segmentation using Vision Transformers: A survey
論文紹介:Semantic segmentation using Vision Transformers: A survey
 
[DevOpsDays Tokyo 2024] 〜デジタルとアナログのはざまに〜 スマートビルディング爆速開発を支える 自動化テスト戦略
[DevOpsDays Tokyo 2024] 〜デジタルとアナログのはざまに〜 スマートビルディング爆速開発を支える 自動化テスト戦略[DevOpsDays Tokyo 2024] 〜デジタルとアナログのはざまに〜 スマートビルディング爆速開発を支える 自動化テスト戦略
[DevOpsDays Tokyo 2024] 〜デジタルとアナログのはざまに〜 スマートビルディング爆速開発を支える 自動化テスト戦略
 
【早稲田AI研究会 講義資料】3DスキャンとTextTo3Dのツールを知ろう!(Vol.1)
【早稲田AI研究会 講義資料】3DスキャンとTextTo3Dのツールを知ろう!(Vol.1)【早稲田AI研究会 講義資料】3DスキャンとTextTo3Dのツールを知ろう!(Vol.1)
【早稲田AI研究会 講義資料】3DスキャンとTextTo3Dのツールを知ろう!(Vol.1)
 
Postman LT Fukuoka_Quick Prototype_By Daniel
Postman LT Fukuoka_Quick Prototype_By DanielPostman LT Fukuoka_Quick Prototype_By Daniel
Postman LT Fukuoka_Quick Prototype_By Daniel
 
TSAL operation mechanism and circuit diagram.pdf
TSAL operation mechanism and circuit diagram.pdfTSAL operation mechanism and circuit diagram.pdf
TSAL operation mechanism and circuit diagram.pdf
 
スマートフォンを用いた新生児あやし動作の教示システム
スマートフォンを用いた新生児あやし動作の教示システムスマートフォンを用いた新生児あやし動作の教示システム
スマートフォンを用いた新生児あやし動作の教示システム
 

Featured

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by HubspotMarius Sescu
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTExpeed Software
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsPixeldarts
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthThinkNow
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfmarketingartwork
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024Neil Kimberley
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)contently
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024Albert Qian
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsKurio // The Social Media Age(ncy)
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Search Engine Journal
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summarySpeakerHub
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next Tessa Mero
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentLily Ray
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best PracticesVit Horky
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project managementMindGenius
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...RachelPearson36
 

Featured (20)

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 

Samba 4.0の最新動向(2014/03/01 OSC 2014 Tokyo/Spring)