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

Function GetInternalKerberosPrincipal

be/src/util/auth-util.cc:108–115  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

106}
107
108Status GetInternalKerberosPrincipal(string* out_principal) {
109 DCHECK(IsKerberosEnabled());
110
111 *out_principal = !FLAGS_be_principal.empty() ? FLAGS_be_principal : FLAGS_principal;
112 DCHECK(!out_principal->empty());
113 RETURN_IF_ERROR(ReplacePrincipalHostFormat(out_principal));
114 return Status::OK();
115}
116
117Status ParseKerberosPrincipal(const string& principal, string* service_name,
118 string* hostname, string* realm) {

Callers 2

InitMethod · 0.85
InitMethod · 0.85

Calls 4

IsKerberosEnabledFunction · 0.85
OKFunction · 0.85
emptyMethod · 0.45

Tested by

no test coverage detected