Logo
Active Directory multi-sites, network shares and user rights management
Overview

Active Directory multi-sites, network shares and user rights management

December 20, 2021
4 min read

Context

Infrastructure

A company has 3 sites, each with 1 Windows server:

  • SRV-CHA (AD) in Chassignieu (company headquarters)
  • SRV-VIR in Virieu
  • SRV-BLA in Blandin

Each site contains 2 departments:

  • Administrative
  • Technical

And the headquarters contains 3:

  • Management
  • Administrative
  • Technical

Organization Units (OU) Structure

▢️SRV-CHA
β”œβ”€β”€ πŸ‘¨β€πŸ‘¦β€πŸ‘¦Management
β”‚ β”œβ”€β”€ GG-CHA-DIR
β”‚ β”œβ”€β”€ πŸ§‘CEO
β”‚ └── πŸ§‘HR
β”œβ”€β”€ πŸ‘¨β€πŸ‘¦β€πŸ‘¦Administrative
β”‚ β”œβ”€β”€ GG-CHA-ADM
β”‚ └── πŸ§‘ADM1C
└── πŸ‘¨β€πŸ‘¦β€πŸ‘¦Technical
β”œβ”€β”€ GG-CHA-TECH
└── πŸ§‘TECH1C
▢️SRV-VIR
β”œβ”€β”€ πŸ‘¨β€πŸ‘¦β€πŸ‘¦Administrative
β”‚ β”œβ”€β”€ GG-VIR-ADM
β”‚ └── πŸ§‘ADM1V
└── πŸ‘¨β€πŸ‘¦β€πŸ‘¦Technical
β”œβ”€β”€ GG-VIR-TECH
└── πŸ§‘TECH1V
▢️SRV-BLA
β”œβ”€β”€ πŸ‘¨β€πŸ‘¦β€πŸ‘¦Administrative
β”‚ β”œβ”€β”€ GG-BLA-ADM
β”‚ └── πŸ§‘ADM1B
└── πŸ‘¨β€πŸ‘¦β€πŸ‘¦Technical
β”œβ”€β”€ GG-BLA-TECH
└── πŸ§‘TECH1B

The GG (Global Groups) link users to LGs. They group all users from the same department. Each user belongs to their department’s GG.

Shares and Permissions

▢️SRV-CHA
β”œβ”€β”€ πŸ“DATA-CHA
β”‚ β”œβ”€β”€ πŸ“Tech-Common
β”‚ β”‚ └── πŸ”“GL-SRV-CHA-DATA-TECH-COMMON-FC
β”‚ β”œβ”€β”€ πŸ“Adm-Common
β”‚ β”‚ β”œβ”€β”€ πŸ”“GL-SRV-CHA-DATA-TECH-COMMON-FC
β”‚ β”‚ └── πŸ”’GL-SRV-CHA-DATA-ADM-COMMON-R
β”‚ β”œβ”€β”€ πŸ“Adm-Chassignieu
β”‚ β”‚ β”œβ”€β”€ πŸ”“GL-SRV-CHA-DATA-ADM-CHASSIGNIEU-FC
β”‚ β”‚ └── πŸ”’GL-SRV-CHA-DATA-ADM-CHASSIGNIEU-R
β”‚ β”œβ”€β”€ πŸ“Tech-Chassignieu
β”‚ β”‚ └── πŸ”“GL-SRV-CHA-DATA-TECH-CHASSIGNIEU-FC
β”‚ └── πŸ“Management | πŸ”“GL-SRV-CHA-DATA-MANAGEMENT-FC
β”‚ β”œβ”€β”€ πŸ“Investments
β”‚ └── πŸ“HR
β”œβ”€β”€ πŸ“PROFILES-CHA
└── πŸ“DBASE-CHA
▢️SRV-VIR
β”œβ”€β”€ πŸ“DATA-VIR
β”‚ β”œβ”€β”€ πŸ“Adm-Virieu
β”‚ β”‚ β”œβ”€β”€ πŸ”“GL-SRV-VIR-DATA-ADM-VIRIEU-FC
β”‚ β”‚ └── πŸ”’GL-SRV-CHA-DATA-ADM-VIRIEU-R
β”‚ └── πŸ“Tech-Virieu
β”‚ └── πŸ”“GL-SRV-VIR-DATA-TECH-VIRIEU-FC
β”œβ”€β”€ πŸ“PROFILES-VIR
└── πŸ“DBASE-VIR
▢️SRV-BLA
β”œβ”€β”€ πŸ“DATA-BLA
β”‚ β”œβ”€β”€ πŸ“Adm-Blandin
β”‚ β”‚ β”œβ”€β”€ πŸ”“GL-SRV-BLA-DATA-ADM-BLANDIN-FC
β”‚ β”‚ └── πŸ”’GL-SRV-CHA-DATA-ADM-BLANDIN-R
β”‚ └── πŸ“Tech-Blandin
β”‚ └── πŸ”“GL-SRV-BLA-DATA-TECH-BLANDIN-FC
β”œβ”€β”€ πŸ“PROFILES-BLA
└── πŸ“DBASE-BLA

We will use the above topology for this entire practical work.

The steps detailed below indicate the procedure to follow to create each element.

Creating an OU

OU Organizational Unit is an element in Active Directory that allows us to manage a set of elements. In the diagram above, we can see there are β€œsub-Organizational Units”:

For example: The user: CEO is located in SRV-CHA > Management So in the sub-OU Management which depends on SRV-CHA

  • Go to server SRV-CHA (active directory):

Uncheck the box Protect container from accidental deletion

Creating a GG

A Global Group allows grouping one or more users.

Creating a User

Set a password that complies with your security policy

Creating an LG

LG (Local Domain Groups) apply rights to resources.

FC Full Control R Read

Creating the β€œDATA” shared folder

LGs will be applied in these subfolders

Enable Access-based Enumeration

Enabling enumeration shows only the folders that the user has access to.

Enable access-based enumeration

Check Enable access-based enumeration

Linking a User to GG

Linking a GG to LG

Applying an LG to Shared Directory

Base Folder

The base folder is simply an empty directory for each user, where they can store their documents for example. This folder is in a shared path.

Mapping Network Drives

Each user will automatically map 3 network drives to their session (common, partitioned, and base folder, depending on their location), using the script assigned to them:

Example: Let’s take the example of a user in Blandin:

  • X: will contain the shared directory \\SRV-BLA\DBASE-BLA$\USER_NAME

  • Y: will contain the common shared directory \\SRV-CHA\DATA-CHA$ (user will only see folders where they have access (minimum read) from the common share).

  • Z: will contain the shared directory \\SRV-BLA\DATA-BLA$ if I’m in Blandin (user will only see folders where they have access (minimum read), site partitioning).

Roaming Profiles

Roaming Profiles facilitate machine or location changes. The user profile is stored remotely on a shared directory.

Testing a Domain User

Warning

You must be a local administrator of the machine to join the domain.