Skip to content

Commit 8a21410

Browse files
Merge pull request #202 from netwrix/add-kb-to-docs
Add Knowledge Base articles
2 parents 8035122 + db4f962 commit 8a21410

File tree

3,857 files changed

+84310
-101
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

3,857 files changed

+84310
-101
lines changed

docs/kb/1secure/_category_.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"label": "Knowledge Base Articles",
3+
"position": 999,
4+
"collapsed": true,
5+
"collapsible": true
6+
}
Lines changed: 153 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,153 @@
1+
---
2+
description: >-
3+
This article outlines the process for installing or updating a certificate to prevent Remote Desktop Protocol (RDP) certificate warnings during SbPAM workflows.
4+
keywords:
5+
- RDP
6+
- certificate installation
7+
- SbPAM
8+
sidebar_label: Configure Proxy for RDP Connections
9+
tags: []
10+
title: "Configure Proxy for RDP Connections (Install/Update Certificate to Prevent RDP Certificate Warnings)"
11+
knowledge_article_id: kA04u0000000HRRCA2
12+
products:
13+
- onesecure
14+
---
15+
16+
# Configure Proxy for RDP Connections (Install/Update Certificate to Prevent RDP Certificate Warnings)
17+
18+
## Overview
19+
20+
This article outlines the process for installing or updating a certificate to prevent Remote Desktop Protocol (RDP) certificate warnings during SbPAM workflows.
21+
22+
## Prerequisites
23+
24+
- Windows Server must have the **Certification Authority** and **Certification Authority Web Enrollment** roles installed and configured. This ensures that the **Certification Authority** utility can be successfully launched and accessed via a web browser (`https://<servername>/certsrv`).
25+
26+
> **IMPORTANT:** The Certification Authority's post-deployment configuration must be completed after installing both prerequisite roles.
27+
28+
![Certification Authority post-deployment configuration dialog with required options visible](./images/servlet_image_22726c8e5cb9.png)
29+
30+
- The domain must have the **Enrollment Policy** set to enable automatic enrollment and renewal. The **Certificate Enrollment Policy** for user and computer certificates is configured in the **Group Policy** snap-in under **Default Domain Policy** (or another group policy applied to all systems that will access an NPS server on a group-by-group basis). To configure this:
31+
32+
1. On the Domain Controller, open the **Group Policy** snap-in.
33+
2. Navigate to **Computer Configuration > Policies > Windows Settings > Security Settings > Public Key Policies** and enable the **Certificate Services - Certificate Enrollment Policy**.
34+
35+
## Instructions
36+
37+
### Generate Certificate
38+
39+
> **NOTE:** If you already have a certificate to install, you can skip to the **Adding the Certificate to Each SbPAM Proxy Server** section below.
40+
41+
1. Open **Certification Authority**, open your CA, right-click **Certificate Templates**, and click **Manage**.
42+
![Certification Authority console with Certificate Templates context menu open](./images/servlet_image_ebb3b2e4c66a.png)
43+
44+
2. In the **Certificate Templates Console**, right-click **Workstation Authentication**, and click **Duplicate Template**.
45+
![Certificate Templates Console with Duplicate Template option highlighted](./images/servlet_image_e3eecaa55357.png)
46+
47+
3. On the **General** tab, change the name to **Client-Server Authentication** and enable the **Publish certificate in Active Directory** checkbox.
48+
![General tab of template properties with name and publish option highlighted](./images/servlet_image_35245db9daa9.png)
49+
50+
4. On the **Subject Name** tab, enable the **Supply in the request** radio button.
51+
![Subject Name tab with Supply in the request option selected](./images/servlet_image_2b1a501d40fd.png)
52+
53+
5. On the **Extensions** tab, select **Application Policies** and click **Edit**. Click **Add**, then select **Server Authentication**. Click **OK** until you return to the **Properties of New Template** dialog.
54+
![Extensions tab with Application Policies and Server Authentication highlighted](./images/servlet_image_9ccee298858e.png)
55+
56+
6. On the **Security** tab, select **Domain Computers** and enable the checkbox to allow **Autoenroll**. Click **OK** and then close the Certificate Templates Console.
57+
![Security tab with Domain Computers and Autoenroll option checked](./images/servlet_image_d2bd2889a956.png)
58+
59+
7. Back in **Certification Authority**, right-click **Certificate Templates**, hover over **New**, and click **Certificate Template to Issue**.
60+
![Certification Authority with Certificate Template to Issue option highlighted](./images/servlet_image_4e7a38bb30d6.png)
61+
62+
8. Select **Client-Server Authentication** and click **OK**.
63+
![Certificate Template selection dialog with Client-Server Authentication selected](./images/servlet_image_d8afec47d2b9.png)
64+
65+
9. On the desktop, create a text file named **request.inf** with the following content (replace the **red** text with your server certificate name):
66+
67+
```plaintext
68+
[Version]
69+
Signature="$Windows NT$"
70+
[NewRequest]
71+
Subject = "CN=**sbpam-3.sblab.local**"
72+
KeySpec = 1
73+
KeyLength = 2048
74+
Exportable = TRUE
75+
MachineKeySet = FALSE
76+
SMIME = False
77+
PrivateKeyArchive = FALSE
78+
UserProtected = FALSE
79+
UseExistingKeySet = FALSE
80+
ProviderName = "Microsoft RSA SChannel Cryptographic Provider"
81+
ProviderType = 12
82+
RequestType = PKCS10
83+
KeyUsage = 0xa0
84+
HashAlgorithm = SHA256
85+
[Extensions]
86+
2.5.29.17 = "{text}"
87+
_continue_ = "dns=**sbpam-3.sblab.local**&"
88+
[EnhancedKeyUsageExtension]
89+
OID=1.3.6.1.5.5.7.3.1
90+
```
91+
92+
10. Open Command Prompt as Administrator, change directory to the Desktop (or the location of your **request.inf** file), and run:
93+
94+
```plaintext
95+
certreq -new request.inf rdp.csr
96+
```
97+
98+
![Command Prompt showing certreq command execution](./images/servlet_image_117381e3f99f.png)
99+
100+
11. To sign the certificate request, use your preferred signing mechanism. The following example uses Active Directory Certificate Services (`https://<servername>/certsrv`).
101+
![Certificate Services web enrollment home page](./images/servlet_image_c706e5610294.png) ![Certificate Services advanced certificate request page](./images/servlet_image_0f3e849ec385.png)
102+
103+
Click **Request a certificate**, then click **advanced certificate request**.
104+
105+
12. Open the saved certificate signing request (**rdp.csr**) from the previous step in Notepad. Copy the certificate request into the **Saved Request** field. Select **Client-Server Authentication** from the **Certificate Template** dropdown. Click **Submit**.
106+
![Certificate request submission form with fields filled](./images/servlet_image_21d63c042bef.png)
107+
108+
Leave other settings at default values, and click **Submit**.
109+
110+
13. Select **DER encoded** and click **Download certificate**.
111+
![Certificate download page with DER encoded option selected](./images/servlet_image_ff7ee6960cb2.png)
112+
113+
14. Open the downloaded certificate and select **Install Certificate**. Proceed with all default values and complete the wizard.
114+
![Certificate installation wizard with default options](./images/servlet_image_9751657fe7cd.png)
115+
116+
15. To export the certificate, view certificates for the current user by launching **certmgr.msc** using the Windows **Run** menu.
117+
![Windows Run dialog with certmgr.msc entered](./images/servlet_image_f5c0eb62aa44.png)
118+
119+
Right-click the installed certificate (the certificate using the **Client-Server Authentication** template) and click **Export...**.
120+
![Certificate export context menu](./images/servlet_image_4f237c8e6acb.png)
121+
122+
16. In the **Certificate Export Wizard**, change the **Export Private Key** option to **Yes, export the private key**.
123+
![Certificate Export Wizard with Export Private Key option selected](./images/servlet_image_9a7649f21943.png)
124+
125+
17. For **Export File Format**, select **Personal Information Exchange - PKCS #12 (.PFX)**. Select the following checkboxes:
126+
127+
- Include all certificates in the certification path if possible
128+
- Enable certificate privacy
129+
130+
![Export File Format options with PKCS #12 and checkboxes selected](./images/servlet_image_491abdc2366b.png)
131+
132+
18. For **Security**, enter a password of your choosing and select the AES256-SHA256 encryption option (3DES is no longer recommended by NIST).
133+
134+
> **IMPORTANT:** For **File to Export**, the file name **must** be **rdp.pfx**. If it is named anything else, importing the .pfx file on each proxy server will not work.
135+
![Export dialog with rdp.pfx file name entered](./images/servlet_image_808a1a23eec9.png)
136+
137+
19. This certificate can now be imported to each SbPAM Proxy Server.
138+
139+
### Adding the Certificate to Each SbPAM Proxy Server
140+
141+
1. Copy **rdp.pfx** (from the previous steps) to each SbPAM Proxy Server.
142+
143+
2. On each SbPAM Proxy Server, run the following command via an elevated **Command Prompt**, and enter the certificate's password when prompted.
144+
145+
> **IMPORTANT:** The path to **sbpam-proxy.exe** may be different depending on the install path you selected when installing SbPAM and/or distributed proxy services.
146+
147+
```plaintext
148+
"C:\Program Files\Stealthbits\PAM\ProxyService\sbpam-proxy.exe" ca import -p [PATH]\rdp.pfx
149+
```
150+
151+
![Command Prompt showing sbpam-proxy.exe ca import command](./images/servlet_image_07c7409683d2.png)
152+
153+
3. The new certificate has now been imported to an SbPAM Proxy Server. Repeat this process for all SbPAM Proxy Servers if using more than one. (The default installation of SbPAM uses one proxy service on the SbPAM server itself; however, additional proxy services can be distributed.)
Lines changed: 100 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,100 @@
1+
---
2+
description: >-
3+
This article provides step-by-step instructions to verify the permissions of the account used in Netwrix Enterprise Auditor for the AD_DomainControllers job.
4+
keywords:
5+
- Active Directory
6+
- Netwrix Enterprise Auditor
7+
- permissions
8+
sidebar_label: Confirm Permissions for AD Domain Controllers
9+
tags: []
10+
title: "How to Confirm Permissions for Active Directory > 5. Domains > 0.Collection > AD_DomainControllers"
11+
knowledge_article_id: kA0Qk0000001hNtKAI
12+
products:
13+
- onesecure
14+
---
15+
16+
# How to Confirm Permissions for Active Directory > 5. Domains > 0.Collection > AD_DomainControllers
17+
18+
## Question
19+
20+
How can you verify if the account used in Netwrix Enterprise Auditor (NEA) for this job has the correct access?
21+
22+
## Answer
23+
24+
The AD_DomainControllers job for the NEA Active Directory module uses the following permissions for a least privilege model:
25+
26+
- [Read access to CN=Servers, %SITEDN% and its children](#testcnsiteandchild)
27+
- [Read access to %PARTITIONDNS% and its children](#testpartandchild)
28+
- [Read access to %SCHEMADN%](#testschem)
29+
- [Read access to %SITESDN% and its children](#testsiteandchild)
30+
31+
### General Steps to Start with `ldp.exe`
32+
33+
1. Launch **`ldp.exe`**.
34+
- Press **`Win + R`**, type **`ldp.exe`**, and hit **`Enter`**.
35+
2. Connect to a **Domain Controller**.
36+
- Navigate to **Connection > Connect**.
37+
- Enter the Domain Controller name used by the **AD_DomainControllers job** and port (default is `389` or `636` for LDAPS).
38+
- Click **OK**.
39+
3. Bind Using the **User Account**.
40+
- Go to **Connection > Bind**.
41+
- Enter the **credentials** for the **user account** whose access you want to test.
42+
- Click **OK**.
43+
44+
### Testing Read Access to CN=Servers, %SITEDN% and Its Children
45+
46+
1. Navigate to **`CN=Servers,%SITEDN%`**.
47+
- Click **View > Tree**.
48+
- Enter the Base DN:
49+
```
50+
CN=Servers,CN=<SiteName>,CN=Sites,CN=Configuration,DC=<DomainComponent>,DC=<DomainComponent>
51+
```
52+
- Replace **`<SiteName>`** with the site name (e.g., `Default-First-Site-Name`).
53+
- If unsure, run **`nltest /dsgetsite`** from AdminPS on the DC to get the SiteName.
54+
- Replace **`<DomainComponent>`** with your domain components (e.g., `example,DC=com`).
55+
- Click **OK**.
56+
2. Verify **Access**.
57+
- Expand **`CN=Servers`** and check if you can browse and view its children.
58+
- If successful, then the user has **Read access**.
59+
60+
### Testing Read Access to %PARTITIONDNS% and Its Children
61+
62+
1. Navigate to the **Partition DN**.
63+
- Click **View > Tree**.
64+
- Enter the Base DN:
65+
```
66+
DC=<DomainComponent>,DC=<DomainComponent>
67+
```
68+
- Use your domain's **distinguished name** (e.g., `DC=example,DC=com`).
69+
- Click **OK**.
70+
2. Verify **Access**.
71+
- Expand the **domain node** and check if you can view objects and attributes within it.
72+
- If you can browse the structure, then the user has **Read access**.
73+
74+
### Testing Read Access to %SCHEMADN%
75+
76+
1. Navigate to the **Schema DN**.
77+
- Click **View > Tree**.
78+
- Enter the Base DN:
79+
```
80+
CN=Schema,CN=Configuration,DC=<DomainComponent>,DC=<DomainComponent>
81+
```
82+
- Replace **`<DomainComponent>`** with your domain components.
83+
- Click **OK**.
84+
2. Verify **Access**.
85+
- Expand **`CN=Schema`** and check if you can view its objects and attributes.
86+
- If successful, then the user has **Read access** to the schema.
87+
88+
### Testing Read Access to %SITESDN% and Its Children
89+
90+
1. Navigate to the **Sites DN**.
91+
- Click **View > Tree**.
92+
- Enter the Base DN:
93+
```
94+
CN=Sites,CN=Configuration,DC=<DomainComponent>,DC=<DomainComponent>
95+
```
96+
- Replace **`<DomainComponent>`** with your **domain components**.
97+
- Click **OK**.
98+
2. Verify **Access**.
99+
- Expand **`CN=Sites`** and check if you can browse through the sites and view their child objects.
100+
- If successful, then the user has **Read access** to the sites.
10.6 KB
Loading
46 KB
Loading
16.8 KB
Loading
53 KB
Loading
168 KB
Loading
26.5 KB
Loading
39.6 KB
Loading

0 commit comments

Comments
 (0)