diff MoinMoin/config/multiconfig.py @ 3097:a94959a2aae7

Some python-ldap packages may not be built with TLS support. Let's make sure ldap.TLS_AVAIL exists before we try to use it. Add a configuration directive to only do one bind to the LDAP server. This is useful if you bind as the user the first time. In my case I was unable to bind as a user to the DN that contained the users' email, givenname, etc. fields.
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Sat, 23 Feb 2008 02:10:14 +0100
parents cde8093bbb01
children c6e39279f83b
line wrap: on
line diff
--- a/MoinMoin/config/multiconfig.py	Sat Feb 23 01:52:53 2008 +0100
+++ b/MoinMoin/config/multiconfig.py	Sat Feb 23 02:10:14 2008 +0100
@@ -386,6 +386,9 @@
     ldap_tls_keyfile = ''
     ldap_tls_require_cert = 0 # 0 == ldap.OPT_X_TLS_NEVER (needed for self-signed certs)
 
+    ldap_bindonce = False # set to True to only do one bind.  Useful if
+                          # configured to bind as the user on the first attempt
+
     log_reverse_dns_lookups = True  # if we do reverse dns lookups for logging hostnames
                                     # instead of just IPs
     log_timing = False              # update <data_dir>/timing.log?