ldapAuthenticate

fun <K : Credential, P : Any> ldapAuthenticate(credential: K, ldapServerURL: String, ldapEnvironmentBuilder: (MutableMap<String, Any?>) -> Unit = {}, doVerify: InitialDirContext.(K) -> P?): P?

Provides the ability to authenticates an LDAP user. This function accepts a credential and validates it against a specified LDAP server.

To learn more about LDAP authentication in Ktor, see LDAP.


fun ldapAuthenticate(credential: UserPasswordCredential, ldapServerURL: String, userDNFormat: String): UserIdPrincipal?

Provides the ability to authenticates an LDAP user. This function accepts UserPasswordCredential and validates it against a specified LDAP server.

To learn more about LDAP authentication in Ktor, see LDAP.