on_result Event

Fired for every server response, except search responses.

Syntax

class LDAPResultEventParams(object):
  @property
  def message_id() -> int: ...
  @property
  def dn() -> str: ...
  @property
  def result_code() -> int: ...
  @property
  def result_description() -> str: ...

# In class LDAP:
@property
def on_result() -> Callable[[LDAPResultEventParams], None]: ...
@on_result.setter
def on_result(event_hook: Callable[[LDAPResultEventParams], None]) -> None: ...

Remarks

The MessageId parameter identifies the corresponding request. ResultCode and ResultDescription show whether the operation was successful (on a successful operation, the ResultCode is 0). For a full list of possible result codes, see the result_code property.

Copyright (c) 2022 /n software inc. - All rights reserved.
IPWorks 2020 Python Edition - Version 20.0 [Build 8307]