static std::pair get_base_dn_from_secret()

in common/util.hpp [299:319]


    static std::pair<int, std::string> get_base_dn_from_secret( std::string secret_name )
    {
        std::pair<int, std::string> result = std::make_pair( -1, "" );
        std::string distinguished_name;
        if ( !secret_name.empty() )
        {
            Json::Value root = get_secret_from_secrets_manager( secret_name );
            distinguished_name = root["distinguishedName"].asString();
            if ( distinguished_name.empty() )
            {
                distinguished_name = root["distinguishedNameOfgMSA"].asString();
            }
            if ( !distinguished_name.empty() )
            {
                result.first = 0;
            }
            result.second = distinguished_name;
        }

        return result;
    }