summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorAlexander Sulfrian <alexander.sulfrian@fu-berlin.de>2016-07-15 17:31:23 +0200
committerAlexander Sulfrian <alexander.sulfrian@fu-berlin.de>2017-03-21 17:26:08 +0100
commitb914052d7c33cc45012f693763189aa7db7a78a2 (patch)
tree9229eb01cf10164b5d415976d261727840948179 /doc
parent5f2daf138aab3a993c182797dc3ca2049f6bd7af (diff)
downloadbcfg2-b914052d7c33cc45012f693763189aa7db7a78a2.tar.gz
bcfg2-b914052d7c33cc45012f693763189aa7db7a78a2.tar.bz2
bcfg2-b914052d7c33cc45012f693763189aa7db7a78a2.zip
Server/Plugins/Ldap: Support arbitrary ldap options
You can now set arbitrary ldap option for the connection by specifying a dict with the key and the value. You should use the constants from python-ldap.
Diffstat (limited to 'doc')
-rw-r--r--doc/server/plugins/grouping/ldap.txt11
1 files changed, 11 insertions, 0 deletions
diff --git a/doc/server/plugins/grouping/ldap.txt b/doc/server/plugins/grouping/ldap.txt
index f9c25dee9..abbd5e005 100644
--- a/doc/server/plugins/grouping/ldap.txt
+++ b/doc/server/plugins/grouping/ldap.txt
@@ -140,6 +140,17 @@ LdapConnection
LDAP URI of the LDAP server to connect to. This is prefered over
:attr:`LdapConnection.host` and :attr:`LdapConnection.port`.
+ .. note::
+
+ If you are using ldaps you may have to specify additional options
+ for enabling the certificate validation or setting the path for
+ the trusted certificates with :attr:`LdapConnection.options`.
+
+.. attribute:: LdapConnection.options
+
+ Arbitrary options for the LDAP connection. You should specify it
+ as a dict and use the ``OPT_*`` constants from ``python-ldap``.
+
You may pass any of these attributes as keyword arguments when creating the connection object.
LdapQuery