|
9 |
# |
9 |
# |
10 |
|
10 |
|
11 |
@!@ |
11 |
@!@ |
|
|
12 |
import re |
13 |
|
12 |
if baseConfig['ldap/database/type'] == "bdb": |
14 |
if baseConfig['ldap/database/type'] == "bdb": |
13 |
if baseConfig.has_key('ldap/database/bdb/set_cachesize') and baseConfig['ldap/database/bdb/set_cachesize']: |
15 |
if baseConfig.has_key('ldap/database/bdb/set_cachesize') and baseConfig['ldap/database/bdb/set_cachesize']: |
14 |
print 'set_cachesize %s'%baseConfig['ldap/database/bdb/set_cachesize'] |
16 |
print 'set_cachesize %s'%baseConfig['ldap/database/bdb/set_cachesize'] |
|
26 |
print 'set_lg_max 1048576' |
28 |
print 'set_lg_max 1048576' |
27 |
|
29 |
|
28 |
if baseConfig.has_key('ldap/database/bdb/db_config_options') and baseConfig['ldap/database/bdb/db_config_options']: |
30 |
if baseConfig.has_key('ldap/database/bdb/db_config_options') and baseConfig['ldap/database/bdb/db_config_options']: |
29 |
for option in baseConfig['ldap/database/bdb/db_config_options'].split(','): |
31 |
for option in re.split(r"[ ]*,[ ]*",baseConfig['ldap/database/bdb/db_config_options']): |
30 |
if baseConfig.has_key('ldap/database/bdb/%s'%option) and baseConfig['ldap/database/bdb/%s'%option]: |
32 |
if baseConfig.has_key('ldap/database/bdb/%s'%option) and baseConfig['ldap/database/bdb/%s'%option]: |
31 |
print '%s %s'%(option,baseConfig['ldap/database/bdb/%s'%option]) |
33 |
print '%s %s'%(option,baseConfig['ldap/database/bdb/%s'%option]) |
32 |
@!@ |
34 |
@!@ |