irods  4.2.8
About: iRODS (the integrated Rule Oriented Data System) is a distributed data-management system for creating data grids, digital libraries, persistent archives, and real-time data systems.
  Fossies Dox: irods-4.2.8.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

db_plugin.cpp File Reference
#include "rodsDef.h"
#include "authenticate.h"
#include "rodsQuota.h"
#include "msParam.h"
#include "rcConnect.h"
#include "icatStructs.hpp"
#include "icatHighLevelRoutines.hpp"
#include "mid_level.hpp"
#include "low_level.hpp"
#include "irods_database_plugin.hpp"
#include "irods_database_constants.hpp"
#include "irods_postgres_object.hpp"
#include "irods_stacktrace.hpp"
#include "irods_catalog_properties.hpp"
#include "irods_sql_logger.hpp"
#include "irods_hierarchy_parser.hpp"
#include "irods_children_parser.hpp"
#include "irods_auth_object.hpp"
#include "irods_pam_auth_object.hpp"
#include "irods_auth_factory.hpp"
#include "irods_auth_plugin.hpp"
#include "irods_auth_manager.hpp"
#include "irods_auth_constants.hpp"
#include "irods_server_properties.hpp"
#include "irods_resource_manager.hpp"
#include "irods_virtual_path.hpp"
#include "irods_rs_comm_query.hpp"
#include "modAccessControl.h"
#include "checksum.hpp"
#include "rods.h"
#include "rcMisc.h"
#include "miscServerFunct.hpp"
#include <sstream>
#include <string>
#include <string_view>
#include <iostream>
#include <vector>
#include <boost/regex.hpp>
#include <boost/lexical_cast.hpp>
#include "irods_lexical_cast.hpp"
Include dependency graph for db_plugin.cpp:

Go to the source code of this file.

Classes

class  postgres_database_plugin
 

Macros

#define AP_READ   "read"
 
#define AP_WRITE   "write"
 
#define AP_OWN   "own"
 
#define AP_NULL   "null"
 
#define PASSWORD_SCRAMBLE_PREFIX   ".E_"
 
#define PASSWORD_KEY_ENV_VAR   "IRODS_DATABASE_USER_PASSWORD_SALT"
 
#define PASSWORD_DEFAULT_KEY   "a9_3fker"
 
#define MAX_HOST_STR   2700
 
#define PATH_SEPARATOR   irods::get_virtual_path_separator().c_str()
 
#define ACCESS_MAX
 
#define MINIMUM_COL_SIZE   50
 

Typedefs

using leaf_bundle_t = irods::resource_manager::leaf_bundle_t
 

Functions

int get64RandomBytes (char *buf)
 
int icatApplyRule (rsComm_t *rsComm, char *ruleName, char *arg1)
 
const std::string ICSS_PROP ("irods_icss_property")
 
const std::string ZONE_PROP ("irods_zone_property")
 
int validateAndParseUserName (const char *fullUserNameIn, char *userName, char *userZone)
 
irods::error make_db_ptr (const irods::first_class_object_ptr &_fc, irods::postgres_object_ptr &_pg)
 
int _rollback (const char *functionName)
 
irods::error getLocalZone (irods::plugin_property_map &_prop_map, icatSessionStruct *_icss, std::string &_zone)
 
int get_object_count_of_resource_by_name (icatSessionStruct *_icss, const std::string &_resc_name, rodsLong_t &_count)
 
irods::error determine_user_has_modify_metadata_access (const std::string &_data_name, const std::string &_collection, const std::string &_user_name, const std::string &_zone)
 
void removeMetaMapAndAVU (char *dataObjNumber)
 
static int removeAVUs ()
 
int _canConnectToCatalog (rsComm_t *_rsComm)
 
static int hostname_resolves_to_ipv4 (const char *_hostname)
 
int _resolveHostName (rsComm_t *_rsComm, const char *_hostAddress)
 
irods::error verify_non_root_vault_path (irods::plugin_context &_ctx, const std::string &path)
 
irods::error _childIsValid (irods::plugin_property_map &_prop_map, const std::string &_new_child)
 
irods::error _updateChildParent (const std::string &_child_resc_id, const std::string &_parent_resc_id, const std::string &_parent_child_context)
 
int _rescHasData (icatSessionStruct *_icss, const std::string &_resc_name, bool &_has_data)
 
irods::error validate_resource_name (std::string _resc_name)
 
bool _rescHasParentOrChild (char *rescId)
 
bool _userInRUserAuth (const char *userName, const char *zoneName, const char *auth_name)
 
static bool allowed_zone_char (const char _c)
 
irods::error validate_zone_name (std::string _zone_name)
 
static int _delColl (rsComm_t *rsComm, collInfo_t *collInfo)
 
static irods::error verify_auth_response (const char *_scheme, const char *_challenge, const char *_user_name, const char *_response)
 
static int icatDescramble (char *pw)
 
static int icatScramble (char *pw)
 
int decodePw (rsComm_t *rsComm, const char *in, char *out)
 
int convertTypeOption (const char *typeStr)
 
rodsLong_t checkAndGetObjectId (rsComm_t *rsComm, irods::plugin_property_map &_prop_map, const char *type, const char *name, const char *access)
 
rodsLong_t findAVU (const char *attribute, const char *value, const char *units)
 
int findOrInsertAVU (const char *attribute, const char *value, const char *units)
 
std::string makeEscapedPath (const std::string &inPath)
 
int _modInheritance (int inheritFlag, int recursiveFlag, const char *collIdStr, const char *pathName)
 
int setOverQuota (rsComm_t *rsComm)
 
int icatGetTicketUserId (irods::plugin_property_map &_prop_map, const char *userName, char *userIdStr)
 
int icatGetTicketGroupId (irods::plugin_property_map &_prop_map, const char *groupName, char *groupIdStr)
 
static int convert_hostname_to_dotted_decimal_ipv4_and_store_in_buffer (const char *_hostname, char *_buf)
 
char * convertHostToIp (const char *inputName)
 
irods::error db_start_op (irods::plugin_context &_ctx)
 
irods::error db_debug_op (irods::plugin_context &_ctx, const char *_mode)
 
irods::error db_open_op (irods::plugin_context &_ctx)
 
irods::error db_close_op (irods::plugin_context &_ctx)
 
irods::error db_check_and_get_object_id_op (irods::plugin_context &_ctx, const char *_type, const char *_name, const char *_access)
 
irods::error db_get_local_zone_op (irods::plugin_context &_ctx, std::string *_zone)
 
irods::error db_update_resc_obj_count_op (irods::plugin_context &_ctx, const std::string *_resc, int _delta)
 
irods::error db_mod_data_obj_meta_op (irods::plugin_context &_ctx, dataObjInfo_t *_data_obj_info, keyValPair_t *_reg_param)
 
irods::error db_reg_data_obj_op (irods::plugin_context &_ctx, dataObjInfo_t *_data_obj_info)
 
irods::error db_reg_replica_op (irods::plugin_context &_ctx, dataObjInfo_t *_src_data_obj_info, dataObjInfo_t *_dst_data_obj_info, keyValPair_t *_cond_input)
 
irods::error db_unreg_replica_op (irods::plugin_context &_ctx, dataObjInfo_t *_data_obj_info, keyValPair_t *_cond_input)
 
irods::error db_reg_rule_exec_op (irods::plugin_context &_ctx, ruleExecSubmitInp_t *_re_sub_inp)
 
irods::error db_mod_rule_exec_op (irods::plugin_context &_ctx, const char *_re_id, keyValPair_t *_reg_param)
 
irods::error db_del_rule_exec_op (irods::plugin_context &_ctx, const char *_re_id)
 
static irods::error extract_resource_properties_for_operations (const std::string &_resc_name, std::string &_resc_id, std::string &_resc_parent)
 
irods::error db_add_child_resc_op (irods::plugin_context &_ctx, std::map< std::string, std::string > *_resc_input)
 
irods::error db_reg_resc_op (irods::plugin_context &_ctx, std::map< std::string, std::string > *_resc_input)
 
irods::error db_del_child_resc_op (irods::plugin_context &_ctx, std::map< std::string, std::string > *_resc_input)
 
irods::error db_del_resc_op (irods::plugin_context &_ctx, const char *_resc_name, int _dry_run)
 
irods::error db_rollback_op (irods::plugin_context &_ctx)
 
irods::error db_commit_op (irods::plugin_context &_ctx)
 
irods::error db_del_user_re_op (irods::plugin_context &_ctx, userInfo_t *_user_info)
 
irods::error db_reg_coll_by_admin_op (irods::plugin_context &_ctx, collInfo_t *_coll_info)
 
irods::error db_reg_coll_op (irods::plugin_context &_ctx, collInfo_t *_coll_info)
 
irods::error db_mod_coll_op (irods::plugin_context &_ctx, collInfo_t *_coll_info)
 
irods::error db_reg_zone_op (irods::plugin_context &_ctx, const char *_zone_name, const char *_zone_type, const char *_zone_conn_info, const char *_zone_comment)
 
irods::error db_mod_zone_op (irods::plugin_context &_ctx, const char *_zone_name, const char *_option, const char *_option_value)
 
irods::error db_rename_coll_op (irods::plugin_context &_ctx, const char *_old_coll, const char *_new_coll)
 
irods::error db_mod_zone_coll_acl_op (irods::plugin_context &_ctx, const char *_access_level, const char *_user_name, const char *_path_name)
 
irods::error db_rename_local_zone_op (irods::plugin_context &_ctx, const char *_old_zone, const char *_new_zone)
 
irods::error db_del_zone_op (irods::plugin_context &_ctx, const char *_zone_name)
 
irods::error db_simple_query_op_vector (irods::plugin_context &_ctx, const char *_sql, std::vector< std::string > _bindVars, int _format, int *_control, char *_out_buf, int _max_out_buf)
 
