Nagaraju Goruganti | 997f5e0 | 2018-08-30 03:05:11 -0500 | [diff] [blame] | 1 | #pragma once |
| 2 | |
Nagaraju Goruganti | f1940d9 | 2018-09-18 05:05:50 -0500 | [diff] [blame] | 3 | #include "config.h" |
Patrick Williams | 9638afb | 2021-02-22 17:16:24 -0600 | [diff] [blame] | 4 | |
Ratan Gupta | 7b04c35 | 2019-04-12 21:46:29 +0530 | [diff] [blame] | 5 | #include "ldap_mapper_entry.hpp" |
Patrick Williams | 9638afb | 2021-02-22 17:16:24 -0600 | [diff] [blame] | 6 | |
Nagaraju Goruganti | f1940d9 | 2018-09-18 05:05:50 -0500 | [diff] [blame] | 7 | #include <sdbusplus/bus.hpp> |
| 8 | #include <sdbusplus/server/object.hpp> |
Patrick Williams | 9638afb | 2021-02-22 17:16:24 -0600 | [diff] [blame] | 9 | #include <xyz/openbmc_project/Object/Enable/server.hpp> |
| 10 | #include <xyz/openbmc_project/User/Ldap/Config/server.hpp> |
| 11 | #include <xyz/openbmc_project/User/Ldap/Create/server.hpp> |
| 12 | #include <xyz/openbmc_project/User/PrivilegeMapper/server.hpp> |
Ratan Gupta | 7b04c35 | 2019-04-12 21:46:29 +0530 | [diff] [blame] | 13 | |
Ratan Gupta | 21e88cb | 2019-04-12 17:15:52 +0530 | [diff] [blame] | 14 | #include <filesystem> |
Ratan Gupta | 7b04c35 | 2019-04-12 21:46:29 +0530 | [diff] [blame] | 15 | #include <set> |
| 16 | #include <string> |
Nagaraju Goruganti | 997f5e0 | 2018-08-30 03:05:11 -0500 | [diff] [blame] | 17 | |
| 18 | namespace phosphor |
| 19 | { |
| 20 | namespace ldap |
| 21 | { |
Nagaraju Goruganti | 997f5e0 | 2018-08-30 03:05:11 -0500 | [diff] [blame] | 22 | |
Ratan Gupta | aeaf941 | 2019-02-11 04:41:52 -0600 | [diff] [blame] | 23 | using ConfigIface = sdbusplus::xyz::openbmc_project::User::Ldap::server::Config; |
| 24 | using EnableIface = sdbusplus::xyz::openbmc_project::Object::server::Enable; |
Patrick Williams | b3ef4e1 | 2022-07-22 19:26:55 -0500 | [diff] [blame] | 25 | using CreateIface = sdbusplus::server::object_t< |
Ratan Gupta | aeaf941 | 2019-02-11 04:41:52 -0600 | [diff] [blame] | 26 | sdbusplus::xyz::openbmc_project::User::Ldap::server::Create>; |
Ratan Gupta | 21e88cb | 2019-04-12 17:15:52 +0530 | [diff] [blame] | 27 | namespace fs = std::filesystem; |
Ratan Gupta | 7b04c35 | 2019-04-12 21:46:29 +0530 | [diff] [blame] | 28 | using MapperIface = |
| 29 | sdbusplus::xyz::openbmc_project::User::server::PrivilegeMapper; |
| 30 | |
| 31 | using Ifaces = |
Patrick Williams | b3ef4e1 | 2022-07-22 19:26:55 -0500 | [diff] [blame] | 32 | sdbusplus::server::object_t<ConfigIface, EnableIface, MapperIface>; |
Ratan Gupta | 7b04c35 | 2019-04-12 21:46:29 +0530 | [diff] [blame] | 33 | using ObjectPath = sdbusplus::message::object_path; |
| 34 | |
Ratan Gupta | 22f13f1 | 2019-04-29 15:36:40 +0530 | [diff] [blame] | 35 | namespace sdbusRule = sdbusplus::bus::match::rules; |
| 36 | |
Nagaraju Goruganti | 997f5e0 | 2018-08-30 03:05:11 -0500 | [diff] [blame] | 37 | class ConfigMgr; |
Ratan Gupta | 3a1c274 | 2019-03-20 06:49:42 +0530 | [diff] [blame] | 38 | class MockConfigMgr; |
Nagaraju Goruganti | 997f5e0 | 2018-08-30 03:05:11 -0500 | [diff] [blame] | 39 | |
| 40 | /** @class Config |
| 41 | * @brief Configuration for LDAP. |
| 42 | * @details concrete implementation of xyz.openbmc_project.User.Ldap.Config |
| 43 | * API, in order to provide LDAP configuration. |
| 44 | */ |
Ratan Gupta | aeaf941 | 2019-02-11 04:41:52 -0600 | [diff] [blame] | 45 | class Config : public Ifaces |
Nagaraju Goruganti | 997f5e0 | 2018-08-30 03:05:11 -0500 | [diff] [blame] | 46 | { |
| 47 | public: |
| 48 | Config() = delete; |
| 49 | ~Config() = default; |
| 50 | Config(const Config&) = delete; |
| 51 | Config& operator=(const Config&) = delete; |
Nan Zhou | f3fb77c | 2022-08-29 17:51:59 +0000 | [diff] [blame] | 52 | Config(Config&&) = delete; |
| 53 | Config& operator=(Config&&) = delete; |
Nagaraju Goruganti | 997f5e0 | 2018-08-30 03:05:11 -0500 | [diff] [blame] | 54 | |
| 55 | /** @brief Constructor to put object onto bus at a D-Bus path. |
| 56 | * @param[in] bus - Bus to attach to. |
| 57 | * @param[in] path - The D-Bus object path to attach at. |
| 58 | * @param[in] filePath - LDAP configuration file. |
Nagaraju Goruganti | 3b4d06a | 2018-11-08 03:13:38 -0600 | [diff] [blame] | 59 | * @param[in] caCertFile - LDAP's CA certificate file. |
Ratan Gupta | 22f13f1 | 2019-04-29 15:36:40 +0530 | [diff] [blame] | 60 | * @param[in] certFile - LDAP's client certificate file. |
Nagaraju Goruganti | 997f5e0 | 2018-08-30 03:05:11 -0500 | [diff] [blame] | 61 | * @param[in] secureLDAP - Specifies whether to use SSL or not. |
Patrick Williams | e6500a4 | 2021-05-01 05:58:23 -0500 | [diff] [blame] | 62 | * @param[in] ldapServerURI - LDAP URI of the server. |
| 63 | * @param[in] ldapBindDN - distinguished name with which to bind. |
| 64 | * @param[in] ldapBaseDN - distinguished name to use as search base. |
| 65 | * @param[in] ldapBindDNPassword - credentials with which to bind. |
| 66 | * @param[in] ldapSearchScope - the search scope. |
| 67 | * @param[in] ldapType - Specifies the LDAP server type which can be AD |
Ratan Gupta | aeaf941 | 2019-02-11 04:41:52 -0600 | [diff] [blame] | 68 | * or openLDAP. |
Patrick Williams | e6500a4 | 2021-05-01 05:58:23 -0500 | [diff] [blame] | 69 | * @param[in] ldapServiceEnabled - Specifies whether the service would be |
Ratan Gupta | aeaf941 | 2019-02-11 04:41:52 -0600 | [diff] [blame] | 70 | * enabled or not. |
| 71 | * @param[in] groupNameAttribute - Specifies attribute name that contains |
| 72 | * the name of the Group in the LDAP server. |
| 73 | * @param[in] userNameAttribute - Specifies attribute name that contains |
| 74 | * the username in the LDAP server. |
| 75 | * |
Nagaraju Goruganti | 997f5e0 | 2018-08-30 03:05:11 -0500 | [diff] [blame] | 76 | * @param[in] parent - parent of config object. |
| 77 | */ |
| 78 | |
Patrick Williams | b3ef4e1 | 2022-07-22 19:26:55 -0500 | [diff] [blame] | 79 | Config(sdbusplus::bus_t& bus, const char* path, const char* filePath, |
Ratan Gupta | 22f13f1 | 2019-04-29 15:36:40 +0530 | [diff] [blame] | 80 | const char* caCertFile, const char* certFile, bool secureLDAP, |
Patrick Williams | e6500a4 | 2021-05-01 05:58:23 -0500 | [diff] [blame] | 81 | std::string ldapServerURI, std::string ldapBindDN, |
| 82 | std::string ldapBaseDN, std::string&& ldapBindDNPassword, |
| 83 | ConfigIface::SearchScope ldapSearchScope, ConfigIface::Type ldapType, |
| 84 | bool ldapServiceEnabled, std::string groupNameAttribute, |
Ratan Gupta | aeaf941 | 2019-02-11 04:41:52 -0600 | [diff] [blame] | 85 | std::string userNameAttribute, ConfigMgr& parent); |
Nagaraju Goruganti | 997f5e0 | 2018-08-30 03:05:11 -0500 | [diff] [blame] | 86 | |
Ratan Gupta | 21e88cb | 2019-04-12 17:15:52 +0530 | [diff] [blame] | 87 | /** @brief Constructor to put object onto bus at a D-Bus path. |
| 88 | * @param[in] bus - Bus to attach to. |
| 89 | * @param[in] path - The D-Bus object path to attach at. |
| 90 | * @param[in] filePath - LDAP configuration file. |
Patrick Williams | e6500a4 | 2021-05-01 05:58:23 -0500 | [diff] [blame] | 91 | * @param[in] ldapType - Specifies the LDAP server type which can be AD |
Ratan Gupta | 21e88cb | 2019-04-12 17:15:52 +0530 | [diff] [blame] | 92 | * or openLDAP. |
| 93 | * @param[in] parent - parent of config object. |
| 94 | */ |
Patrick Williams | b3ef4e1 | 2022-07-22 19:26:55 -0500 | [diff] [blame] | 95 | Config(sdbusplus::bus_t& bus, const char* path, const char* filePath, |
Ratan Gupta | ab4fcb4 | 2019-04-29 19:39:51 +0530 | [diff] [blame] | 96 | const char* caCertFile, const char* certFile, |
Patrick Williams | e6500a4 | 2021-05-01 05:58:23 -0500 | [diff] [blame] | 97 | ConfigIface::Type ldapType, ConfigMgr& parent); |
Ratan Gupta | 21e88cb | 2019-04-12 17:15:52 +0530 | [diff] [blame] | 98 | |
Ratan Gupta | aeaf941 | 2019-02-11 04:41:52 -0600 | [diff] [blame] | 99 | using ConfigIface::groupNameAttribute; |
Patrick Williams | e6500a4 | 2021-05-01 05:58:23 -0500 | [diff] [blame] | 100 | using ConfigIface::ldapBaseDN; |
| 101 | using ConfigIface::ldapBindDN; |
| 102 | using ConfigIface::ldapBindDNPassword; |
| 103 | using ConfigIface::ldapSearchScope; |
| 104 | using ConfigIface::ldapServerURI; |
| 105 | using ConfigIface::ldapType; |
Nagaraju Goruganti | 997f5e0 | 2018-08-30 03:05:11 -0500 | [diff] [blame] | 106 | using ConfigIface::setPropertyByName; |
Ratan Gupta | aeaf941 | 2019-02-11 04:41:52 -0600 | [diff] [blame] | 107 | using ConfigIface::userNameAttribute; |
| 108 | using EnableIface::enabled; |
Nagaraju Goruganti | 997f5e0 | 2018-08-30 03:05:11 -0500 | [diff] [blame] | 109 | |
Nagaraju Goruganti | 997f5e0 | 2018-08-30 03:05:11 -0500 | [diff] [blame] | 110 | /** @brief Update the Server URI property. |
Patrick Williams | e6500a4 | 2021-05-01 05:58:23 -0500 | [diff] [blame] | 111 | * @param[in] value - ldapServerURI value to be updated. |
| 112 | * @returns value of changed ldapServerURI. |
Nagaraju Goruganti | 997f5e0 | 2018-08-30 03:05:11 -0500 | [diff] [blame] | 113 | */ |
Patrick Williams | e6500a4 | 2021-05-01 05:58:23 -0500 | [diff] [blame] | 114 | std::string ldapServerURI(std::string value) override; |
Nagaraju Goruganti | 997f5e0 | 2018-08-30 03:05:11 -0500 | [diff] [blame] | 115 | |
| 116 | /** @brief Update the BindDN property. |
Patrick Williams | e6500a4 | 2021-05-01 05:58:23 -0500 | [diff] [blame] | 117 | * @param[in] value - ldapBindDN value to be updated. |
| 118 | * @returns value of changed ldapBindDN. |
Nagaraju Goruganti | 997f5e0 | 2018-08-30 03:05:11 -0500 | [diff] [blame] | 119 | */ |
Patrick Williams | e6500a4 | 2021-05-01 05:58:23 -0500 | [diff] [blame] | 120 | std::string ldapBindDN(std::string value) override; |
Nagaraju Goruganti | 997f5e0 | 2018-08-30 03:05:11 -0500 | [diff] [blame] | 121 | |
| 122 | /** @brief Update the BaseDN property. |
Patrick Williams | e6500a4 | 2021-05-01 05:58:23 -0500 | [diff] [blame] | 123 | * @param[in] value - ldapBaseDN value to be updated. |
| 124 | * @returns value of changed ldapBaseDN. |
Nagaraju Goruganti | 997f5e0 | 2018-08-30 03:05:11 -0500 | [diff] [blame] | 125 | */ |
Patrick Williams | e6500a4 | 2021-05-01 05:58:23 -0500 | [diff] [blame] | 126 | std::string ldapBaseDN(std::string value) override; |
Nagaraju Goruganti | 997f5e0 | 2018-08-30 03:05:11 -0500 | [diff] [blame] | 127 | |
Nagaraju Goruganti | 997f5e0 | 2018-08-30 03:05:11 -0500 | [diff] [blame] | 128 | /** @brief Update the Search scope property. |
Patrick Williams | e6500a4 | 2021-05-01 05:58:23 -0500 | [diff] [blame] | 129 | * @param[in] value - ldapSearchScope value to be updated. |
| 130 | * @returns value of changed ldapSearchScope. |
Nagaraju Goruganti | 997f5e0 | 2018-08-30 03:05:11 -0500 | [diff] [blame] | 131 | */ |
Ratan Gupta | aeaf941 | 2019-02-11 04:41:52 -0600 | [diff] [blame] | 132 | ConfigIface::SearchScope |
Patrick Williams | e6500a4 | 2021-05-01 05:58:23 -0500 | [diff] [blame] | 133 | ldapSearchScope(ConfigIface::SearchScope value) override; |
Nagaraju Goruganti | 997f5e0 | 2018-08-30 03:05:11 -0500 | [diff] [blame] | 134 | |
| 135 | /** @brief Update the LDAP Type property. |
Patrick Williams | e6500a4 | 2021-05-01 05:58:23 -0500 | [diff] [blame] | 136 | * @param[in] value - ldapType value to be updated. |
| 137 | * @returns value of changed ldapType. |
Nagaraju Goruganti | 997f5e0 | 2018-08-30 03:05:11 -0500 | [diff] [blame] | 138 | */ |
Patrick Williams | e6500a4 | 2021-05-01 05:58:23 -0500 | [diff] [blame] | 139 | ConfigIface::Type ldapType(ConfigIface::Type value) override; |
Ratan Gupta | aeaf941 | 2019-02-11 04:41:52 -0600 | [diff] [blame] | 140 | |
| 141 | /** @brief Update the ldapServiceEnabled property. |
| 142 | * @param[in] value - ldapServiceEnabled value to be updated. |
| 143 | * @returns value of changed ldapServiceEnabled. |
| 144 | */ |
| 145 | bool enabled(bool value) override; |
| 146 | |
| 147 | /** @brief Update the userNameAttribute property. |
| 148 | * @param[in] value - userNameAttribute value to be updated. |
| 149 | * @returns value of changed userNameAttribute. |
| 150 | */ |
| 151 | std::string userNameAttribute(std::string value) override; |
| 152 | |
| 153 | /** @brief Update the groupNameAttribute property. |
| 154 | * @param[in] value - groupNameAttribute value to be updated. |
| 155 | * @returns value of changed groupNameAttribute. |
| 156 | */ |
| 157 | std::string groupNameAttribute(std::string value) override; |
Nagaraju Goruganti | 997f5e0 | 2018-08-30 03:05:11 -0500 | [diff] [blame] | 158 | |
Ratan Gupta | 3a1c274 | 2019-03-20 06:49:42 +0530 | [diff] [blame] | 159 | /** @brief Update the BindDNPasword property. |
Patrick Williams | e6500a4 | 2021-05-01 05:58:23 -0500 | [diff] [blame] | 160 | * @param[in] value - ldapBindDNPassword value to be updated. |
| 161 | * @returns value of changed ldapBindDNPassword. |
Ratan Gupta | 3a1c274 | 2019-03-20 06:49:42 +0530 | [diff] [blame] | 162 | */ |
Patrick Williams | e6500a4 | 2021-05-01 05:58:23 -0500 | [diff] [blame] | 163 | std::string ldapBindDNPassword(std::string value) override; |
Ratan Gupta | 3a1c274 | 2019-03-20 06:49:42 +0530 | [diff] [blame] | 164 | |
Ratan Gupta | 21e88cb | 2019-04-12 17:15:52 +0530 | [diff] [blame] | 165 | /** @brief Function required by Cereal to perform deserialization. |
| 166 | * @tparam Archive - Cereal archive type (binary in our case). |
| 167 | * @param[in] archive - reference to Cereal archive. |
| 168 | * @param[in] version - Class version that enables handling |
| 169 | * a serialized data across code levels |
| 170 | */ |
| 171 | template <class Archive> |
| 172 | void load(Archive& archive, const std::uint32_t version); |
| 173 | |
| 174 | /** @brief Function required by Cereal to perform serialization. |
| 175 | * @tparam Archive - Cereal archive type (binary in our case). |
| 176 | * @param[in] archive - reference to Cereal archive. |
| 177 | * @param[in] version - Class version that enables handling |
| 178 | * a serialized data across code levels |
| 179 | */ |
| 180 | template <class Archive> |
| 181 | void save(Archive& archive, const std::uint32_t version) const; |
| 182 | |
| 183 | /** @brief Serialize and persist this object at the persist |
| 184 | * location. |
| 185 | */ |
| 186 | void serialize(); |
| 187 | |
| 188 | /** @brief Deserialize LDAP config data from the persistent location |
| 189 | * into this object |
| 190 | * @return bool - true if the deserialization was successful, false |
| 191 | * otherwise. |
| 192 | */ |
| 193 | bool deserialize(); |
Nagaraju Goruganti | db60f58 | 2018-11-08 03:14:48 -0600 | [diff] [blame] | 194 | |
Ratan Gupta | c5481d1 | 2019-04-12 18:31:05 +0530 | [diff] [blame] | 195 | /** @brief enable or disable the service with the given value |
Manojkiran Eda | 46e773a | 2024-06-17 14:45:33 +0530 | [diff] [blame^] | 196 | * @param[in] value - enable/disable |
Ratan Gupta | c5481d1 | 2019-04-12 18:31:05 +0530 | [diff] [blame] | 197 | * @returns value of changed status |
| 198 | */ |
| 199 | bool enableService(bool value); |
| 200 | |
Ratan Gupta | 7b04c35 | 2019-04-12 21:46:29 +0530 | [diff] [blame] | 201 | /** @brief Creates a mapping for the group to the privilege |
| 202 | * |
| 203 | * @param[in] groupName - Group Name to which the privilege needs to be |
| 204 | * assigned. |
| 205 | * @param[in] privilege - The privilege role associated with the group. |
| 206 | * |
| 207 | * @return On success return the D-Bus object path of the created privilege |
| 208 | * mapper entry. |
| 209 | */ |
| 210 | ObjectPath create(std::string groupName, std::string privilege) override; |
| 211 | |
| 212 | /** @brief Delete privilege mapping for LDAP group |
| 213 | * |
| 214 | * This method deletes the privilege mapping |
| 215 | * |
| 216 | * @param[in] id - id of the object which needs to be deleted. |
| 217 | */ |
| 218 | void deletePrivilegeMapper(Id id); |
| 219 | |
| 220 | /** @brief Check if LDAP group privilege mapping requested is valid |
| 221 | * |
| 222 | * Check if the privilege mapping already exists for the LDAP group name |
| 223 | * and group name is empty. |
| 224 | * |
| 225 | * @param[in] groupName - LDAP group name |
| 226 | * |
| 227 | * @return throw exception if the conditions are not met. |
| 228 | */ |
| 229 | void checkPrivilegeMapper(const std::string& groupName); |
| 230 | |
| 231 | /** @brief Check if the privilege level is a valid one |
| 232 | * |
| 233 | * @param[in] privilege - Privilege level |
| 234 | * |
| 235 | * @return throw exception if the conditions are not met. |
| 236 | */ |
| 237 | void checkPrivilegeLevel(const std::string& privilege); |
| 238 | |
| 239 | /** @brief Construct LDAP mapper entry D-Bus objects from their persisted |
| 240 | * representations. |
| 241 | */ |
| 242 | void restoreRoleMapping(); |
| 243 | |
Nagaraju Goruganti | 997f5e0 | 2018-08-30 03:05:11 -0500 | [diff] [blame] | 244 | private: |
Ratan Gupta | 21e88cb | 2019-04-12 17:15:52 +0530 | [diff] [blame] | 245 | bool secureLDAP; |
Patrick Williams | e6500a4 | 2021-05-01 05:58:23 -0500 | [diff] [blame] | 246 | std::string ldapBindPassword{}; |
Nagaraju Goruganti | 3b4d06a | 2018-11-08 03:13:38 -0600 | [diff] [blame] | 247 | std::string tlsCacertFile{}; |
Ratan Gupta | 22f13f1 | 2019-04-29 15:36:40 +0530 | [diff] [blame] | 248 | std::string tlsCertFile{}; |
Ratan Gupta | 21e88cb | 2019-04-12 17:15:52 +0530 | [diff] [blame] | 249 | std::string configFilePath{}; |
| 250 | std::string objectPath{}; |
| 251 | std::filesystem::path configPersistPath{}; |
Nagaraju Goruganti | 997f5e0 | 2018-08-30 03:05:11 -0500 | [diff] [blame] | 252 | |
| 253 | /** @brief Persistent sdbusplus D-Bus bus connection. */ |
Patrick Williams | b3ef4e1 | 2022-07-22 19:26:55 -0500 | [diff] [blame] | 254 | sdbusplus::bus_t& bus; |
Nagaraju Goruganti | 997f5e0 | 2018-08-30 03:05:11 -0500 | [diff] [blame] | 255 | |
| 256 | /** @brief Create a new LDAP config file. |
| 257 | */ |
| 258 | virtual void writeConfig(); |
| 259 | |
| 260 | /** @brief reference to config manager object */ |
| 261 | ConfigMgr& parent; |
Ratan Gupta | 3a1c274 | 2019-03-20 06:49:42 +0530 | [diff] [blame] | 262 | |
Ratan Gupta | 7b04c35 | 2019-04-12 21:46:29 +0530 | [diff] [blame] | 263 | /** @brief Id of the last privilege mapper entry */ |
| 264 | Id entryId = 0; |
| 265 | |
| 266 | /** @brief container to hold privilege mapper objects */ |
| 267 | std::map<Id, std::unique_ptr<LDAPMapperEntry>> PrivilegeMapperList; |
| 268 | |
| 269 | /** @brief available privileges container */ |
Richard Marian Thomaiyar | 32be296 | 2019-11-08 17:21:53 +0530 | [diff] [blame] | 270 | std::set<std::string> privMgr = { |
| 271 | "priv-admin", |
| 272 | "priv-operator", |
| 273 | "priv-user", |
| 274 | }; |
Ratan Gupta | 7b04c35 | 2019-04-12 21:46:29 +0530 | [diff] [blame] | 275 | |
Ratan Gupta | 22f13f1 | 2019-04-29 15:36:40 +0530 | [diff] [blame] | 276 | /** @brief React to InterfaceAdded signal |
| 277 | * @param[in] msg - sdbusplus message |
| 278 | */ |
Patrick Williams | b3ef4e1 | 2022-07-22 19:26:55 -0500 | [diff] [blame] | 279 | void certificateInstalled(sdbusplus::message_t& msg); |
Ratan Gupta | 22f13f1 | 2019-04-29 15:36:40 +0530 | [diff] [blame] | 280 | sdbusplus::bus::match_t certificateInstalledSignal; |
| 281 | |
manojkiraneda | a47fe4e | 2019-05-23 21:28:33 +0530 | [diff] [blame] | 282 | sdbusplus::bus::match_t cacertificateInstalledSignal; |
| 283 | |
Ratan Gupta | ab4fcb4 | 2019-04-29 19:39:51 +0530 | [diff] [blame] | 284 | /** @brief React to certificate changed signal |
| 285 | * @param[in] msg - sdbusplus message |
| 286 | */ |
Patrick Williams | b3ef4e1 | 2022-07-22 19:26:55 -0500 | [diff] [blame] | 287 | void certificateChanged(sdbusplus::message_t& msg); |
Ratan Gupta | ab4fcb4 | 2019-04-29 19:39:51 +0530 | [diff] [blame] | 288 | sdbusplus::bus::match_t certificateChangedSignal; |
| 289 | |
Ratan Gupta | 3a1c274 | 2019-03-20 06:49:42 +0530 | [diff] [blame] | 290 | friend class MockConfigMgr; |
Nagaraju Goruganti | 997f5e0 | 2018-08-30 03:05:11 -0500 | [diff] [blame] | 291 | }; |
| 292 | |
Nagaraju Goruganti | 997f5e0 | 2018-08-30 03:05:11 -0500 | [diff] [blame] | 293 | } // namespace ldap |
| 294 | } // namespace phosphor |