August 17, 2017

Active Directory with Samba 4 Domain Controller on Raspberry Pi


This is just a collection of tutorials for a home network experiment.
The goal is to setup a small Active Directory domain to ease account management and local sharings.
The Domain Controller will be based on Samba 4 running on a Raspberry Pi. I'll have my other machines: several Windows, a few Debians, a Synology NAS, and potentially Mac OS X joining the domain.

Setting up Active Directory

(EDIT: Eventually, I found this guide. My DC just works with a bit tweak for static IP and unmask samba-ad-dc.service.)
Create an Active Directory Infrastructure with Samba4 on Ubuntu – Part 1 https://www.tecmint.com/install-samba4-active-directory-ubuntu/

(EDIT: This can be a good reference, but I failed somewhere. At some point, I realized that I don't really need a Samba DC Router, just too complicated.)
Samba 4 Domain Controller on Raspberry Pi
http://www.virtualfrontiers.co.uk/domain_controller.htm

Tweaking for user home folder
https://wiki.samba.org/index.php/User_Home_Folders

Joining Active Directory

Joining a Debian Client to Active Directory
https://wiki.debian.org/AuthenticatingLinuxWithActiveDirectory
http://www.alandmoore.com/blog/2015/05/06/joining-debian-8-to-active-directory/

Simplier version:
Join in Windows Active Directory Domain.
https://www.server-world.info/en/note?os=Debian_9&p=realmd

Complicated version:
Linux: Connecting a Linux server to Active Directory. All of the needed steps.
http://www.techpository.com/linux-connecting-a-linux-server-to-active-directory-all-of-the-needed-steps/


Happen to read
https://zedt.eu/tech/adding-static-dns-records-on-dd-wrt/

To relax password complexity requirement...
https://oitibs.com/samba4-domain-password-policy/

1 comment:

  1. great post. Is your pi based Domain controller still running today? any changes?

    ReplyDelete