irods::error db_simple_query_op (irods::plugin_context &_ctx, const char *_sql, const char *_arg1, const char *_arg2, const char *_arg3, const char *_arg4, int _format, int *_control, char *_out_buf, int _max_out_buf)
 
irods::error db_del_coll_by_admin_op (irods::plugin_context &_ctx, collInfo_t *_coll_info)
 
irods::error db_del_coll_op (irods::plugin_context &_ctx, collInfo_t *_coll_info)
 
irods::error db_check_auth_op (irods::plugin_context &_ctx, const char *_scheme, const char *_challenge, const char *_response, const char *_user_name, int *_user_priv_level, int *_client_priv_level)
 
irods::error db_make_temp_pw_op (irods::plugin_context &_ctx, char *_pw_value_to_hash, const char *_other_user)
 
irods::error db_make_limited_pw_op (irods::plugin_context &_ctx, int _ttl, char *_pw_value_to_hash)
 
irods::error db_update_pam_password_op (irods::plugin_context &_ctx, const char *_user_name, int _ttl, const char *_test_time, char **_irods_password)
 
irods::error db_mod_user_op (irods::plugin_context &_ctx, const char *_user_name, const char *_option, const char *_new_value)
 
irods::error db_mod_group_op (irods::plugin_context &_ctx, const char *_group_name, const char *_option, const char *_user_name, const char *_user_zone)
 
irods::error db_mod_resc_op (irods::plugin_context &_ctx, const char *_resc_name, const char *_option, const char *_option_value)
 
irods::error db_mod_resc_data_paths_op (irods::plugin_context &_ctx, const char *_resc_name, const char *_old_path, const char *_new_path, const char *_user_name)
 
irods::error db_mod_resc_freespace_op (irods::plugin_context &_ctx, const char *_resc_name, int _update_value)
 
irods::error db_reg_user_re_op (irods::plugin_context &_ctx, userInfo_t *_user_info)
 
irods::error db_set_avu_metadata_op (irods::plugin_context &_ctx, const char *_type, const char *_name, const char *_attribute, const char *_new_value, const char *_new_unit)
 
irods::error db_add_avu_metadata_wild_op (irods::plugin_context &_ctx, int _admin_mode, const char *_type, const char *_name, const char *_attribute, const char *_value, const char *_units)
 
irods::error db_add_avu_metadata_op (irods::plugin_context &_ctx, int _admin_mode, const char *_type, const char *_name, const char *_attribute, const char *_value, const char *_units)
 
irods::error db_mod_avu_metadata_op (irods::plugin_context &_ctx, const char *_type, const char *_name, const char *_attribute, const char *_value, const char *_unitsOrArg0, const char *_arg1, const char *_arg2, const char *_arg3)
 
irods::error db_del_avu_metadata_op (irods::plugin_context &_ctx, int _option, const char *_type, const char *_name, const char *_attribute, const char *_value, const char *_unit, int _nocommit)
 
irods::error db_copy_avu_metadata_op (irods::plugin_context &_ctx, const char *_type1, const char *_type2, const char *_name1, const char *_name2)
 
irods::error db_mod_access_control_resc_op (irods::plugin_context &_ctx, const int _recursive_flag, const char *_access_level, const char *_user_name, const char *_zone, const char *_resc_name)
 
irods::error db_mod_access_control_op (irods::plugin_context &_ctx, const int _recursive_flag, const char *_access_level, const char *_user_name, const char *_zone, const char *_path_name)
 
irods::error db_rename_object_op (irods::plugin_context &_ctx, rodsLong_t _obj_id, const char *_new_name)
 
irods::error db_move_object_op (irods::plugin_context &_ctx, rodsLong_t _obj_id, rodsLong_t _target_coll_id)
 
irods::error db_reg_token_op (irods::plugin_context &_ctx, const char *_name_space, const char *_name, const char *_value, const char *_value2, const char *_value3, const char *_comment)
 
irods::error db_del_token_op (irods::plugin_context &_ctx, const char *_name_space, const char *_name)
 
irods::error db_reg_server_load_op (irods::plugin_context &_ctx, const char *_host_name, const char *_resc_name, const char *_cpu_used, const char *_mem_used, const char *_swap_used, const char *_run_q_load, const char *_disk_space, const char *_net_input, const char *_net_output)
 
irods::error db_purge_server_load_op (irods::plugin_context &_ctx, const char *_seconds_ago)
 
irods::error db_reg_server_load_digest_op (irods::plugin_context &_ctx, const char *_resc_name, const char *_load_factor)
 
irods::error db_purge_server_load_digest_op (irods::plugin_context &_ctx, const char *_seconds_ago)
 
irods::error db_calc_usage_and_quota_op (irods::plugin_context &_ctx)
 
irods::error db_set_quota_op (irods::plugin_context &_ctx, const char *_type, const char *_name, const char *_resc_name, const char *_limit)
 
irods::error db_check_quota_op (irods::plugin_context &_ctx, const char *_user_name, const char *_resc_name, rodsLong_t *_user_quota, int *_quota_status)
 
irods::error db_del_unused_avus_op (irods::plugin_context &_ctx)
 
irods::error db_ins_rule_table_op (irods::plugin_context &_ctx, const char *_base_name, const char *_map_priority_str, const char *_rule_name, const char *_rule_head, const char *_rule_condition, const char *_rule_action, const char *_rule_recovery, const char *_rule_id_str, const char *_my_time)
 
irods::error db_ins_dvm_table_op (irods::plugin_context &_ctx, const char *_base_name, const char *_var_name, const char *_action, const char *_var_2_cmap, const char *_my_time)
 
irods::error db_ins_fnm_table_op (irods::plugin_context &_ctx, const char *_base_name, const char *_func_name, const char *_func_2_cmap, const char *_my_time)
 
irods::error db_ins_msrvc_table_op (irods::plugin_context &_ctx, const char *_module_name, const char *_msrvc_name, const char *_msrvc_signature, const char *_msrvc_version, const char *_msrvc_host, const char *_msrvc_location, const char *_msrvc_language, const char *_msrvc_type_name, const char *_msrvc_status, const char *_my_time)
 
irods::error db_version_rule_base_op (irods::plugin_context &_ctx, const char *_base_name, const char *_my_time)
 
irods::error db_version_dvm_base_op (irods::plugin_context &_ctx, const char *_base_name, const char *_my_time)
 
irods::error db_version_fnm_base_op (irods::plugin_context &_ctx, const char *_base_name, const char *_my_time)
 
irods::error db_add_specific_query_op (irods::plugin_context &_ctx, const char *_sql, const char *_alias)
 
irods::error db_del_specific_query_op (irods::plugin_context &_ctx, const char *_sql_or_alias)
 
irods::error db_specific_query_op (irods::plugin_context &_ctx, specificQueryInp_t *_spec_query_inp, genQueryOut_t *_result)
 
irods::error db_get_distinct_data_obj_count_on_resource_op (irods::plugin_context &_ctx, const char *_resc_name, long long *_count)
 
irods::error db_get_distinct_data_objs_missing_from_child_given_parent_op (irods::plugin_context &_ctx, const std::string *_parent, const std::string *_child, int _limit, dist_child_result_t *_results)
 
irods::error db_get_repl_list_for_leaf_bundles_op (irods::plugin_context &_ctx, rodsLong_t _count, size_t _child_index, const std::vector< leaf_bundle_t > *_bundles, const std::string *_invocation_timestamp, dist_child_result_t *_results)
 
irods::error db_get_hierarchy_for_resc_op (irods::plugin_context &_ctx, const std::string *_resc_name, const std::string *_zone_name, std::string *_hierarchy)
 
irods::error db_mod_ticket_op (irods::plugin_context &_ctx, const char *_op_name, const char *_ticket_string, const char *_arg3, const char *_arg4, const char *_arg5)
 
irods::error db_get_icss_op (irods::plugin_context &_ctx, icatSessionStruct **_icss)
 
int chl_gen_query_impl (genQueryInp_t, genQueryOut_t *)
 
irods::error db_gen_query_op (irods::plugin_context &_ctx, genQueryInp_t *_gen_query_inp, genQueryOut_t *_result)
 
int chl_gen_query_access_control_setup_impl (const char *, const char *, const char *, int, int)
 
irods::error db_gen_query_access_control_setup_op (irods::plugin_context &_ctx, const char *_user, const char *_zone, const char *_host, int _priv, int _control_flag)
 
int chl_gen_query_ticket_setup_impl (const char *, const char *)
 
irods::error db_gen_query_ticket_setup_op (irods::plugin_context &_ctx, const char *_ticket, const char *_client_addr)
 
int chl_general_update_impl (generalUpdateInp_t)
 
irods::error db_general_update_op (irods::plugin_context &_ctx, generalUpdateInp_t *_update_inp)
 
irods::error db_start_operation (irods::plugin_property_map &_props)
 
irods::databaseplugin_factory (const std::string &_inst_name, const std::string &_context)
 

Variables

irods::resource_manager resc_mgr
 
static char prevChalSig [200]
 
static rodsLong_t MAX_PASSWORDS = 40
 
bool irods_pam_auth_no_extend = false
 
size_t irods_pam_password_len = 20
 
char irods_pam_password_min_time [64] = { "121" }
 
char irods_pam_password_max_time [64] = { "1209600" }
 
char irods_pam_password_default_time [64] = { "1209600" }
 
size_t log_sql_flg = 0
 
icatSessionStruct icss
 
int logSQL
 
int creatingUserByGroupAdmin
 
char mySessionTicket [64]
 
char mySessionClientAddr [64]
 

Macro Definition Documentation

◆ ACCESS_MAX

#define ACCESS_MAX
Value:
999999 /* A large access value (larger than the
maximum used (i.e. for fail safe)) and
also indicates not initialized*/

Definition at line 9334 of file db_plugin.cpp.

◆ AP_NULL

#define AP_NULL   "null"

