How to install Active Directory on Ubuntu 20 04 LTS
>> YOUR LINK HERE: ___ http://youtube.com/watch?v=IgZM4urpjMM
How to install Active Directory on Ubuntu 20 04 LTS • Step 1: Initial Configuration for Samba4 • Assign a static IP to your server. Ubuntu Server uses netplan for network management. Your network configuration will look similar to this: • $ sudo vim /etc/netplan/00-installer • --- • network: • ethernets: • enp0s3: • dhcp4: no • addresses: • 192.168.30.141/24 • gateway4: 192.168.30.2 • nameservers: • addresses: [8.8.8.8, 8.8.4.4] • search: [] • version: 2 • --- • Apply the network config • $ sudo netplan apply • Check if time synchronization with an Internet server is working • $ timedatectl • Update the apt cache • $ sudo apt update • Setup your machine hostname with a descriptive name, such as adc1 used in this example, by editing /etc/hostname file or by issuing. • $ sudo vim /etc/hostname • --- • dc1.htu.local • --- • sudo vim /etc/hosts • --- • 192.168.1.51 dc1.htu.local dc1 • --- • sudo reboot • Step 2: Install Required Packages for Samba4 AD DC • In order to transform your server into an Active Directory Domain Controller, install Samba and all the required packages on your machine by issuing the below command with root privileges in a console. • $ sudo apt-get install samba krb5-user krb5-config winbind smbclient • --- • Kerberos Realm: HTU.LOCAL • Kerberos servers for your realm: dc1.htu.local • Administrative server for your Kerberos realm: dc1.htu.local • --- • Step 3: Provision Samba AD DC for Your Domain • Rename the SAMBA config file • $ sudo mv /etc/samba/smb.conf /etc/samba/smb.conf.original • Now, start the domain provisioning interactively by issuing the below command with root privileges and accept the default options that Samba provides you. • $ sudo samba-tool domain provision • --- • Realm [HTU.LOCAL]: • Domain [HTU]: • Server Role (dc, member, standalone) [dc]: • DNS backend (SAMBA_INTERNAL, BIND9_FLATFILE, BIND9_DLZ, NONE) [SAMBA_INTERNAL]: • DNS forwarder IP address (write 'none' to disable forwarding) [127.0.0.53]: 8.8.8.8,8.8.4.4 • Administrator password: • Retype password: • --- • Rename or remove Kerberos main configuration file from /etc directory and replace it using a symlink with Samba newly generated Kerberos file located in /var/lib/samba/private path by issuing the below commands: • $ sudo mv /etc/krb5.conf /etc/krb5.conf.initial • $ sudo ln -s /var/lib/samba/private/krb5.conf /etc/ • Stop and disable the samba services and the dns resolver service • $ sudo systemctl disable --now smbd nmbd winbind systemd-resolved • Unmask the SAMBA AD service • $ sudo systemctl unmask samba-ad-dc • Enable and start the AD service • $ sudo systemctl enable --now samba-ad-dc • Show the functtional levels of the AD • --- • Domain and forest function level for domain 'DC=htu,DC=local' • Forest function level: (Windows) 2008 R2 • Domain function level: (Windows) 2008 R2 • Lowest function level of a DC: (Windows) 2008 R2 • --- • Recreate the dns nameserver file • $ sudo rm -f /etc/resolv.conf sudo vim /etc/resolv.conf • --- • nameserver 127.0.0.1 • domain htu.local • --- • You may use the samba-tool command to administer AD from the server itself • $ sudo samba-tool user create user01 • Try joining a Windows PC to your AD domain. • _______ • ⭐ Connecting With Us ⭐ • ------------------------------------------- • Email for any enquiry: [email protected] • YouTube Channel: / errorandfix • Join our FB Group: / errorandfix • Like our FB Page: / errorandfix • Website: https://errorandfix.com • ⭐ Topics ⭐ • Active Directory Domain Services: • Active Directory Domain Services • Remote Desktop Connection: • Remote Desktop Connection • • #errorandfix • 🛒AFFILIATES REFERRAL LINKS🛒 • ----------------------------------------------- • Camera Ip Wifi YooSee Xoay 360 độ PTZ bao đẹp. • 🛒 https://shorten.asia/GTrtu7em • PHẦN MỀM KASPERSKY ANTI VIRUS 3PC • 🛒 https://shorten.asia/XTmjECeM • Phần Mềm Diệt Virus BKAV Profressional 12 Tháng - Hàng Chính Hãng • 🛒 https://shorten.asia/AqswQCuV • Thiết Bị Phát Wifi Di Động 4G LTE-Advanced TP-Link M7350 150Mbps - Hàng Chính Hãng • 🛒 https://shorten.asia/3P5D2HRu • Phần mềm Microsoft 365 Family English dùng được 6 máy • 🛒https://shorten.asia/R8VEs5QQ • THẢM DA TRẢI BÀN LÀM VIỆC DÙNG ĐƯỢC HAI MẶT • 🛒https://shorten.asia/BZG5dTXa
#############################
