2
# cfg.py - module for accessing configuration information
4
# Copyright (C) 2010 Arthur de Jong
6
# This library is free software; you can redistribute it and/or
7
# modify it under the terms of the GNU Lesser General Public
8
# License as published by the Free Software Foundation; either
9
# version 2.1 of the License, or (at your option) any later version.
11
# This library is distributed in the hope that it will be useful,
12
# but WITHOUT ANY WARRANTY; without even the implied warranty of
13
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
# Lesser General Public License for more details.
16
# You should have received a copy of the GNU Lesser General Public
17
# License along with this library; if not, write to the Free Software
18
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
23
# these values are defined here
25
# the name of the program
26
program_name = 'pynslcd'
29
# whether the --check option was passed
31
# the number of threads to start
34
# the user id nslcd should be run as
36
# the group id nslcd should be run as
39
# the LDAP server to use
40
# FIXME: support multiple servers and have a fail-over mechanism
41
ldap_uri = 'ldapi:///'
43
# default search scope for searches
44
scope = ldap.SCOPE_SUBTREE
46
# LDAP search bases to search
47
bases = ( 'dc=test, dc=tld', )
49
# the users for which no initgroups() searches should be done
50
nss_initgroups_ignoreusers = []
52
# the DN to use to perform password modifications as root
53
rootpwmoddn = 'cn=admin, dc=test, dc=tld'
56
# FIXME: implement reading configuration from file