Skip to main content
Version: 11 - TBD

ConnectorTypeLDAP

class connector_types.connector_type_ldap.ConnectorTypeLDAP

Call a LDAP service.

Input Schema

  • schema_version

    Type: string

  • authentication

    Type: anyOf

  • host

    The remote hostname or IP address.

    Type: string

  • port

    Type: anyOf

  • tls

    If to connect using TLS/SSL.

    Type: anyOf

  • mode

    Type: anyOf

  • encoding

    The encoding to use when binary data is returned by the server.

    Type: string

    Default: utf-8

  • ignore_decoding_errors

    If set, decoding errors will be ignored.

    Binary data which cannot be decoded into strings will be returned as bytes:base64:<base64-string>.

    Type: boolean

    Default: True

Output Schema

  • result

    Data

  • response

    Data

Example

import flow_api

def handler(system: flow_api.System, this: flow_api.Execution, inputs: dict):
this.connect(
connector_type='LDAP',
authentication={
'authentication_method': 'username_password',
'username': 'cn=user,dc=example,dc=com',
'password': '...',
},
host='...',
port={
'port_mode': 'service_name',
'service_name': 'ldaps',
},
tls={
'tls_mode': 'use_tls_ssl',
'verify_ssl': True,
'check_hostname': True,
'server_ca': '...',
'client_cert': '...',
'client_key': '...',
},
mode={
'mode_name': 'search',
'search_base': 'dc=example,dc=com',
'search_filter': '(objectclass=*)',
'attributes': '*',
'include_raw_results': False,
},
)
this.log(result=result)
return this.success('all done')