parametrized db_dir and rootdn