MCPcopy Create free account
hub / github.com/Icinga/icinga2 / GetByClientCN

Method GetByClientCN

lib/remote/apiuser.cpp:15–23  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13REGISTER_TYPE(ApiUser);
14
15ApiUser::Ptr ApiUser::GetByClientCN(const String& cn)
16{
17 for (const ApiUser::Ptr& user : ConfigType::GetObjectsByType<ApiUser>()) {
18 if (user->GetClientCN() == cn)
19 return user;
20 }
21
22 return nullptr;
23}
24
25ApiUser::Ptr ApiUser::GetByAuthHeader(const String& auth_header)
26{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected