ldapAuthenticate

fun <K : Any, 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 <P : Any> ldapAuthenticate(credential: UserPasswordCredential, ldapServerURL: String, userDNFormat: String, validate: InitialDirContext.(UserPasswordCredential) -> P?): P?
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.