Definition at line 71 of file db_plugin.cpp.

◆ AP_OWN

#define AP_OWN   "own"

Definition at line 70 of file db_plugin.cpp.

◆ AP_READ

#define AP_READ   "read"

Definition at line 68 of file db_plugin.cpp.

◆ AP_WRITE

#define AP_WRITE   "write"

Definition at line 69 of file db_plugin.cpp.

◆ MAX_HOST_STR

#define MAX_HOST_STR   2700

Definition at line 87 of file db_plugin.cpp.

◆ MINIMUM_COL_SIZE

#define MINIMUM_COL_SIZE   50

Definition at line 13827 of file db_plugin.cpp.

◆ PASSWORD_DEFAULT_KEY

#define PASSWORD_DEFAULT_KEY   "a9_3fker"

Definition at line 85 of file db_plugin.cpp.

◆ PASSWORD_KEY_ENV_VAR

#define PASSWORD_KEY_ENV_VAR   "IRODS_DATABASE_USER_PASSWORD_SALT"

Definition at line 84 of file db_plugin.cpp.

◆ PASSWORD_SCRAMBLE_PREFIX

#define PASSWORD_SCRAMBLE_PREFIX   ".E_"

Definition at line 83 of file db_plugin.cpp.

◆ PATH_SEPARATOR

#define PATH_SEPARATOR   irods::get_virtual_path_separator().c_str()

Definition at line 112 of file db_plugin.cpp.

Typedef Documentation

◆ leaf_bundle_t

Function Documentation

◆ _canConnectToCatalog()

◆ _childIsValid()

irods::error _childIsValid ( irods::plugin_property_map _prop_map,
const std::string &  _new_child 
)

Definition at line 555 of file db_plugin.cpp.

References _rollback(), CAT_NO_ROWS_FOUND, CHILD_HAS_PARENT, CHILD_NOT_FOUND, cmlGetStringValueFromSql(), ERROR, getLocalZone(), icss, irods::log(), irods::sql_logger::log(), LOG_NOTICE, logSQL, MAX_NAME_LEN, irods::error::ok(), deploy_schemas_locally::parser, PASS, irods.pypyodbc::status, and SUCCESS.

Here is the call graph for this function:

◆ _delColl()

◆ _modInheritance()

int _modInheritance ( int  inheritFlag,
int  recursiveFlag,
const char *  collIdStr,
const char *  pathName 
)

Definition at line 1398 of file db_plugin.cpp.

References _rollback(), AU_MOD_ACCESS_CONTROL_COLL, cllBindVarCount, cllBindVars, cmlAudit5(), cmlExecuteNoAnswerSql(), getNowStr(), icss, LOG_NOTICE, LOG_SQL, logSQL, makeEscapedPath(), rodsLog(), and irods.pypyodbc::status.

Here is the call graph for this function:

◆ _rescHasData()

int _rescHasData ( icatSessionStruct _icss,
const std::string &  _resc_name,
bool &  _has_data 
)
Description:\n Returns true if the specified resource has associated data objects

Definition at line 643 of file db_plugin.cpp.

References get_object_count_of_resource_by_name(), irods::sql_logger::log(), logSQL, and irods.pypyodbc::status.

Referenced by db_del_resc_op().

Here is the call graph for this function:

◆ _rescHasParentOrChild()

bool _rescHasParentOrChild ( char *  rescId)

Definition at line 686 of file db_plugin.cpp.

References _rollback(), CAT_NO_ROWS_FOUND, cmlGetStringValueFromSql(), icss, irods::log(), irods::sql_logger::log(), LOG_NOTICE, logSQL, MAX_NAME_LEN, and irods.pypyodbc::status.

Referenced by db_del_resc_op().

Here is the call graph for this function:

◆ _resolveHostName()

int _resolveHostName ( rsComm_t _rsComm,
const char *  _hostAddress 
)

Definition at line 524 of file db_plugin.cpp.

References addRErrorMsg(), hostname_resolves_to_ipv4(), rsComm_t::rError, and irods.pypyodbc::status.

Referenced by db_mod_resc_op(), and db_reg_resc_op().

Here is the call graph for this function:

◆ _rollback()

◆ _updateChildParent()

irods::error _updateChildParent ( const std::string &  _child_resc_id,
const std::string &  _parent_resc_id,
const std::string &  _parent_child_context 
)

Definition at line 609 of file db_plugin.cpp.

References _rollback(), cllBindVarCount, cllBindVars, cmlExecuteNoAnswerSql(), ERROR, getNowStr(), icss, irods::sql_logger::log(), logSQL, irods.pypyodbc::status, and SUCCESS.

Referenced by db_add_child_resc_op(), and db_del_child_resc_op().

Here is the call graph for this function:

◆ _userInRUserAuth()

bool _userInRUserAuth ( const char *  userName,
const char *  zoneName,
const char *  auth_name 
)

Definition at line 737 of file db_plugin.cpp.

References _rollback(), CAT_NO_ROWS_FOUND, cmlGetIntegerValueFromSql(), icss, irods::sql_logger::log(), logSQL, and irods.pypyodbc::status.

Referenced by db_mod_user_op().

Here is the call graph for this function:

◆ allowed_zone_char()

static bool allowed_zone_char ( const char  _c)
static
Description:\n function which determines if a char is allowed in a zone name

Definition at line 764 of file db_plugin.cpp.

Referenced by validate_zone_name().

◆ checkAndGetObjectId()

◆ chl_gen_query_access_control_setup_impl()

int chl_gen_query_access_control_setup_impl ( const char *  ,
const char *  ,
const char *  ,
int  ,
int   
)

Definition at line 2243 of file general_query.cpp.

References accessControlControlFlag, accessControlPriv, accessControlUserName, accessControlZone, MAX_NAME_LEN, NULL, rstrcpy(), and USER_STRLEN_TOOLONG.

Here is the call graph for this function:

◆ chl_gen_query_impl()

◆ chl_gen_query_ticket_setup_impl()

int chl_gen_query_ticket_setup_impl ( const char *  ,
const char *   
)

Definition at line 2278 of file general_query.cpp.

References LOG_NOTICE, rodsLog(), rstrcpy(), sessionClientAddr, sessionTicket, and USER_STRLEN_TOOLONG.

Here is the call graph for this function:

◆ chl_general_update_impl()

int chl_general_update_impl ( generalUpdateInp_t  )

Definition at line 184 of file general_update.cpp.

References CAT_INVALID_ARGUMENT, CAT_NOT_OPEN, chlGetRcs(), cmlExecuteNoAnswerSql(), firstCall, GENERAL_UPDATE_DELETE, GENERAL_UPDATE_INSERT, generalDelete(), generalInsert(), icatGeneralQuerySetup(), icss, LOG_NOTICE, LOG_SQL, logSQLGenUpdate, rodsLog(), irods.pypyodbc::status, tSQL, and GeneralUpdateInp::type.

Here is the call graph for this function:

◆ convert_hostname_to_dotted_decimal_ipv4_and_store_in_buffer()

static int convert_hostname_to_dotted_decimal_ipv4_and_store_in_buffer ( const char *  _hostname,
char *  _buf 
)
static

Definition at line 1774 of file db_plugin.cpp.

References getaddrinfo_with_retry().

Referenced by convertHostToIp().

Here is the call graph for this function:

◆ convertHostToIp()

char* convertHostToIp ( const char *  inputName)

Definition at line 1790 of file db_plugin.cpp.

References convert_hostname_to_dotted_decimal_ipv4_and_store_in_buffer(), LOG_ERROR, NULL, rodsLog(), and irods.pypyodbc::status.

Here is the call graph for this function:

◆ convertTypeOption()

int convertTypeOption ( const char *  typeStr)

Definition at line 1095 of file db_plugin.cpp.

Referenced by checkAndGetObjectId().

◆ db_add_avu_metadata_op()

irods::error db_add_avu_metadata_op ( irods::plugin_context _ctx,
int  _admin_mode,
const char *  _type,
const char *  _name,
const char *  _attribute,
const char *  _value,
const char *  _units 
)

Definition at line 9455 of file db_plugin.cpp.

Referenced by plugin_factory().

◆ db_add_avu_metadata_wild_op()

irods::error db_add_avu_metadata_wild_op ( irods::plugin_context _ctx,
int  _admin_mode,
const char *  _type,
const char *  _name,
const char *  _attribute,
const char *  _value,
const char *  _units 
)

◆ db_add_child_resc_op()

◆ db_add_specific_query_op()

irods::error db_add_specific_query_op ( irods::plugin_context _ctx,
const char *  _sql,
const char *  _alias 
)

Definition at line 13649 of file db_plugin.cpp.

Referenced by plugin_factory().

◆ db_calc_usage_and_quota_op()

irods::error db_calc_usage_and_quota_op ( irods::plugin_context _ctx)

Definition at line 12533 of file db_plugin.cpp.

Referenced by plugin_factory().

◆ db_check_and_get_object_id_op()

irods::error db_check_and_get_object_id_op ( irods::plugin_context _ctx,
const char *  _type,
const char *  _name,
const char *  _access 
)

Definition at line 2015 of file db_plugin.cpp.

References checkAndGetObjectId(), irods::plugin_context::comm(), ERROR, irods::error::ok(), PASS, irods::plugin_context::prop_map(), irods.pypyodbc::status, SUCCESS, and irods::plugin_context::valid().

Referenced by plugin_factory().

Here is the call graph for this function:

◆ db_check_auth_op()

irods::error db_check_auth_op ( irods::plugin_context _ctx,
const char *  _scheme,
const char *  _challenge,
const char *  _response,
const char *  _user_name,
int _user_priv_level,
int _client_priv_level 
)

◆ db_check_quota_op()

irods::error db_check_quota_op ( irods::plugin_context _ctx,
const char *  _user_name,
const char *  _resc_name,
rodsLong_t _user_quota,
int _quota_status 
)

