comparison MoinMoin/config/multiconfig.py @ 2974:bc61a0470fd9

include defaults for ldap auth in multiconfig (default values need review) (port from 1.6)
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Sat, 05 Jan 2008 21:30:45 +0100
parents 4be125bafc8a
children 6fdae05f0eeb
comparison
equal deleted inserted replaced
2973:d9bb94b15702 2974:bc61a0470fd9
326 interwiki_preferred = [] # list of wiki names to show at top of interwiki list 326 interwiki_preferred = [] # list of wiki names to show at top of interwiki list
327 327
328 language_default = 'en' 328 language_default = 'en'
329 language_ignore_browser = False # ignore browser settings, use language_default 329 language_ignore_browser = False # ignore browser settings, use language_default
330 # or user prefs 330 # or user prefs
331
332 # ldap / active directory server URI:
333 ldap_uri = 'ldap://localhost'
334
335 # We can either use some fixed user and password for binding to LDAP.
336 # Be careful if you need a % char in those strings - as they are used as
337 # a format string, you have to write %% to get a single % in the end.
338 #ldap_binddn = 'binduser@example.org' # (AD)
339 #ldap_binddn = 'cn=admin,dc=example,dc=org' # (OpenLDAP)
340 #ldap_bindpw = 'secret'
341 # or we can use the username and password we got from the user:
342 #ldap_binddn = '%(username)s@example.org' # DN we use for first bind (AD)
343 #ldap_bindpw = '%(password)s' # password we use for first bind
344 ldap_binddn = ''
345 ldap_bindpw = ''
346
347 # base DN we use for searching
348 #ldap_base = 'ou=SOMEUNIT,dc=example,dc=org'
349 ldap_base = ''
350
351 # scope of the search we do (2 == ldap.SCOPE_SUBTREE)
352 ldap_scope = 2 # we do not want to import ldap for everybody just for that
353
354 # ldap filter used for searching:
355 #ldap_filter = '(sAMAccountName=%(username)s)' # (AD)
356 ldap_filter = '(uid=%(username)s)' # (OpenLDAP)
357 # you can also do more complex filtering like:
358 # "(&(cn=%(username)s)(memberOf=CN=WikiUsers,OU=Groups,DC=example,DC=org))"
359
360 # some attribute names we use to extract information from LDAP:
361 ldap_givenname_attribute = 'givenName' # ldap attribute we get the first name from
362 ldap_surname_attribute = 'sn' # ldap attribute we get the family name from
363 ldap_aliasname_attribute = 'displayName' # ldap attribute we get the aliasname from
364 ldap_email_attribute = 'mail' # ldap attribute we get the email address from
365 ldap_coding = 'utf-8' # coding used for ldap queries and result values
366 ldap_timeout = 10 # how long we wait for the ldap server [s]
367 ldap_verbose = True # if True, put lots of LDAP debug info into the log
331 368
332 log_reverse_dns_lookups = True # if we do reverse dns lookups for logging hostnames 369 log_reverse_dns_lookups = True # if we do reverse dns lookups for logging hostnames
333 # instead of just IPs 370 # instead of just IPs
334 log_timing = False # update <data_dir>/timing.log? 371 log_timing = False # update <data_dir>/timing.log?
335 372