ConnectorTypeLDAP
class connector_types.connector_type_ldap.ConnectorTypeLDAP
Call a LDAP service.
Input Schema
-
schema_version = '10.0'Type:
string -
authenticationType:
anyOfOptions: -
hostThe remote hostname or IP address.
Type:
string -
portType:
anyOfOptions: -
tlsIf to connect using TLS/SSL.
Type:
anyOfOptions: -
modeType:
anyOfOptions: -
encodingThe encoding to use when binary data is returned by the server.
Type:
stringDefault:
utf-8 -
ignore_decoding_errorsIf set, decoding errors will be ignored.
Binary data which cannot be decoded into strings will be returned as
bytes:base64:<base64-string>.Type:
booleanDefault:
True
Output Schema
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')