--- a/server/test/unittest_ldapuser.py Fri Feb 11 13:23:09 2011 +0100
+++ b/server/test/unittest_ldapuser.py Fri Feb 11 13:38:40 2011 +0100
@@ -88,6 +88,10 @@
global slapd_process, CONFIG
basedir = join(config.apphome, "ldapdb")
slapdconf = join(config.apphome, "slapd.conf")
+ confin = file(join(config.apphome, "slapd.conf.in")).read()
+ confstream = file(slapdconf, 'w')
+ confstream.write(confin % {'apphome': config.apphome})
+ confstream.close()
if not exists(basedir):
os.makedirs(basedir)
# fill ldap server with some data