Definition at line 12798 of file db_plugin.cpp.

Referenced by plugin_factory().

◆ db_close_op()

irods::error db_close_op ( irods::plugin_context _ctx)

Definition at line 1973 of file db_plugin.cpp.

References cmlClose(), CODE, ERROR, icss, irods::error::ok(), PASS, irods.pypyodbc::status, icatSessionStruct::status, and irods::plugin_context::valid().

Referenced by plugin_factory().

Here is the call graph for this function:

◆ db_commit_op()

irods::error db_commit_op ( irods::plugin_context _ctx)

Definition at line 4353 of file db_plugin.cpp.

References cmlExecuteNoAnswerSql(), CODE, ERROR, icss, LOG_NOTICE, LOG_SQL, logSQL, irods::error::ok(), PASS, rodsLog(), irods.pypyodbc::status, and irods::plugin_context::valid().

Referenced by plugin_factory().

Here is the call graph for this function:

◆ db_copy_avu_metadata_op()

irods::error db_copy_avu_metadata_op ( irods::plugin_context _ctx,
const char *  _type1,
const char *  _type2,
const char *  _name1,
const char *  _name2 
)

Definition at line 10278 of file db_plugin.cpp.

Referenced by plugin_factory().

◆ db_debug_op()

irods::error db_debug_op ( irods::plugin_context _ctx,
const char *  _mode 
)

Definition at line 1829 of file db_plugin.cpp.

References CAT_INVALID_ARGUMENT, ERROR, logSQL, mode, irods::error::ok(), PASS, SUCCESS, irods::transform(), and irods::plugin_context::valid().

Referenced by plugin_factory().

Here is the call graph for this function:

◆ db_del_avu_metadata_op()

irods::error db_del_avu_metadata_op ( irods::plugin_context _ctx,
int  _option,
const char *  _type,
const char *  _name,
const char *  _attribute,
const char *  _value,
const char *  _unit,
int  _nocommit 
)

Definition at line 9899 of file db_plugin.cpp.

Referenced by plugin_factory().

◆ db_del_child_resc_op()

irods::error db_del_child_resc_op ( irods::plugin_context _ctx,
std::map< std::string, std::string > *  _resc_input 
)

◆ db_del_coll_by_admin_op()

◆ db_del_coll_op()

irods::error db_del_coll_op ( irods::plugin_context _ctx,
collInfo_t _coll_info 
)

Definition at line 6453 of file db_plugin.cpp.

References _delColl(), _rollback(), CAT_INVALID_ARGUMENT, cmlExecuteNoAnswerSql(), irods::plugin_context::comm(), ERROR, icss, LOG_NOTICE, LOG_SQL, logSQL, irods::error::ok(), PASS, rodsLog(), irods.pypyodbc::status, SUCCESS, and irods::plugin_context::valid().

Referenced by plugin_factory().

Here is the call graph for this function:

◆ db_del_resc_op()

◆ db_del_rule_exec_op()

◆ db_del_specific_query_op()

irods::error db_del_specific_query_op ( irods::plugin_context _ctx,
const char *  _sql_or_alias 
)

Definition at line 13751 of file db_plugin.cpp.

Referenced by plugin_factory().

◆ db_del_token_op()

irods::error db_del_token_op ( irods::plugin_context _ctx,
const char *  _name_space,
const char *  _name 
)

Definition at line 12135 of file db_plugin.cpp.

Referenced by plugin_factory().

◆ db_del_unused_avus_op()

irods::error db_del_unused_avus_op ( irods::plugin_context _ctx)

Definition at line 12889 of file db_plugin.cpp.

Referenced by plugin_factory().

◆ db_del_user_re_op()

◆ db_del_zone_op()

◆ db_gen_query_access_control_setup_op()

irods::error db_gen_query_access_control_setup_op ( irods::plugin_context _ctx,
const char *  _user,
const char *  _zone,
const char *  _host,
int  _priv,
int  _control_flag 
)

Definition at line 15231 of file db_plugin.cpp.

Referenced by plugin_factory().

◆ db_gen_query_op()

irods::error db_gen_query_op ( irods::plugin_context _ctx,
genQueryInp_t _gen_query_inp,
genQueryOut_t _result 
)

Definition at line 15183 of file db_plugin.cpp.

Referenced by plugin_factory().

◆ db_gen_query_ticket_setup_op()

irods::error db_gen_query_ticket_setup_op ( irods::plugin_context _ctx,
const char *  _ticket,
const char *  _client_addr 
)

Definition at line 15284 of file db_plugin.cpp.

Referenced by plugin_factory().

◆ db_general_update_op()

irods::error db_general_update_op ( irods::plugin_context _ctx,
generalUpdateInp_t _update_inp 
)

Definition at line 15332 of file db_plugin.cpp.

Referenced by plugin_factory().

◆ db_get_distinct_data_obj_count_on_resource_op()

irods::error db_get_distinct_data_obj_count_on_resource_op ( irods::plugin_context _ctx,
const char *  _resc_name,
long long *  _count 
)

Definition at line 14069 of file db_plugin.cpp.

Referenced by plugin_factory().

◆ db_get_distinct_data_objs_missing_from_child_given_parent_op()

irods::error db_get_distinct_data_objs_missing_from_child_given_parent_op ( irods::plugin_context _ctx,
const std::string *  _parent,
const std::string *  _child,
int  _limit,
dist_child_result_t _results 
)

Definition at line 14132 of file db_plugin.cpp.

Referenced by plugin_factory().

◆ db_get_hierarchy_for_resc_op()

irods::error db_get_hierarchy_for_resc_op ( irods::plugin_context _ctx,
const std::string *  _resc_name,
const std::string *  _zone_name,
std::string *  _hierarchy 
)

Definition at line 14332 of file db_plugin.cpp.

Referenced by plugin_factory().

◆ db_get_icss_op()

irods::error db_get_icss_op ( irods::plugin_context _ctx,
icatSessionStruct **  _icss 
)

Definition at line 15135 of file db_plugin.cpp.

Referenced by plugin_factory().

◆ db_get_local_zone_op()

irods::error db_get_local_zone_op ( irods::plugin_context _ctx,
std::string *  _zone 
)

Definition at line 2049 of file db_plugin.cpp.

References getLocalZone(), icss, irods::error::ok(), PASS, irods::plugin_context::prop_map(), SUCCESS, and irods::plugin_context::valid().

Referenced by plugin_factory().

Here is the call graph for this function:

◆ db_get_repl_list_for_leaf_bundles_op()

irods::error db_get_repl_list_for_leaf_bundles_op ( irods::plugin_context _ctx,
rodsLong_t  _count,
size_t  _child_index,
const std::vector< leaf_bundle_t > *  _bundles,
const std::string *  _invocation_timestamp,
dist_child_result_t _results 
)

Definition at line 14229 of file db_plugin.cpp.

Referenced by plugin_factory().

◆ db_ins_dvm_table_op()

irods::error db_ins_dvm_table_op ( irods::plugin_context _ctx,
const char *  _base_name,
const char *  _var_name,
const char *  _action,
const char *  _var_2_cmap,
const char *  _my_time 
)

Definition at line 13055 of file db_plugin.cpp.

Referenced by plugin_factory().

◆ db_ins_fnm_table_op()

irods::error db_ins_fnm_table_op ( irods::plugin_context _ctx,
const char *  _base_name,
const char *  _func_name,
const char *  _func_2_cmap,
const char *  _my_time 
)

Definition at line 13178 of file db_plugin.cpp.

Referenced by plugin_factory().

◆ db_ins_msrvc_table_op()

irods::error db_ins_msrvc_table_op ( irods::plugin_context _ctx,
const char *  _module_name,
const char *  _msrvc_name,
const char *  _msrvc_signature,
const char *  _msrvc_version,
const char *  _msrvc_host,
const char *  _msrvc_location,
const char *  _msrvc_language,
const char *  _msrvc_type_name,
const char *  _msrvc_status,
const char *  _my_time 
)

Definition at line 13298 of file db_plugin.cpp.

Referenced by plugin_factory().

◆ db_ins_rule_table_op()

irods::error db_ins_rule_table_op ( irods::plugin_context _ctx,
const char *  _base_name,
const char *  _map_priority_str,
const char *  _rule_name,
const char *  _rule_head,
const char *  _rule_condition,
const char *  _rule_action,
const char *  _rule_recovery,
const char *  _rule_id_str,
const char *  _my_time 
)

Definition at line 12922 of file db_plugin.cpp.

Referenced by plugin_factory().

◆ db_make_limited_pw_op()

◆ db_make_temp_pw_op()

◆ db_mod_access_control_op()

irods::error db_mod_access_control_op ( irods::plugin_context _ctx,
const int  _recursive_flag,
const char *  _access_level,
const char *  _user_name,
const char *  _zone,
const char *  _path_name 
)

Definition at line 10563 of file db_plugin.cpp.

Referenced by plugin_factory().

◆ db_mod_access_control_resc_op()

irods::error db_mod_access_control_resc_op ( irods::plugin_context _ctx,
const int  _recursive_flag,
const char *  _access_level,
const char *  _user_name,
const char *  _zone,
const char *  _resc_name 
)

Definition at line 10382 of file db_plugin.cpp.

Referenced by plugin_factory().

◆ db_mod_avu_metadata_op()

irods::error db_mod_avu_metadata_op ( irods::plugin_context _ctx,
const char *  _type,
const char *  _name,
const char *  _attribute,
const char *  _value,
const char *  _unitsOrArg0,
const char *  _arg1,
const char *  _arg2,
const char *  _arg3 
)

Definition at line 9786 of file db_plugin.cpp.

Referenced by plugin_factory().

◆ db_mod_coll_op()

◆ db_mod_data_obj_meta_op()

irods::error db_mod_data_obj_meta_op ( irods::plugin_context _ctx,
dataObjInfo_t _data_obj_info,
keyValPair_t _reg_param 
)

