in common/util.hpp [41:76]
static std::pair<int, std::string> check_util_binaries_permissions()
{
std::pair<int, std::string> result;
std::pair<int, std::string> cmd = Util::exec_shell_cmd( "which kinit" );
Util::rtrim( cmd.second );
if ( !Util::check_file_permissions( cmd.second ) )
{
std::cerr << Util::getCurrentTime() << '\t' << "ERROR: kinit not found" << std::endl;
result = std::make_pair( -1, std::string( "ERROR:: kinit not found" ) );
return result;
}
cmd = Util::exec_shell_cmd( "which ldapsearch" );
Util::rtrim( cmd.second );
if ( !Util::check_file_permissions( cmd.second ) )
{
std::cerr << Util::getCurrentTime() << '\t' << "ERROR: ldapsearch not found"
<< std::endl;
result = std::make_pair( -1, "ERROR:: ldapsearch not found" );
return result;
}
if ( !Util::check_file_permissions( std::string( install_path_for_decode_exe ) ) )
{
result = std::make_pair( -1, "ERROR:: decode.exe not found" );
return result;
}
if ( !Util::check_file_permissions( std::string( install_path_for_aws_cli ) ) )
{
result = std::make_pair( -1, "ERROR:: AWS CLI not found" );
return result;
}
return std::make_pair( 0, "" );
}