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

Function DoLdapCheckFilters

be/src/rpc/authentication.cc:360–375  ·  view source on GitHub ↗

Calls into the LDAP utils to check the provided group filters

Source from the content-addressed store, hash-verified

358
359// Calls into the LDAP utils to check the provided group filters
360bool DoLdapCheckFilters(const char* user) {
361 ImpalaLdap* ldap = AuthManager::GetInstance()->GetLdap();
362 ImpalaServer* server = ExecEnv::GetInstance()->impala_server();
363 if (server == nullptr) {
364 LOG(FATAL) << "Invalid config: SASL LDAP is only supported for client connections "
365 << "to an impalad.";
366 }
367 // If the user is an authorized proxy user, we do not yet know the effective user as
368 // it may be set by 'impala.doas.user', in which case we defer checking LDAP filters
369 // until OpenSession(). Otherwise, we prefer to check the filters as easly as
370 // possible, so check them here.
371 if (server->IsAuthorizedProxyUser(user)) {
372 return true;
373 }
374 return ldap->LdapCheckFilters(user);
375}
376
377// Calls into the LDAP utils to check the provided user/pass,
378// and the provided group filters.

Callers 3

DoLdapCheckFunction · 0.85
NegotiateAuthFunction · 0.85

Calls 4

GetLdapMethod · 0.80
IsAuthorizedProxyUserMethod · 0.80
impala_serverMethod · 0.45
LdapCheckFiltersMethod · 0.45

Tested by

no test coverage detected