By using this Help Desk you permit HonestRepair to collect your email address and the data you provide so they can provide support for your ticket.

Knowledgebase
HonestRepair > HonestRepair Help Desk > Knowledgebase

Search help:


Setup a domain controller with Samba and Kerberos (without DNS)

Solution

Setup A Linux Domain Controller (DC)



https://www.techrepublic.com/article/how-to-configure-ubuntu-linux-server-as-a-domain-controller-with-samba-tool/
https://www.server-world.info/en/note?os=Ubuntu_18.04&p=samba&f=4
https://wiki.samba.org/index.php/Samba_AD_DC_Troubleshooting

sudo apt install samba libpam-winbind
sudo leafpad /etc/hosts

127.0.0.1 localhost.localdomain
​IP_ADDRESS_OF_SERVER localhost
​IP_ADDRESS_OF_SERVER HOSTNAME_OF_SERVER.EXAMPLE.NET    HOSTNAME_OF_SERVER

*Note the spaces are actually tabs.

sudo leafpad /etc/hostname

HOSTNAME_OF_SERVER

smbd -b | grep "CONFIGFILE"

sudo unlink PATH_TO_FILE_ABOVE

smbd -b | egrep "LOCKDIR|STATEDIR|CACHEDIR|PRIVATE_DIR"

sudo rm -R PATH_TO_FOLDERS_ABOVE

*Repeat the above "rm -R" command for each folder listed in above egrep output.

sudo mkdir /var/lib/samba
sudo mkdir /var/lib/samba/private

sudo samba-tool domain provision --use-rfc2307 --interactive

*Answer all questions and when you get to the DNS selection choose NONE

sudo leafpad /etc/resolv.conf

HOSTNAME_OF_DNS_SERVER IP_OF_DNS_SERVER
search HOSTNAME_OF_SERVER.EXAMPLE.NET

*Note that the above spaces are spaces.

sudo ln -sf /var/lib/samba/private/krb5.conf /etc/krb5.conf

sudo systemctl stop smbd nmbd winbind systemd-resolved

sudo systemctl disable smbd nmbd winbind systemd-resolved

sudo systemctl unmask samba-ad-dc

sudo systemctl start samba-ad-dc

sudo systemctl enable samba-ad-dc

sudo samba-tool domain level show 

sudo smbclient -L localhost -U%

 
Was this article helpful? yes / no
Article details
Article ID: 11
Category: Linux
Date added: 2018-10-11 22:41:38
Rating (Votes): Article rated 3.7/5.0 (3)

 
« Go back

 
Powered by Help Desk Software HESK, in partnership with SysAid Technologies