sssd_test_framework.utils.ldb
Classes
|
LDB Tools wrappper. |
- class sssd_test_framework.utils.ldb.LDBUtils(*args, **kwargs)
Bases:
MultihostUtility[MultihostHost]LDB Tools wrappper.
Find all MultihostUtility objects in the constructor.
- Scope(names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)
Search scope to use.
- search(path: str, basedn: str | None = None, scope: Scope = Scope.SUBTREE, filter: str | None = None, args: list[str] | None = None) dict[str, dict[str, list[str]]]
Run
ldbsearch -H pathcommand and transform the data todictionary.Can be called with additional arguments.
- Parameters:
path (str) – Path to .ldb file.
basedn (str | None) – Base DN which is searched by ldbsearch. Defaults to None.
scope (Scope) – Scope of search. Defaults to Scope.SUBTREE.
filter (str | None) – Filter to be used for searching. Defaults to None.
args (str | None) – Additional arguments. Defaults to None.
- Returns:
Searched data. In format: dict[dn, dict[attribute, list[attrvalue]]].
- Return type:
dict[str, dict[str, list[str]]