Definition at line 2088 of file db_plugin.cpp.

References _rollback(), ACCESS_DELETE_OBJECT, ACCESS_MODIFY_METADATA, ACCESS_OWN, ACCESS_READ_OBJECT, ACL_COLLECTION_KW, addRErrorMsg(), ADMIN_KW, ALL_KW, ALL_REPL_STATUS_KW, authInfo_t::authFlag, userInfo_t::authInfo, CAT_INSUFFICIENT_PRIVILEGE_LEVEL, CAT_INVALID_ARGUMENT, CAT_INVALID_DATA_TYPE, CAT_NO_ACCESS_PERMISSION, CAT_SUCCESS_BUT_WITH_NO_INFO, CAT_UNKNOWN_COLLECTION, CAT_UNKNOWN_FILE, CHKSUM_KW, rsComm_t::clientUser, cmlCheckDataObjId(), cmlCheckDir(), cmlCheckNameToken(), cmlExecuteNoAnswerSql(), cmlGetIntegerValueFromSql(), cmlModifySingleTable(), cmlTicketUpdateWriteBytes(), CODE, COLL_ID_KW, irods::plugin_context::comm(), DATA_COMMENTS_KW, DATA_CREATE_KW, DATA_EXPIRY_KW, DATA_MODE_KW, DATA_MODIFY_KW, DATA_NAME_KW, DATA_OWNER_KW, DATA_OWNER_ZONE_KW, DATA_SIZE_KW, DATA_TYPE_KW, DataObjInfo::dataId, ERROR, FILE_PATH_KW, DataObjInfo::flags, getLocalZone(), getValByKey(), irods::resource_manager::hier_to_leaf_id(), icss, LOCAL_PRIV_USER_AUTH, LOG_ERROR, LOG_NOTICE, LOG_SQL, logSQL, MAX_NAME_LEN, mode, mySessionClientAddr, mySessionTicket, NAME_LEN, NEWLY_CREATED_COPY, NO_COMMIT_FLAG, NULL, DataObjInfo::objPath, irods::error::ok(), OLD_COPY, PASS, irods::plugin_context::prop_map(), REPL_NUM_KW, REPL_STATUS_KW, DataObjInfo::replNum, rsComm_t::rError, RESC_HIER_STR_KW, RESC_ID_KW, resc_mgr, RESC_NAME_KW, DataObjInfo::rescHier, rodsLog(), userInfo_t::rodsZone, splitPathByKey(), irods.pypyodbc::status, STATUS_STRING_KW, userInfo_t::userName, irods::plugin_context::valid(), and VERSION_KW.

Referenced by plugin_factory().

Here is the call graph for this function:

◆ db_mod_group_op()

◆ db_mod_resc_data_paths_op()

◆ db_mod_resc_freespace_op()

◆ db_mod_resc_op()

◆ db_mod_rule_exec_op()

◆ db_mod_ticket_op()

irods::error db_mod_ticket_op ( irods::plugin_context _ctx,
const char *  _op_name,
const char *  _ticket_string,
const char *  _arg3,
const char *  _arg4,
const char *  _arg5 
)

Definition at line 14430 of file db_plugin.cpp.

Referenced by plugin_factory().

◆ db_mod_user_op()

irods::error db_mod_user_op ( irods::plugin_context _ctx,
const char *  _user_name,
const char *  _option,
const char *  _new_value 
)

◆ db_mod_zone_coll_acl_op()

irods::error db_mod_zone_coll_acl_op ( irods::plugin_context _ctx,
const char *  _access_level,
const char *  _user_name,
const char *  _path_name 
)

Definition at line 5598 of file db_plugin.cpp.

References CAT_INVALID_ARGUMENT, chlModAccessControl(), rsComm_t::clientUser, CODE, irods::plugin_context::comm(), ERROR, NULL, irods::error::ok(), PASS, PATH_SEPARATOR, userInfo_t::rodsZone, irods.pypyodbc::status, and irods::plugin_context::valid().

Referenced by plugin_factory().

Here is the call graph for this function:

◆ db_mod_zone_op()

◆ db_move_object_op()

irods::error db_move_object_op ( irods::plugin_context _ctx,
rodsLong_t  _obj_id,
rodsLong_t  _target_coll_id 
)

Definition at line 11556 of file db_plugin.cpp.

Referenced by plugin_factory().

◆ db_open_op()

◆ db_purge_server_load_digest_op()

irods::error db_purge_server_load_digest_op ( irods::plugin_context _ctx,
const char *  _seconds_ago 
)

Definition at line 12464 of file db_plugin.cpp.

Referenced by plugin_factory().

◆ db_purge_server_load_op()

irods::error db_purge_server_load_op ( irods::plugin_context _ctx,
const char *  _seconds_ago 
)

Definition at line 12321 of file db_plugin.cpp.

Referenced by plugin_factory().

◆ db_reg_coll_by_admin_op()

◆ db_reg_coll_op()

◆ db_reg_data_obj_op()

◆ db_reg_replica_op()

◆ db_reg_resc_op()

◆ db_reg_rule_exec_op()

◆ db_reg_server_load_digest_op()

irods::error db_reg_server_load_digest_op ( irods::plugin_context _ctx,
const char *  _resc_name,
const char *  _load_factor 
)

Definition at line 12391 of file db_plugin.cpp.

Referenced by plugin_factory().

◆ db_reg_server_load_op()

irods::error db_reg_server_load_op ( irods::plugin_context _ctx,
const char *  _host_name,
const char *  _resc_name,
const char *  _cpu_used,
const char *  _mem_used,
const char *  _swap_used,
const char *  _run_q_load,
const char *  _disk_space,
const char *  _net_input,
const char *  _net_output 
)

Definition at line 12235 of file db_plugin.cpp.

Referenced by plugin_factory().

◆ db_reg_token_op()

irods::error db_reg_token_op ( irods::plugin_context _ctx,
const char *  _name_space,
const char *  _name,
const char *  _value,
const char *  _value2,
const char *  _value3,
const char *  _comment 
)

Definition at line 11973 of file db_plugin.cpp.

Referenced by plugin_factory().

◆ db_reg_user_re_op()

◆ db_reg_zone_op()

◆ db_rename_coll_op()

irods::error db_rename_coll_op ( irods::plugin_context _ctx,
const char *  _old_coll,
const char *  _new_coll 
)

Definition at line 5533 of file db_plugin.cpp.

References ACCESS_OWN, CAT_INVALID_ARGUMENT, chlRenameObject(), rsComm_t::clientUser, cmlCheckDir(), CODE, irods::plugin_context::comm(), ERROR, icss, LOG_SQL, logSQL, irods::error::ok(), PASS, rodsLog(), userInfo_t::rodsZone, irods.pypyodbc::status, userInfo_t::userName, and irods::plugin_context::valid().

Referenced by plugin_factory().

Here is the call graph for this function:

◆ db_rename_local_zone_op()

◆ db_rename_object_op()

irods::error db_rename_object_op ( irods::plugin_context _ctx,
rodsLong_t  _obj_id,
const char *  _new_name 
)

Definition at line 11184 of file db_plugin.cpp.

Referenced by plugin_factory().

◆ db_rollback_op()

irods::error db_rollback_op ( irods::plugin_context _ctx)

Definition at line 4313 of file db_plugin.cpp.

References cmlExecuteNoAnswerSql(), CODE, ERROR, icss, LOG_NOTICE, LOG_SQL, logSQL, irods::error::ok(), PASS, rodsLog(), irods.pypyodbc::status, and irods::plugin_context::valid().

Referenced by plugin_factory().

Here is the call graph for this function:

◆ db_set_avu_metadata_op()

irods::error db_set_avu_metadata_op ( irods::plugin_context _ctx,
const char *  _type,
const char *  _name,
const char *  _attribute,
const char *  _new_value,
const char *  _new_unit 
)

◆ db_set_quota_op()

irods::error db_set_quota_op ( irods::plugin_context _ctx,
const char *  _type,
const char *  _name,
const char *  _resc_name,
const char *  _limit 
)

Definition at line 12614 of file db_plugin.cpp.

Referenced by plugin_factory().

◆ db_simple_query_op()

irods::error db_simple_query_op ( irods::plugin_context _ctx,
const char *  _sql,
const char *  _arg1,
const char *  _arg2,
const char *  _arg3,
const char *  _arg4,
int  _format,
int _control,
char *  _out_buf,
int  _max_out_buf 
)

Definition at line 6255 of file db_plugin.cpp.

References db_simple_query_op_vector(), and NULL.

Referenced by plugin_factory().

Here is the call graph for this function:

◆ db_simple_query_op_vector()

irods::error db_simple_query_op_vector ( irods::plugin_context _ctx,
const char *  _sql,
std::vector< std::string >  _bindVars,
int  _format,
int _control,
char *  _out_buf,
int  _max_out_buf 
)

◆ db_specific_query_op()

irods::error db_specific_query_op ( irods::plugin_context _ctx,
specificQueryInp_t _spec_query_inp,
genQueryOut_t _result 
)

Definition at line 13827 of file db_plugin.cpp.

Referenced by plugin_factory().

◆ db_start_op()

irods::error db_start_op ( irods::plugin_context _ctx)

Definition at line 1804 of file db_plugin.cpp.

References irods::error::ok(), PASS, and irods::plugin_context::valid().

Referenced by plugin_factory().

Here is the call graph for this function:

◆ db_start_operation()

irods::error db_start_operation ( irods::plugin_property_map _props)

Definition at line 15375 of file db_plugin.cpp.

References SUCCESS.

Referenced by postgres_database_plugin::postgres_database_plugin().

◆ db_unreg_replica_op()

◆ db_update_pam_password_op()

◆ db_update_resc_obj_count_op()

