|
| 1 | +from typing import Any |
| 2 | +from ldap import __version__ as __version__ |
| 3 | + |
| 4 | +SEARCH_RESULT_TYPES: set[int] |
| 5 | +ENTRY_RESULT_TYPES: set[int] |
| 6 | + |
| 7 | +class WrongResultType(Exception): |
| 8 | + |
| 9 | + receivedResultType: Any |
| 10 | + expectedResultTypes: Any |
| 11 | + def __init__(self, *args: Any, **kwargs: Any) -> None: ... |
| 12 | + |
| 13 | +class AsyncSearchHandler: |
| 14 | + |
| 15 | + beginResultsDropped: int |
| 16 | + endResultBreak: int |
| 17 | + def __init__(self, l: Any) -> None: ... |
| 18 | + def startSearch( |
| 19 | + self, |
| 20 | + searchRoot: Any, |
| 21 | + searchScope: Any, |
| 22 | + filterStr: Any, |
| 23 | + attrList: Any = ..., |
| 24 | + attrsOnly: int = 0, |
| 25 | + timeout: int = -1, |
| 26 | + sizelimit: int = 0, |
| 27 | + serverctrls: Any = ..., |
| 28 | + clientctrls: Any = ..., |
| 29 | + ) -> None: ... |
| 30 | + def preProcessing(self) -> None: ... |
| 31 | + def afterFirstResult(self) -> None: ... |
| 32 | + def postProcessing(self) -> None: ... |
| 33 | + def processResults(self, ignoreResultsNumber: int = 0, processResultsCount: int = 0, timeout: int = -1) -> bool: ... |
| 34 | + |
| 35 | +class List(AsyncSearchHandler): |
| 36 | + |
| 37 | + allResults: list[Any] |
| 38 | + def __init__(self, l: Any) -> None: ... |
| 39 | + |
| 40 | +class Dict(AsyncSearchHandler): |
| 41 | + |
| 42 | + allEntries: dict[Any, Any] |
| 43 | + def __init__(self, l: Any) -> None: ... |
| 44 | + |
| 45 | +class IndexedDict(Dict): |
| 46 | + |
| 47 | + indexed_attrs: Any |
| 48 | + index: Any |
| 49 | + def __init__(self, l: Any, indexed_attrs: Any = ...) -> None: ... |
| 50 | + |
| 51 | +class FileWriter(AsyncSearchHandler): |
| 52 | + |
| 53 | + headerStr: str |
| 54 | + footerStr: str |
| 55 | + def __init__(self, l: Any, f: Any, headerStr: str = "", footerStr: str = "") -> None: ... |
| 56 | + def preProcessing(self) -> None: ... |
| 57 | + def postProcessing(self) -> None: ... |
| 58 | + |
| 59 | +class LDIFWriter(FileWriter): |
| 60 | + def __init__(self, l: Any, writer_obj: Any, headerStr: str = "", footerStr: str = "") -> None: ... |
0 commit comments