MCPcopy Create free account
hub / github.com/apache/impala / SaslLdapCheckPass

Function SaslLdapCheckPass

be/src/rpc/authentication.cc:399–402  ·  view source on GitHub ↗

Wrapper around the function we use to check passwords with LDAP which has the function signature required to work with SASL. conn: The Sasl connection struct, which we ignore context: Ignored; always NULL user: The username to authenticate pass: The password to use passlen: The length of pass propctx: Ignored - properties requested Return: SASL_OK on success, SASL_FAIL otherwise

Source from the content-addressed store, hash-verified

397// propctx: Ignored - properties requested
398// Return: SASL_OK on success, SASL_FAIL otherwise
399int SaslLdapCheckPass(sasl_conn_t* conn, void* context, const char* user,
400 const char* pass, unsigned passlen, struct propctx* propctx) {
401 return DoLdapCheck(user, pass, passlen) ? SASL_OK : SASL_FAIL;
402}
403
404// Sasl wants a way to ask us about some options, this function provides
405// answers. Currently we only support telling Sasl about the log_level; other

Callers

nothing calls this directly

Calls 1

DoLdapCheckFunction · 0.85

Tested by

no test coverage detected