irods::error db_update_resc_obj_count_op ( irods::plugin_context _ctx,
const std::string *  _resc,
int  _delta 
)

Definition at line 2077 of file db_plugin.cpp.

References SUCCESS.

Referenced by plugin_factory().

◆ db_version_dvm_base_op()

irods::error db_version_dvm_base_op ( irods::plugin_context _ctx,
const char *  _base_name,
const char *  _my_time 
)

Definition at line 13529 of file db_plugin.cpp.

Referenced by plugin_factory().

◆ db_version_fnm_base_op()

irods::error db_version_fnm_base_op ( irods::plugin_context _ctx,
const char *  _base_name,
const char *  _my_time 
)

Definition at line 13589 of file db_plugin.cpp.

Referenced by plugin_factory().

◆ db_version_rule_base_op()

irods::error db_version_rule_base_op ( irods::plugin_context _ctx,
const char *  _base_name,
const char *  _my_time 
)

Definition at line 13469 of file db_plugin.cpp.

Referenced by plugin_factory().

◆ decodePw()

int decodePw ( rsComm_t rsComm,
const char *  in,
char *  out 
)

Definition at line 1035 of file db_plugin.cpp.

References _rollback(), addRErrorMsg(), CAT_INVALID_USER, CAT_NO_ROWS_FOUND, CAT_PASSWORD_ENCODING_ERROR, rsComm_t::clientUser, cmlGetStringValueFromSql(), icatDescramble(), icss, LOG_SQL, logSQL, MAX_PASSWORD_LEN, NULL, obfDecodeByKeyV2(), manual_cleanup::out, prevChalSig, rsComm_t::rError, rodsLog(), userInfo_t::rodsZone, irods.pypyodbc::status, and userInfo_t::userName.

Referenced by db_mod_user_op().

Here is the call graph for this function:

◆ determine_user_has_modify_metadata_access()

irods::error determine_user_has_modify_metadata_access ( const std::string &  _data_name,
const std::string &  _collection,
const std::string &  _user_name,
const std::string &  _zone 
)

Definition at line 294 of file db_plugin.cpp.

References _rollback(), CAT_NO_ACCESS_PERMISSION, CAT_NO_ROWS_FOUND, cmlGetIntegerValueFromSql(), CODE, ERROR, icss, LOG_DEBUG, rodsLog(), and irods.pypyodbc::status.

Referenced by db_add_avu_metadata_wild_op().

Here is the call graph for this function:

◆ extract_resource_properties_for_operations()

static irods::error extract_resource_properties_for_operations ( const std::string &  _resc_name,
std::string &  _resc_id,
std::string &  _resc_parent 
)
static

Definition at line 3688 of file db_plugin.cpp.

References ERROR, INVALID_LEXICAL_CAST, irods::error::ok(), PASS, resc_mgr, irods::resource_manager::resolve(), irods::RESOURCE_ID(), irods::RESOURCE_PARENT(), and SUCCESS.

Referenced by db_add_child_resc_op(), and db_del_child_resc_op().

Here is the call graph for this function:

◆ findAVU()

rodsLong_t findAVU ( const char *  attribute,
const char *  value,
const char *  units 
)

Definition at line 1297 of file db_plugin.cpp.

References cmlGetIntegerValueFromSql(), icss, LOG_SQL, logSQL, rodsLog(), irods.pypyodbc::status, and get_irods_version::value.

Referenced by findOrInsertAVU().

Here is the call graph for this function:

◆ findOrInsertAVU()

int findOrInsertAVU ( const char *  attribute,
const char *  value,
const char *  units 
)

Definition at line 1344 of file db_plugin.cpp.

References cllBindVarCount, cllBindVars, cmlExecuteNoAnswerSql(), cmlGetNextSeqVal(), findAVU(), getNowStr(), icss, LOG_NOTICE, LOG_SQL, logSQL, MAX_NAME_LEN, rodsLog(), irods.pypyodbc::status, and get_irods_version::value.

Referenced by db_add_avu_metadata_wild_op().

Here is the call graph for this function:

◆ get64RandomBytes()

int get64RandomBytes ( char *  buf)

◆ get_object_count_of_resource_by_name()

int get_object_count_of_resource_by_name ( icatSessionStruct _icss,
const std::string &  _resc_name,
rodsLong_t _count 
)

Definition at line 253 of file db_plugin.cpp.

References cmlGetIntegerValueFromSql(), irods::error::code(), irods::resource_manager::hier_to_leaf_id(), irods::log(), irods::error::ok(), PASS, resc_mgr, irods.pypyodbc::status, and SYS_RESC_DOES_NOT_EXIST.

Referenced by _rescHasData().

Here is the call graph for this function:

◆ getLocalZone()

◆ hostname_resolves_to_ipv4()

static int hostname_resolves_to_ipv4 ( const char *  _hostname)
static

Definition at line 509 of file db_plugin.cpp.

References getaddrinfo_with_retry().

Referenced by _resolveHostName().

Here is the call graph for this function:

◆ icatApplyRule()

int icatApplyRule ( rsComm_t rsComm,
char *  ruleName,
char *  arg1 
)

Definition at line 213 of file rsUserAdmin.cpp.

References applyRuleArg(), rsComm_t::clientUser, LOG_DEBUG, NO_SAVE_REI, rsComm_t::proxyUser, rodsLog(), and irods.pypyodbc::status.

Referenced by db_mod_user_op().

Here is the call graph for this function:

◆ icatDescramble()

static int icatDescramble ( char *  pw)
static

Definition at line 985 of file db_plugin.cpp.

References MAX_PASSWORD_LEN, NULL, obfDecodeByKey(), PASSWORD_DEFAULT_KEY, PASSWORD_KEY_ENV_VAR, and PASSWORD_SCRAMBLE_PREFIX.

Referenced by db_check_auth_op(), db_make_limited_pw_op(), db_make_temp_pw_op(), db_update_pam_password_op(), and decodePw().

Here is the call graph for this function:

◆ icatGetTicketGroupId()

int icatGetTicketGroupId ( irods::plugin_property_map _prop_map,
const char *  groupName,
char *  groupIdStr 
)

Definition at line 1728 of file db_plugin.cpp.

References CAT_INVALID_GROUP, CAT_NO_ROWS_FOUND, cmlGetStringValueFromSql(), irods::error::code(), getLocalZone(), icss, LOG_SQL, logSQL, NAME_LEN, irods::error::ok(), rodsLog(), rstrcpy(), irods.pypyodbc::status, and validateAndParseUserName().

Here is the call graph for this function:

◆ icatGetTicketUserId()

int icatGetTicketUserId ( irods::plugin_property_map _prop_map,
const char *  userName,
char *  userIdStr 
)

Definition at line 1682 of file db_plugin.cpp.

References CAT_INVALID_USER, CAT_NO_ROWS_FOUND, cmlGetStringValueFromSql(), irods::error::code(), getLocalZone(), icss, LOG_SQL, logSQL, NAME_LEN, irods::error::ok(), rodsLog(), rstrcpy(), irods.pypyodbc::status, and validateAndParseUserName().

Here is the call graph for this function:

◆ icatScramble()

static int icatScramble ( char *  pw)
static

Definition at line 1015 of file db_plugin.cpp.

References MAX_PASSWORD_LEN, NULL, obfEncodeByKey(), PASSWORD_DEFAULT_KEY, PASSWORD_KEY_ENV_VAR, and PASSWORD_SCRAMBLE_PREFIX.

Referenced by db_make_limited_pw_op(), db_mod_user_op(), and db_update_pam_password_op().

Here is the call graph for this function:

◆ ICSS_PROP()

const std::string ICSS_PROP ( "irods_icss_property"  )

◆ make_db_ptr()

irods::error make_db_ptr ( const irods::first_class_object_ptr _fc,
irods::postgres_object_ptr _pg 
)

Definition at line 162 of file db_plugin.cpp.

References ERROR, INVALID_DYNAMIC_CAST, SUCCESS, and SYS_INVALID_INPUT_PARAM.

◆ makeEscapedPath()

std::string makeEscapedPath ( const std::string &  inPath)

Definition at line 1392 of file db_plugin.cpp.

Referenced by _modInheritance().

◆ plugin_factory()

irods::database* plugin_factory ( const std::string &  _inst_name,
const std::string &  _context 
)

Definition at line 15413 of file db_plugin.cpp.

