@@ -538,14 +538,17 @@ directive: setting
538
538
optional : true
539
539
description : |
540
540
Specifies the authentication mechanism that your MongoDB deployment
541
- uses. Valid values are ``SCRAM`` and ``X509 ``.
541
+ uses. Valid values are ``SCRAM``, ``X509``, and ``LDAP ``.
542
542
543
- To enable :ref:`X.509 internal cluster authentication
544
- <x509-internal-authentication>` for the |com| project, set this value
545
- to ``["X509"]`` and specify the following settings:
543
+ .. admonition:: X.509 Internal Cluster Authentication
544
+ :class: note
546
545
547
- - :setting:`spec.security.authentication.internalCluster` ``: "X509"``
548
- - :setting:`spec.security.tls.enabled` ``: true``
546
+ To enable :ref:`X.509 internal cluster authentication
547
+ <x509-internal-authentication>` for the |com| project, set this
548
+ value to ``["X509"]`` and specify the following settings:
549
+
550
+ - :setting:`spec.security.authentication.internalCluster` ``: "X509"``
551
+ - :setting:`spec.security.tls.enabled` ``: true``
549
552
550
553
---
551
554
program : _shared
@@ -574,6 +577,107 @@ description: |
574
577
To manage database users directly through the |mongod| or |mongos|, set to ``true``.
575
578
---
576
579
program : _shared
580
+ name : spec.security.authentication.ldap
581
+ type : collection
582
+ directive : setting
583
+ optional : true
584
+ description : |
585
+ *Required for LDAP authentication.*
586
+
587
+ Configures |ldap| authentication for the |com| project. To enable
588
+ |ldap| authentication, set
589
+ :setting:`spec.security.authentication.modes` to ``["LDAP"]``.
590
+ ---
591
+ program : _shared
592
+ name : spec.security.authentication.ldap.servers
593
+ type : string
594
+ directive : setting
595
+ description : |
596
+ *Required for LDAP authentication.*
597
+
598
+ Hostname and port of an |ldap| server in the format
599
+ ``<hostname>:<port>``.
600
+
601
+ To specify multiple |ldap| servers, use a
602
+ comma-separated list. For example, specify
603
+ ``"<hostname1>:<port1>,<hostname2>:<port2>"``.
604
+ ---
605
+ program : _shared
606
+ name : spec.security.authentication.ldap.transportSecurity
607
+ type : string
608
+ directive : setting
609
+ description : |
610
+ *Required for LDAP authentication.*
611
+
612
+ Specifies whether the |ldap| server accepts |tls|.
613
+
614
+ If the |ldap| server accepts |tls|, set to ``tls``. If the |ldap|
615
+ server doesn't accept |tls|, leave this value blank.
616
+ ---
617
+ program : _shared
618
+ name : spec.security.authentication.ldap.caConfigMapRef
619
+ type : collection
620
+ directive : setting
621
+ description : |
622
+ *Required for LDAP authentication with TLS.*
623
+
624
+ |k8s-configmap| that contains a |certauth| which validates the |ldap|
625
+ server's |tls| certificate.
626
+ ---
627
+ program : _shared
628
+ name : spec.security.authentication.ldap.caConfigMapRef.name
629
+ type : string
630
+ directive : setting
631
+ description : |
632
+ *Required for LDAP authentication with TLS.*
633
+
634
+ Name of the |k8s-configmap| that contains a |certauth| which validates
635
+ the |ldap| server's |tls| certificate.
636
+ ---
637
+ program : _shared
638
+ name : spec.security.authentication.ldap.caConfigMapRef.key
639
+ type : string
640
+ directive : setting
641
+ description : |
642
+ *Required for LDAP authentication with TLS.*
643
+
644
+ Field name that stores the |certauth| which validates the |ldap|
645
+ server's |tls| certificate.
646
+ ---
647
+ program : _shared
648
+ name : spec.security.authentication.ldap.bindQueryUser
649
+ type : string
650
+ directive : setting
651
+ description : |
652
+ *Required for LDAP authentication.*
653
+
654
+ |ldap| Distinguished Name to which MongoDB binds when connecting to
655
+ the |ldap| server.
656
+ ---
657
+ program : _shared
658
+ name : spec.security.authentication.ldap.bindQueryPasswordSecretRef
659
+ type : collection
660
+ directive : setting
661
+ description : |
662
+ *Required for LDAP authentication.*
663
+
664
+ Specifies the |k8s-secret| that contains the password with which
665
+ MongoDB binds when connecting to the |ldap| server.
666
+ ---
667
+ program : _shared
668
+ name : spec.security.authentication.ldap.bindQueryPasswordSecretRef.name
669
+ type : string
670
+ directive : setting
671
+ description : |
672
+ *Required for LDAP authentication.*
673
+
674
+ Name of the |k8s-secret| that contains the password with which MongoDB
675
+ binds when connecting to the |ldap| server.
676
+
677
+ The |k8s-secret| must contain only one ``password`` field which stores
678
+ the password.
679
+ ---
680
+ program : _shared
577
681
name : spec.additionalMongodConfig.net.ssl.mode
578
682
type : string
579
683
directive : setting
0 commit comments