dhcp server liuxLinux serverNETWORK ADMINISTRATIONS

How to Install and Manage Samba Active Directory in Ubuntu Linux

In this video I’m going to cover how to install a Samba Active Directory Domain Controller in Ubuntu Linux Server. Then I will be joining Windows 10 clients to the domain and I will be performing System Administration tasks using Microsoft Remote System Administration Tool (RSAT)
time line
00:00 Introduction
03:00 Virtualbox Network Configuration and Port Forward
03:50 Establish SSH Connection to Ubuntu Linux
04:50 Update Ubuntu Server
05:15 (Server Identity) Changing hostname
08:30 (server identity) Setting static ip address
12:07 Applying hostname changes (restart system)
13:00 Installing SAMBA as Active Directory DC
16:30 Backup original Samba configuration file
17:00 Provision Samba Active Directory Domain Controller
21:05 Set up name servers in resolv.conf file
22:45 Disabling services
23:20 Unmask Samba Directory Services
24:05 Enable Samba Directory Service
26:00 Start SAMBA
26:25 Displaying SAMBA listening ports (netstat)
26:40 Testing DNS Name Resolution & network connections (ping)
27:25 Test DNS resolution in Windows 10 client (ping)
28:20 Set up ip Configuration in Windows 10 (static ip)
29:48 Join Windows 10 to domain
31:05 Download and Install Microsoft RSAT tool
31:50 Login to the Domain Windows 10
32:40 Setup Microsoft MMC for Remote System Management
35:05 Create a new user in Active Directory Domain
36:15 View user properties in Active Directory
38:07 Creating Organizational Units and move users
39:20 View DNS Server Configuration
40:40 View Share Folders, Sessions and Open Files
41:37 Creating network shares in Ubuntu Linux (SAMBA)
47:45 Mapping network shares using GPO
51:50 Updating Group Policy in Windows 10 (gpupdate)
52:41 Uploading MSI Packages to Ubuntu Linux (Winscp)
54:05 Installing MSI Packages using GPO
58:15 Restrict access to Control Panel and Running login Scripts using GPO’s

source by root tech

linux dhcp server

Alice AUSTIN

Alice AUSTIN is studying Cisco Systems Engineering. He has passion with both hardware and software and writes articles and reviews for many IT websites.

20 thoughts on “How to Install and Manage Samba Active Directory in Ubuntu Linux

  • I would like to know how can I set disk quotas for the mapped network drives? It seems like File Server Resource Manager (FSRM) is not working even if I connect it to DC1 using MMC. The problems occurs since it pops out the error "RPC server is unavailable on computer DC1."?

    Worst case scenario, is there a way to set disk quota for the existing mapped network drives without the use of File Server Resource Manager (FSRM)?

  • hello sir what ubuntu version you use.

  • The challenge will be to get roaming profiles working if you login to the AD from a Windows, Linux or Mac computer and also assigning mapped drives/shares.
    Im trying to do some centralization at home so it will be a little bit easier with the accounts and stuff.

    To be able to use a Linux server instead of a resource heavy windows server is a bonus!

  • This is a great tutorial.
    I have a question. I run a standard Samba Server on a separate VM, and it is simply too much data to move and access to disrupt.
    Do you have instructions to point the "AD-Samba-Server1" to the "Standard-Samba-Server2"?

  • i gave in and just redid it now i my issue is everytime i reboot or shutdown the resolv.conf gets completely deleted and i have not been able to find out how to resolve this

  • is there a way to rename without having to redo the hole thing. i made the mistake as to using my Domain and now i cant access my websites from my internal network i wanted to change the AD domain to .local without having to redo everything

  • Amazing, the cheapest way to install and managing DC and AD, a couple of Windows licenses, free Ubuntu server, free VirtualBox and free static IP address using for example ZeroTier-like solutions, and that's it! Thank you for sharing!!

  • Great job, Sir! That was the only one tutorial about Samba AD that worked for me 100%. I'am glad you covered both sides (server and client). Thank you very much!

  • so far so good: a solly question: this message during the install log : "Unable to determine the DomainSID, can not enforce uniqueness constraint on local domainSIDs " do that mean trouble for the future?

    Update:
    netstat -antp | grep 'smbd|samba'

    shows nothing .
    i guess your guide needs an update. 🙁

  • whne try to connect i am not able to connect its error
    Note: This information is intended for a network administrator. If you are not your network's administrator, notify the administrator that you received this information, which has been recorded in the file C:Windowsdebugdcdiag.txt.

    The following error occurred when DNS was queried for the service location (SRV) resource record used to locate an Active Directory Domain Controller (AD DC) for domain "bighome.com":

    The error was: "DNS name does not exist."

    (error code 0x0000232B RCODE_NAME_ERROR)

    The query was for the SRV record for ldap._tcp.dc.msdcs.bighome.com

    Common causes of this error include the following:

    – The DNS SRV records required to locate a AD DC for the domain are not registered in DNS. These records are registered with a DNS server automatically when a AD DC is added to a domain. They are updated by the AD DC at set intervals. This computer is configured to use DNS servers with the following IP addresses:

    192.168.29.5

    – One or more of the following zones do not include delegation to its child zone:

    bighome.com

    com

    . (the root zone)

    using OS ubuntu server 22.04LTS
    virtualbox with static ip of 192.168.29.10/24
    in same network i am trying to connect in 1st time asked me to login whne i enter username and password its shows above error
    help me to relove

  • root@dc1:~# systemctl enable -now samba-ad-dc.service

    Failed to parse lines 'ow'

    help me

  • Are you on Bridge mode to do this? I'm having some issues mainly regarding network connection… The Network option also doesn't appear to me on Virtualbox Preferences
    (I'm also using two Network interfaces, cuz I wanna the server to act both as Squid and Samba… Dunno if that's of any relevance)

    Well, basically, the issue i'm facing is: I'm losing internet connection like u said, if I set a default gateaway on netplan config. file. Thus, I didn't set a gateway, and am using my Testserver (yep, right now I'm just doing tests to see if i can implement Samba AD). So, I didn't set the gateway, and let interface 1 work as NAT/DHCP, and set interface 2 as static and added my IP and Google's IP as DNS servers, like you did.

    Will I have any issue ahead if I leave things as they're?

  • Hi, my /etc/resolv.conf keeps getting deleted after every restart of my machine, after i stopped the systemd-resolverd.service how i can fix it?

Comments are closed.