References irods::plugin_base::add_operation(), irods::DATABASE_OP_ADD_AVU_METADATA(), irods::DATABASE_OP_ADD_AVU_METADATA_WILD(), irods::DATABASE_OP_ADD_CHILD_RESC(), irods::DATABASE_OP_ADD_SPECIFIC_QUERY(), irods::DATABASE_OP_CALC_USAGE_AND_QUOTA(), irods::DATABASE_OP_CHECK_AND_GET_OBJ_ID(), irods::DATABASE_OP_CHECK_AUTH(), irods::DATABASE_OP_CHECK_QUOTA(), irods::DATABASE_OP_CLOSE(), irods::DATABASE_OP_COMMIT(), irods::DATABASE_OP_COPY_AVU_METADATA(), irods::DATABASE_OP_DEBUG(), irods::DATABASE_OP_DEL_AVU_METADATA(), irods::DATABASE_OP_DEL_CHILD_RESC(), irods::DATABASE_OP_DEL_COLL(), irods::DATABASE_OP_DEL_COLL_BY_ADMIN(), irods::DATABASE_OP_DEL_RESC(), irods::DATABASE_OP_DEL_RULE_EXEC(), irods::DATABASE_OP_DEL_SPECIFIC_QUERY(), irods::DATABASE_OP_DEL_TOKEN(), irods::DATABASE_OP_DEL_UNUSED_AVUS(), irods::DATABASE_OP_DEL_USER_RE(), irods::DATABASE_OP_DEL_ZONE(), irods::DATABASE_OP_GEN_QUERY(), irods::DATABASE_OP_GEN_QUERY_ACCESS_CONTROL_SETUP(), irods::DATABASE_OP_GEN_QUERY_TICKET_SETUP(), irods::DATABASE_OP_GENERAL_UPDATE(), irods::DATABASE_OP_GET_DISTINCT_DATA_OBJ_COUNT_ON_RESOURCE(), irods::DATABASE_OP_GET_DISTINCT_DATA_OBJS_MISSING_FROM_CHILD_GIVEN_PARENT(), irods::DATABASE_OP_GET_HIERARCHY_FOR_RESC(), irods::DATABASE_OP_GET_LOCAL_ZONE(), irods::DATABASE_OP_GET_RCS(), irods::DATABASE_OP_GET_REPL_LIST_FOR_LEAF_BUNDLES(), irods::DATABASE_OP_INS_DVM_TABLE(), irods::DATABASE_OP_INS_FNM_TABLE(), irods::DATABASE_OP_INS_MSRVC_TABLE(), irods::DATABASE_OP_INS_RULE_TABLE(), irods::DATABASE_OP_MAKE_LIMITED_PW(), irods::DATABASE_OP_MAKE_TEMP_PW(), irods::DATABASE_OP_MOD_ACCESS_CONTROL(), irods::DATABASE_OP_MOD_ACCESS_CONTROL_RESC(), irods::DATABASE_OP_MOD_AVU_METADATA(), irods::DATABASE_OP_MOD_COLL(), irods::DATABASE_OP_MOD_DATA_OBJ_META(), irods::DATABASE_OP_MOD_GROUP(), irods::DATABASE_OP_MOD_RESC(), irods::DATABASE_OP_MOD_RESC_DATA_PATHS(), irods::DATABASE_OP_MOD_RESC_FREESPACE(), irods::DATABASE_OP_MOD_RULE_EXEC(), irods::DATABASE_OP_MOD_TICKET(), irods::DATABASE_OP_MOD_USER(), irods::DATABASE_OP_MOD_ZONE(), irods::DATABASE_OP_MOD_ZONE_COLL_ACL(), irods::DATABASE_OP_MOVE_OBJECT(), irods::DATABASE_OP_OPEN(), irods::DATABASE_OP_PURGE_SERVER_LOAD(), irods::DATABASE_OP_PURGE_SERVER_LOAD_DIGEST(), irods::DATABASE_OP_REG_COLL(), irods::DATABASE_OP_REG_COLL_BY_ADMIN(), irods::DATABASE_OP_REG_DATA_OBJ(), irods::DATABASE_OP_REG_REPLICA(), irods::DATABASE_OP_REG_RESC(), irods::DATABASE_OP_REG_RULE_EXEC(), irods::DATABASE_OP_REG_SERVER_LOAD(), irods::DATABASE_OP_REG_SERVER_LOAD_DIGEST(), irods::DATABASE_OP_REG_TOKEN(), irods::DATABASE_OP_REG_USER_RE(), irods::DATABASE_OP_REG_ZONE(), irods::DATABASE_OP_RENAME_COLL(), irods::DATABASE_OP_RENAME_LOCAL_ZONE(), irods::DATABASE_OP_RENAME_OBJECT(), irods::DATABASE_OP_ROLLBACK(), irods::DATABASE_OP_SET_AVU_METADATA(), irods::DATABASE_OP_SET_QUOTA(), irods::DATABASE_OP_SIMPLE_QUERY(), irods::DATABASE_OP_SPECIFIC_QUERY(), irods::DATABASE_OP_START(), irods::DATABASE_OP_UNREG_REPLICA(), irods::DATABASE_OP_UPDATE_PAM_PASSWORD(), irods::DATABASE_OP_UPDATE_RESC_OBJ_COUNT(), irods::DATABASE_OP_VERSION_DVM_BASE(), irods::DATABASE_OP_VERSION_FNM_BASE(), irods::DATABASE_OP_VERSION_RULE_BASE(), db_add_avu_metadata_op(), db_add_avu_metadata_wild_op(), db_add_child_resc_op(), db_add_specific_query_op(), db_calc_usage_and_quota_op(), db_check_and_get_object_id_op(), db_check_auth_op(), db_check_quota_op(), db_close_op(), db_commit_op(), db_copy_avu_metadata_op(), db_debug_op(), db_del_avu_metadata_op(), db_del_child_resc_op(), db_del_coll_by_admin_op(), db_del_coll_op(), db_del_resc_op(), db_del_rule_exec_op(), db_del_specific_query_op(), db_del_token_op(), db_del_unused_avus_op(), db_del_user_re_op(), db_del_zone_op(), db_gen_query_access_control_setup_op(), db_gen_query_op(), db_gen_query_ticket_setup_op(), db_general_update_op(), db_get_distinct_data_obj_count_on_resource_op(), db_get_distinct_data_objs_missing_from_child_given_parent_op(), db_get_hierarchy_for_resc_op(), db_get_icss_op(), db_get_local_zone_op(), db_get_repl_list_for_leaf_bundles_op(), db_ins_dvm_table_op(), db_ins_fnm_table_op(), db_ins_msrvc_table_op(), db_ins_rule_table_op(), db_make_limited_pw_op(), db_make_temp_pw_op(), db_mod_access_control_op(), db_mod_access_control_resc_op(), db_mod_avu_metadata_op(), db_mod_coll_op(), db_mod_data_obj_meta_op(), db_mod_group_op(), db_mod_resc_data_paths_op(), db_mod_resc_freespace_op(), db_mod_resc_op(), db_mod_rule_exec_op(), db_mod_ticket_op(), db_mod_user_op(), db_mod_zone_coll_acl_op(), db_mod_zone_op(), db_move_object_op(), db_open_op(), db_purge_server_load_digest_op(), db_purge_server_load_op(), db_reg_coll_by_admin_op(), db_reg_coll_op(), db_reg_data_obj_op(), db_reg_replica_op(), db_reg_resc_op(), db_reg_rule_exec_op(), db_reg_server_load_digest_op(), db_reg_server_load_op(), db_reg_token_op(), db_reg_user_re_op(), db_reg_zone_op(), db_rename_coll_op(), db_rename_local_zone_op(), db_rename_object_op(), db_rollback_op(), db_set_avu_metadata_op(), db_set_quota_op(), db_simple_query_op(), db_specific_query_op(), db_start_op(), db_unreg_replica_op(), db_update_pam_password_op(), db_update_resc_obj_count_op(), db_version_dvm_base_op(), db_version_fnm_base_op(), db_version_rule_base_op(), error, and int().

Here is the call graph for this function:

◆ removeAVUs()

static int removeAVUs ( )
static

Definition at line 465 of file db_plugin.cpp.

References cllBindVarCount, cmlExecuteNoAnswerSql(), icss, LOG_DEBUG, LOG_SQL, logSQL, MAX_SQL_SIZE, rodsLog(), irods.pypyodbc::status, and tSQL.

Here is the call graph for this function:

◆ removeMetaMapAndAVU()

void removeMetaMapAndAVU ( char *  dataObjNumber)

Definition at line 442 of file db_plugin.cpp.

References cllBindVarCount, cllBindVars, cmlExecuteNoAnswerSql(), icss, LOG_SQL, logSQL, MAX_SQL_SIZE, rodsLog(), irods.pypyodbc::status, and tSQL.

Referenced by _delColl(), db_del_coll_by_admin_op(), db_del_resc_op(), db_del_user_re_op(), and db_unreg_replica_op().

Here is the call graph for this function:

◆ setOverQuota()

int setOverQuota ( rsComm_t rsComm)

Definition at line 1477 of file db_plugin.cpp.

References CAT_NO_ROWS_FOUND, CAT_SUCCESS_BUT_WITH_NO_INFO, cllBindVarCount, cllBindVars, cmlExecuteNoAnswerSql(), cmlFreeStatement(), cmlGetFirstRowFromSql(), cmlGetNextRowFromStatement(), getNowStr(), icss, LOG_SQL, logSQL, MAX_SQL_SIZE, icatStmtStrct::resultValue, rodsLog(), irods.pypyodbc::status, icatSessionStruct::stmtPtr, and UNINITIALIZED_STATEMENT_NUMBER.

Here is the call graph for this function:

◆ validate_resource_name()

irods::error validate_resource_name ( std::string  _resc_name)
Description:\n function for validating a resource name

Definition at line 666 of file db_plugin.cpp.

References ERROR, SUCCESS, and SYS_INVALID_INPUT_PARAM.

Referenced by db_reg_resc_op().

◆ validate_zone_name()

irods::error validate_zone_name ( std::string  _zone_name)
Description:\n function for validating the name of a zone

Definition at line 772 of file db_plugin.cpp.

References allowed_zone_char(), ERROR, NAME_LEN, SUCCESS, and SYS_INVALID_INPUT_PARAM.

Referenced by db_mod_zone_op(), and db_reg_zone_op().

Here is the call graph for this function:

◆ validateAndParseUserName()

int validateAndParseUserName ( const char *  fullUserNameIn,
char *  userName,
char *  userZone 
)

◆ verify_auth_response()

static irods::error verify_auth_response ( const char *  _scheme,
const char *  _challenge,
const char *  _user_name,
const char *  _response 
)
static

Definition at line 931 of file db_plugin.cpp.

References irods::AUTH_AGENT_AUTH_VERIFY(), irods::auth_factory(), irods::AUTH_INTERFACE(), ERROR, irods::log(), irods::error::ok(), PASS, SUCCESS, and SYS_INVALID_INPUT_PARAM.

Referenced by db_check_auth_op().

Here is the call graph for this function:

◆ verify_non_root_vault_path()

irods::error verify_non_root_vault_path ( irods::plugin_context _ctx,
const std::string &  path 
)

Definition at line 544 of file db_plugin.cpp.

References addRErrorMsg(), CAT_INVALID_RESOURCE_VAULT_PATH, irods::plugin_context::comm(), ERROR, rsComm_t::rError, and SUCCESS.

