Opens an LDAPS connection (implicit TLS, port 636) and optionally binds.
Identical to ldapConnect except LdapConnectOptions.tls defaults to 'implicit' and LdapConnectOptions.port defaults to 636.
'implicit'
Connection options; tls and port are defaulted for LDAPS.
tls
port
A ready LdapSession.
If a requested bind is rejected.
If the connection or TLS handshake fails.
1.0.0
await using session = await connect({ hostname: 'ldaps.example.com', bindDN: 'cn=admin,dc=example,dc=com', password: 'secret'}); Copy
await using session = await connect({ hostname: 'ldaps.example.com', bindDN: 'cn=admin,dc=example,dc=com', password: 'secret'});
Opens an LDAPS connection (implicit TLS, port 636) and optionally binds.
Identical to ldapConnect except LdapConnectOptions.tls defaults to
'implicit'and LdapConnectOptions.port defaults to 636.