'Appends slapd.conf configuration lines to cfg.
Also re-initializes any backing storage.
Feel free to subclass and override this method.'

def configure(self, cfg):

    cfg.append(('include    ' + quote(self.PATH_SCHEMA_CORE)))
    cfg.append('allow    bind_v2')
    ldif_dir = mkdirs(os.path.join(self.get_tmpdir(), 'ldif-data'))
    delete_directory_content(ldif_dir)
    cfg.append('database    ldif')
    cfg.append(('directory    ' + quote(ldif_dir)))
    cfg.append(('suffix    ' + quote(self.get_dn_suffix())))
    cfg.append(('rootdn    ' + quote(self.get_root_dn())))
    cfg.append(('rootpw    ' + quote(self.get_root_password())))