Referenced by db_mod_resc_op(), and db_reg_resc_op().

Here is the call graph for this function:

◆ ZONE_PROP()

const std::string ZONE_PROP ( "irods_zone_property"  )

Referenced by getLocalZone().

Variable Documentation

◆ creatingUserByGroupAdmin

int creatingUserByGroupAdmin

Definition at line 100 of file db_plugin.cpp.

Referenced by db_reg_coll_by_admin_op(), and db_reg_user_re_op().

◆ icss

Definition at line 97 of file db_plugin.cpp.

Referenced by _canConnectToCatalog(), _childIsValid(), _cllExecSqlNoResult(), _cllFreeStatementColumns(), _delColl(), _modInheritance(), _rescHasParentOrChild(), _rollback(), _updateChildParent(), _userInRUserAuth(), checkAndGetObjectId(), checkCondInputAccess(), checkObjIdByTicket(), chl_gen_query_impl(), chl_general_update_impl(), cllCloseEnv(), cllConnect(), cllDisconnect(), cllExecSqlNoResult(), cllExecSqlWithResult(), cllExecSqlWithResultBV(), cllFreeStatement(), cllGetRow(), cllGetRowCount(), cllOpenEnv(), cmlAudit1(), cmlAudit2(), cmlAudit3(), cmlAudit4(), cmlAudit5(), cmlCheckDataObjId(), cmlCheckDataObjOnly(), cmlCheckDataObjOwn(), cmlCheckDir(), cmlCheckDirAndGetInheritFlag(), cmlCheckDirId(), cmlCheckDirOwn(), cmlCheckGroupAdminAccess(), cmlCheckNameToken(), cmlCheckResc(), cmlCheckTicketRestrictions(), cmlCheckUserInGroup(), cmlClose(), cmlExecuteNoAnswerSql(), cmlFreeStatement(), cmlGetCurrentSeqVal(), cmlGetFirstRowFromSql(), cmlGetFirstRowFromSqlBV(), cmlGetGroupMemberCount(), cmlGetIntegerValueFromSql(), cmlGetIntegerValueFromSqlV3(), cmlGetMultiRowStringValuesFromSql(), cmlGetNextRowFromStatement(), cmlGetNextSeqStr(), cmlGetNextSeqVal(), cmlGetOneRowFromSql(), cmlGetOneRowFromSqlBV(), cmlGetOneRowFromSqlV2(), cmlGetOneRowFromSqlV3(), cmlGetStringValueFromSql(), cmlGetStringValuesFromSql(), cmlModifySingleTable(), cmlOpen(), cmlTest(), cmlTicketUpdateWriteBytes(), db_add_avu_metadata_wild_op(), db_add_child_resc_op(), db_check_auth_op(), db_close_op(), db_commit_op(), db_del_child_resc_op(), db_del_coll_by_admin_op(), db_del_coll_op(), db_del_resc_op(), db_del_rule_exec_op(), db_del_user_re_op(), db_del_zone_op(), db_get_local_zone_op(), db_make_limited_pw_op(), db_make_temp_pw_op(), db_mod_coll_op(), db_mod_data_obj_meta_op(), db_mod_group_op(), db_mod_resc_data_paths_op(), db_mod_resc_freespace_op(), db_mod_resc_op(), db_mod_rule_exec_op(), db_mod_user_op(), db_mod_zone_op(), db_open_op(), db_reg_coll_by_admin_op(), db_reg_coll_op(), db_reg_data_obj_op(), db_reg_replica_op(), db_reg_resc_op(), db_reg_rule_exec_op(), db_reg_user_re_op(), db_reg_zone_op(), db_rename_coll_op(), db_rename_local_zone_op(), db_rollback_op(), db_set_avu_metadata_op(), db_simple_query_op_vector(), db_unreg_replica_op(), db_update_pam_password_op(), decodePw(), determine_user_has_modify_metadata_access(), findAVU(), findOrInsertAVU(), icatGetTicketGroupId(), icatGetTicketUserId(), postgres_database_plugin::postgres_database_plugin(), removeAVUs(), removeMetaMapAndAVU(), and setOverQuota().

◆ irods_pam_auth_no_extend

bool irods_pam_auth_no_extend = false

Definition at line 90 of file db_plugin.cpp.

Referenced by db_open_op(), and db_update_pam_password_op().

◆ irods_pam_password_default_time

char irods_pam_password_default_time[ 64] = { "1209600" }

Definition at line 94 of file db_plugin.cpp.

Referenced by db_open_op(), and db_update_pam_password_op().

◆ irods_pam_password_len

size_t irods_pam_password_len = 20

Definition at line 91 of file db_plugin.cpp.

Referenced by db_open_op(), and db_update_pam_password_op().

◆ irods_pam_password_max_time

char irods_pam_password_max_time[ 64] = { "1209600" }

◆ irods_pam_password_min_time

char irods_pam_password_min_time[ 64] = { "121" }

◆ log_sql_flg

size_t log_sql_flg = 0

Definition at line 96 of file db_plugin.cpp.

◆ logSQL

int logSQL

This file contains most of the ICAT (iRODS Catalog) high Level functions. These, along with chlGeneralQuery, constitute the API between and Server (and microservices) and the ICAT code. Each of the API routine names start with 'chl' for Catalog High Level. Others are internal.

Also see icatGeneralQuery.cpp for chlGeneralQuery, the other ICAT high level API call.

Definition at line 38 of file icatHighLevelRoutines.cpp.

Referenced by _childIsValid(), _delColl(), _modInheritance(), _rescHasData(), _rescHasParentOrChild(), _updateChildParent(), _userInRUserAuth(), checkAndGetObjectId(), chlDebug(), db_add_avu_metadata_wild_op(), db_add_child_resc_op(), db_check_auth_op(), db_commit_op(), db_debug_op(), db_del_child_resc_op(), db_del_coll_by_admin_op(), db_del_coll_op(), db_del_resc_op(), db_del_rule_exec_op(), db_del_user_re_op(), db_del_zone_op(), db_make_limited_pw_op(), db_make_temp_pw_op(), db_mod_coll_op(), db_mod_data_obj_meta_op(), db_mod_group_op(), db_mod_resc_data_paths_op(), db_mod_resc_freespace_op(), db_mod_resc_op(), db_mod_rule_exec_op(), db_mod_user_op(), db_mod_zone_op(), db_open_op(), db_reg_coll_by_admin_op(), db_reg_coll_op(), db_reg_data_obj_op(), db_reg_replica_op(), db_reg_resc_op(), db_reg_rule_exec_op(), db_reg_user_re_op(), db_reg_zone_op(), db_rename_coll_op(), db_rename_local_zone_op(), db_rollback_op(), db_set_avu_metadata_op(), db_simple_query_op_vector(), db_unreg_replica_op(), db_update_pam_password_op(), decodePw(), findAVU(), findOrInsertAVU(), icatGetTicketGroupId(), icatGetTicketUserId(), removeAVUs(), removeMetaMapAndAVU(), and setOverQuota().

◆ MAX_PASSWORDS

rodsLong_t MAX_PASSWORDS = 40
static

Definition at line 72 of file db_plugin.cpp.

Referenced by db_check_auth_op().

◆ mySessionClientAddr

char mySessionClientAddr[64]

Definition at line 102 of file db_plugin.cpp.

Referenced by db_mod_data_obj_meta_op(), db_reg_coll_op(), and db_reg_data_obj_op().

◆ mySessionTicket

char mySessionTicket[64]

Definition at line 101 of file db_plugin.cpp.

Referenced by db_mod_data_obj_meta_op(), db_reg_coll_op(), and db_reg_data_obj_op().

◆ prevChalSig

char prevChalSig[200]
static

Definition at line 60 of file db_plugin.cpp.

Referenced by db_check_auth_op(), and decodePw().

◆ resc_mgr

Definition at line 31 of file irods_resource_manager.cpp.

Referenced by _rsBulkDataObjReg(), _rsDataObjCreateWithResc(), _rsPhyPathReg(), _rsProcStat(), add_resc_hier_name_to_query_out(), agentMain(), bulkProcAndRegSubfile(), checkDupReplica(), chkFilePathPerm(), chkOrphanFile(), createBunDirForBulkPut(), createEmptyRepl(), createPhyBundleDataObj(), dataObjOpenForRepl(), dataObjUnlinkS(), db_mod_data_obj_meta_op(), db_unreg_replica_op(), dirPathReg(), extract_resource_properties_for_operations(), filePathReg(), filePathRegRepl(), filePathTypeInResc(), fillBulkDataObjRegInp(), find_compound_resource_in_hierarchy(), get_coordinating_resources(), irods::get_host_for_hier_string(), irods::get_host_status_by_host_info(), irods::get_loc_for_hier_string(), get_object_count_of_resource_by_name(), get_resc_id_cond_for_hier_cond(), irods::get_resc_properties_as_kvp(), irods::get_resc_type_for_hier_string(), get_resource_array(), irods::get_resource_property(), get_server_reports(), irods::get_vault_path_for_hier_string(), getDataObjInfo(), getLeafRescPathName(), initDataObjInfoForRepl(), initDataObjInfoWithInp(), initServer(), initServerInfo(), irsPhyPathReg(), irods::is_hier_live(), matchCliVaultPath(), moveMountedCollDataObj(), open_for_prefer_archive_policy(), openSpecColl(), regSubfile(), repl_file_rebalance(), repl_object(), irods::request_vote_for_file_object(), irods::file_object::resolve(), resolve_hierarchy_for_resc_from_cond_input(), irods::resolve_resource_hierarchy(), irods::resource_redirect(), rsFileStat(), irods::set_resource_property(), setRescQuota(), specCollSubStat(), syncCollPhyPath(), irods::update_out_of_date_replicas(), and updatequotaOverrun().