Package io.ktor.auth.ldap
Functions
Link copied to clipboard
fun ldapAuthenticate(credential: UserPasswordCredential, ldapServerURL: String, userDNFormat: String): UserIdPrincipal?
Content copied to clipboard
Do LDAP authentication and verify UserPasswordCredential by userDNFormat and construct UserIdPrincipal
fun <K : Credential, P : Any> ldapAuthenticate(credential: K, ldapServerURL: String, ldapEnvironmentBuilder: (MutableMap<String, Any?>) -> Unit = {}, doVerify: InitialDirContext.(K) -> P?): P?
Content copied to clipboard
Do LDAP authentication and verify credential by doVerify function
fun ldapAuthenticate(credential: UserPasswordCredential, ldapServerURL: String, userDNFormat: String, validate: InitialDirContext.(UserPasswordCredential) -> UserIdPrincipal?): UserIdPrincipal?
Content copied to clipboard
Do LDAP authentication and verify UserPasswordCredential by validate function and construct UserIdPrincipal