Skip to content

Commit 2eeab2f

Browse files
authored
DOCSP-15178 SELinux Enterprise Policies (#5026) (#5081)
* DOCSP-15178 SELinux Enterprise Policies * * * remove kmip
1 parent 230d0d2 commit 2eeab2f

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

source/core/security-ldap.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -295,6 +295,8 @@ configuration file:
295295
- **NO**, unless client authenticate using usernames that require
296296
transformation.
297297

298+
.. _security-ldap-connect-saslauthd:
299+
298300
LDAP Authentication via ``saslauthd``
299301
-------------------------------------
300302

source/includes/fact-selinux-redhat-with-policy.rst

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,19 @@ MongoDB installations that:
55
- Use default configuration settings.
66
- Run on RHEL7 or RHEL8.
77

8+
For MongoDB Enterprise installations that use :abbr:`LDAP (Lightweight Directory
9+
Access Protocol)` authentication, the following additional SELinux policies must
10+
be in place:
11+
12+
- For deployments that use :ref:`LDAP authentication via OS libraries
13+
<security-ldap-connect-native>`, MongoDB must have access to the
14+
``tcontext=system_u:object_r:ldap_port_t:s0`` LDAP ports. You can enable
15+
access by running ``setsebool -P authlogin_nsswitch_use_ldap 1``.
16+
17+
- For deployments that use :ref:`LDAP authentication via saslauthd
18+
<security-ldap-connect-saslauthd>`, you must enable cluster mode by running
19+
``sudo setsebool -P daemons_enable_cluster_mode 1``.
20+
821
If your installation does not meet these requirements, refer to the
922
:ref:`SELinux Instructions
1023
<install-enterprise-tarball-rhel-configure-selinux>` for ``.tgz``
@@ -15,7 +28,7 @@ packages.
1528
If your MongoDB deployment uses custom settings for any of the
1629
following:
1730

18-
- :doc:`MongoDB connection ports </reference/default-mongodb-port>`
31+
- :ref:`MongoDB connection ports <default-mongodb-port>`
1932
- :setting:`~storage.dbPath`
2033
- :setting:`systemLog.path`
2134
- :setting:`~processManagement.pidFilePath`

0 commit comments

Comments
 (0)