1 #pragma once 2 3 #include <string> 4 5 namespace phosphor 6 { 7 namespace ldap 8 { 9 10 /** @brief checks that the given URI is valid LDAP's URI. 11 * LDAP's URL begins with "ldap://" and LDAPS's URL begins with "ldap://" 12 * @param[in] URI - URI which needs to be validated. 13 * @param[in] scheme - LDAP's scheme, scheme equals to "ldaps" to validate 14 * against LDAPS type URI, for LDAP type URI it is equals to "ldap". 15 * @returns true if it is valid otherwise false. 16 */ 17 bool isValidLDAPURI(const std::string& URI, const char* scheme); 18 19 } // namespace ldap 20 } // namespace phosphor 21