server/test/unittest_ldapuser.py
branchstable
changeset 6985 dda970c8a315
parent 6888 c02e5ba43366
child 6986 18343456ee49
--- 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