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

Method ValidateFlags

be/src/util/ldap-search-bind.cc:52–66  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

50const string DEFAULT_GROUP_FILTER = "(&(objectClass=group)(member={0}))";
51
52Status LdapSearchBind::ValidateFlags() {
53 RETURN_IF_ERROR(ImpalaLdap::ValidateFlags());
54
55 if (FLAGS_ldap_user_search_basedn.empty()) {
56 return Status("LDAP Search bind authentication has been configured, "
57 "but the --ldap_user_search_basedn is empty, please configure it.");
58 }
59 if (FLAGS_ldap_user_filter.empty()) {
60 LOG(WARNING) << "LDAP Search bind authentication has been configured, but the "
61 "--ldap_user_filter is empty, the default filter will be used: "
62 << DEFAULT_USER_FILTER;
63 }
64
65 return Status::OK();
66}
67
68Status LdapSearchBind::Init(const string& user_filter, const string& group_filter) {
69 RETURN_IF_ERROR(ImpalaLdap::Init(user_filter, group_filter));

Callers

nothing calls this directly

Calls 4

OKFunction · 0.85
StatusClass · 0.70
ValidateFlagsFunction · 0.50
emptyMethod · 0.45

Tested by

no test coverage detected