CUBRID Engine
latest
|
#include <stdio.h>
#include <stdlib.h>
#include "error_manager.h"
#include "class_object.h"
#include "databases_file.h"
#include "object_fetch.h"
Go to the source code of this file.
Macros | |
#define | AU_TYPE DB_AUTH |
#define | AU_NONE DB_AUTH_NONE |
#define | AU_SELECT DB_AUTH_SELECT |
#define | AU_INSERT DB_AUTH_INSERT |
#define | AU_UPDATE DB_AUTH_UPDATE |
#define | AU_DELETE DB_AUTH_DELETE |
#define | AU_ALTER DB_AUTH_ALTER |
#define | AU_INDEX DB_AUTH_INDEX |
#define | AU_EXECUTE DB_AUTH_EXECUTE |
#define | AU_TYPE_MASK 0x7F |
#define | AU_GRANT_MASK 0x7F00 |
#define | AU_FULL_AUTHORIZATION 0x7F7F |
#define | AU_NO_AUTHORIZATION 0 |
#define | AU_GRANT_SHIFT 8 |
#define | AU_CACHE_INVALID 0x80000000 |
#define | AU_DISABLE(save) |
#define | AU_ENABLE(save) |
#define | AU_SAVE_AND_ENABLE(save) |
#define | AU_SAVE_AND_DISABLE(save) |
#define | AU_RESTORE(save) |
#define | AU_DISABLE_PASSWORDS au_disable_passwords |
#define | AU_SET_USER au_set_user |
#define | AU_MAX_PASSWORD_CHARS 31 |
#define | AU_MAX_PASSWORD_BUF 2048 |
#define | AU_MAX_COMMENT_CHARS SM_MAX_COMMENT_LENGTH |
#define | au_free_authorization_cache_and_init(cache) |
Variables | |
const char * | AU_ROOT_CLASS_NAME |
const char * | AU_OLD_ROOT_CLASS_NAME |
const char * | AU_USER_CLASS_NAME |
const char * | AU_PASSWORD_CLASS_NAME |
const char * | AU_AUTH_CLASS_NAME |
const char * | AU_GRANT_CLASS_NAME |
const char * | AU_PUBLIC_USER_NAME |
const char * | AU_DBA_USER_NAME |
MOP | Au_root |
MOP | Au_user |
MOP | Au_dba_user |
MOP | Au_public_user |
char | Au_user_password [AU_MAX_PASSWORD_BUF+4] |
int | Au_disable |
#define AU_ALTER DB_AUTH_ALTER |
Definition at line 73 of file authenticate.h.
Referenced by add_arg_domain(), add_method_internal(), appropriate_error(), au_add_method_check_authorization(), au_install(), boot_define_attribute(), boot_define_charsets(), boot_define_class(), boot_define_class_authorization(), boot_define_collations(), boot_define_data_type(), boot_define_domain(), boot_define_dual(), boot_define_ha_apply_info(), boot_define_index(), boot_define_index_key(), boot_define_meth_argument(), boot_define_meth_file(), boot_define_meth_sig(), boot_define_method(), boot_define_partition(), boot_define_query_spec(), boot_define_serial(), boot_define_stored_procedure(), boot_define_stored_procedure_arguments(), check_authorization(), check_target(), db_add_attribute_internal(), db_add_class_resolution(), db_add_method_file(), db_add_query_spec(), db_add_resolution(), db_add_set_attribute_domain(), db_add_super_internal(), db_change_default(), db_change_method_implementation(), db_change_query_spec(), db_drop_class_resolution(), db_drop_method_file(), db_drop_method_files(), db_drop_query_spec(), db_drop_resolution(), db_drop_set_attribute_domain(), db_drop_super(), db_drop_super_connect(), db_rename_internal(), db_set_loader_commands(), dbt_edit_class(), do_update_stats(), drop_internal(), fetch_descriptor_class(), find_attribute(), find_shared_attribute(), is_protected_class(), issue_grant_statement(), make_template(), obj_class_lock(), obj_locate_attribute(), obt_find_attribute(), pt_make_flat_name_list(), sm_add_constraint(), sm_add_trigger(), sm_delete_class_mop(), sm_drop_constraint(), sm_drop_trigger(), sm_finish_class(), sm_get_attribute_descriptor(), sm_get_trigger_cache(), sm_load_online_index(), sm_rename_class(), sm_update_class(), and sm_update_class_auto().
#define AU_CACHE_INVALID 0x80000000 |
Definition at line 98 of file authenticate.h.
Referenced by au_get_class_privilege(), au_make_class_cache(), au_reset_authorization_caches(), check_authorization(), check_grant_option(), and reset_cache_for_user_and_class().
#define AU_DELETE DB_AUTH_DELETE |
Definition at line 72 of file authenticate.h.
Referenced by appropriate_error(), is_protected_class(), issue_grant_statement(), and obj_delete().
#define AU_DISABLE | ( | save | ) |
Definition at line 106 of file authenticate.h.
Referenced by au_add_member_internal(), au_add_method_check_authorization(), au_add_user(), au_change_owner(), au_change_serial_owner(), au_change_sp_owner(), au_change_trigger_owner(), au_delete_auth_of_dropping_table(), au_drop_member(), au_drop_user(), au_find_user(), au_force_write_new_auth(), au_get_new_auth(), au_grant(), au_install(), au_login(), au_revoke(), au_set_password_internal(), au_user_name(), catcls_class_install(), catcls_vclass_install(), check_missing_non_null_attrs(), dbt_drop_attribute(), delete_all_ha_apply_info(), delete_all_slave_ha_apply_info(), do_alter_change_auto_increment(), do_alter_serial(), do_change_att_schema_only(), do_check_for_empty_classes_in_delete(), do_check_internal_statements(), do_create_serial(), do_create_serial_internal(), do_delete(), do_drop_serial(), do_execute_do(), do_get_partition_parent(), do_get_serial_obj_id(), do_merge(), do_prepare_insert(), do_select_internal(), do_update(), do_update_auto_increment_serial_on_rename(), do_update_maxvalue_of_auto_increment_serial(), drop_foreign_key_ref_internal(), drop_stored_procedure(), emit_index_def(), emit_stored_procedure(), emit_stored_procedure_args(), fetch_instance(), get_select_list_to_update(), insert_ha_apply_info(), insert_local(), is_server_insert_allowed(), is_server_update_allowed(), jsp_add_stored_procedure(), jsp_add_stored_procedure_argument(), jsp_alter_stored_procedure(), jsp_do_call_stored_procedure(), jsp_find_stored_procedure(), jsp_get_return_type(), la_update_query_execute(), la_update_query_execute_with_values(), lang_db_put_charset(), loaddb_internal(), locator_mflush_force(), method_invoke_for_server(), method_receive_results_for_stand_alone(), mq_get_attribute(), mq_oid(), obj_set_att(), object_to_trigger(), pt_check_show_index(), pt_check_table_in_show_heap(), pt_to_insert_xasl(), put_timezone_checksum(), register_user_trigger(), select_delete_list(), sm_class_has_unique_constraint(), sm_delete_class_mop(), sm_get_ch_name(), sm_is_partitioned_class(), sm_partitioned_class_type(), sm_rename_class(), sm_truncate_class(), synccoll_force(), tr_check_authorization(), tr_delete_schema_cache(), tr_delete_triggers_for_class(), tr_drop_trigger(), tr_drop_trigger_internal(), tr_dump_trigger(), tr_find_all_triggers(), tr_find_event_triggers(), tr_find_trigger(), tr_prepare_class(), tr_prepare_statement(), tr_rename_trigger(), tr_set_comment(), tr_set_priority(), tr_set_status(), tr_trigger_action(), tr_trigger_action_time(), tr_trigger_action_type(), tr_trigger_attribute(), tr_trigger_class(), tr_trigger_comment(), tr_trigger_condition(), tr_trigger_condition_time(), tr_trigger_event(), tr_trigger_name(), tr_trigger_priority(), tr_trigger_status(), trigger_table_add(), trigger_table_drop(), trigger_table_rename(), trigger_to_object(), unregister_user_trigger(), update_cache(), update_class(), and update_foreign_key_ref().
#define AU_DISABLE_PASSWORDS au_disable_passwords |
Definition at line 140 of file authenticate.h.
Referenced by acldb(), addvoldb(), applyinfo(), applylogdb(), backupdb(), changemode(), checkdb(), checksumdb(), compactdb(), copydb(), copylogdb(), createdb(), deletedb(), diagdb(), gen_tz(), installdb(), killtran(), loaddb_internal(), lockdb(), main(), optimizedb(), paramdump(), plandump(), renamedb(), restoredb(), restoreslave(), spacedb(), statdump(), synccolldb(), tranlist(), tzc_compute_timezone_checksum(), and vacuumdb().
#define AU_ENABLE | ( | save | ) |
Definition at line 113 of file authenticate.h.
Referenced by au_add_member_internal(), au_add_method_check_authorization(), au_add_user(), au_change_owner(), au_change_serial_owner(), au_change_sp_owner(), au_change_trigger_owner(), au_delete_auth_of_dropping_table(), au_drop_member(), au_drop_user(), au_find_user(), au_force_write_new_auth(), au_get_new_auth(), au_grant(), au_install(), au_login(), au_revoke(), au_set_password_internal(), au_user_name(), catcls_class_install(), catcls_vclass_install(), check_missing_non_null_attrs(), dbt_drop_attribute(), delete_all_ha_apply_info(), delete_all_slave_ha_apply_info(), do_alter_change_auto_increment(), do_alter_serial(), do_change_att_schema_only(), do_check_for_empty_classes_in_delete(), do_check_internal_statements(), do_create_serial(), do_create_serial_internal(), do_delete(), do_drop_serial(), do_execute_do(), do_get_partition_parent(), do_get_serial_obj_id(), do_merge(), do_prepare_insert(), do_select_internal(), do_update(), do_update_auto_increment_serial_on_rename(), do_update_maxvalue_of_auto_increment_serial(), drop_foreign_key_ref_internal(), drop_stored_procedure(), emit_index_def(), emit_stored_procedure(), emit_stored_procedure_args(), fetch_instance(), get_select_list_to_update(), insert_ha_apply_info(), insert_local(), is_server_insert_allowed(), is_server_update_allowed(), jsp_add_stored_procedure(), jsp_add_stored_procedure_argument(), jsp_alter_stored_procedure(), jsp_do_call_stored_procedure(), jsp_find_stored_procedure(), jsp_get_return_type(), la_update_query_execute(), la_update_query_execute_with_values(), lang_db_put_charset(), loaddb_internal(), locator_mflush_force(), method_invoke_for_server(), method_receive_results_for_stand_alone(), mq_get_attribute(), mq_oid(), obj_set_att(), object_to_trigger(), pt_check_show_index(), pt_check_table_in_show_heap(), pt_to_insert_xasl(), put_timezone_checksum(), register_user_trigger(), select_delete_list(), sm_class_has_unique_constraint(), sm_delete_class_mop(), sm_get_ch_name(), sm_is_partitioned_class(), sm_partitioned_class_type(), sm_rename_class(), sm_truncate_class(), synccoll_force(), tr_check_authorization(), tr_delete_schema_cache(), tr_delete_triggers_for_class(), tr_drop_trigger(), tr_drop_trigger_internal(), tr_dump_trigger(), tr_find_all_triggers(), tr_find_event_triggers(), tr_find_trigger(), tr_prepare_class(), tr_prepare_statement(), tr_rename_trigger(), tr_set_comment(), tr_set_priority(), tr_set_status(), tr_trigger_action(), tr_trigger_action_time(), tr_trigger_action_type(), tr_trigger_attribute(), tr_trigger_class(), tr_trigger_comment(), tr_trigger_condition(), tr_trigger_condition_time(), tr_trigger_event(), tr_trigger_name(), tr_trigger_priority(), tr_trigger_status(), trigger_table_add(), trigger_table_drop(), trigger_table_rename(), trigger_to_object(), unregister_user_trigger(), update_cache(), update_class(), and update_foreign_key_ref().
#define AU_EXECUTE DB_AUTH_EXECUTE |
Definition at line 75 of file authenticate.h.
Referenced by appropriate_error(), au_add_method_check_authorization(), au_install(), fetch_descriptor_class(), issue_grant_statement(), obj_send_array(), obj_send_list(), obj_send_va(), sm_get_method_descriptor(), and sm_prelink_methods().
#define au_free_authorization_cache_and_init | ( | cache | ) |
Definition at line 148 of file authenticate.h.
Referenced by classobj_free_class().
#define AU_FULL_AUTHORIZATION 0x7F7F |
Definition at line 86 of file authenticate.h.
Referenced by au_export_grants(), make_class_user(), and update_cache().
#define AU_GRANT_MASK 0x7F00 |
Definition at line 85 of file authenticate.h.
Referenced by au_force_write_new_auth().
#define AU_GRANT_SHIFT 8 |
Definition at line 94 of file authenticate.h.
Referenced by appropriate_error(), au_grant(), au_print_cache(), au_revoke(), check_grant_option(), class_grant_loop(), collect_class_grants(), db_check_authorization_and_grant_option(), and issue_grant_statement().
#define AU_INDEX DB_AUTH_INDEX |
Definition at line 74 of file authenticate.h.
Referenced by appropriate_error(), change_constraints_comment_partitioned_class(), change_constraints_status_partitioned_class(), do_alter_index_comment(), do_alter_index_rebuild(), do_alter_index_status(), is_protected_class(), issue_grant_statement(), sm_add_constraint(), sm_check_index_exist(), sm_drop_index(), sm_exist_index(), smt_check_index_exist(), smt_find_constraint(), smt_rename_any(), and update_fk_ref_partitioned_class().
#define AU_INSERT DB_AUTH_INSERT |
Definition at line 70 of file authenticate.h.
Referenced by appropriate_error(), is_protected_class(), issue_grant_statement(), load_object_file(), make_template(), and obj_copy().
#define AU_MAX_COMMENT_CHARS SM_MAX_COMMENT_LENGTH |
Definition at line 145 of file authenticate.h.
Referenced by au_set_user_comment().
#define AU_MAX_PASSWORD_BUF 2048 |
Definition at line 144 of file authenticate.h.
Referenced by au_export_users(), au_set_password_internal(), encrypt_password(), encrypt_password_sha1(), and match_password().
#define AU_MAX_PASSWORD_CHARS 31 |
Definition at line 143 of file authenticate.h.
Referenced by au_add_user_method(), and au_set_password_internal().
#define AU_NO_AUTHORIZATION 0 |
Definition at line 87 of file authenticate.h.
Referenced by au_grant(), collect_class_grants(), and update_cache().
#define AU_NONE DB_AUTH_NONE |
Definition at line 68 of file authenticate.h.
#define AU_RESTORE | ( | save | ) |
Definition at line 133 of file authenticate.h.
Referenced by au_set_user_comment(), build_xasl_for_server_delete(), do_execute_delete(), do_execute_merge(), do_execute_select(), do_execute_session_statement(), do_execute_update(), do_insert_at_server(), do_prepare_delete(), do_prepare_merge(), do_prepare_select(), do_prepare_update(), jsp_do_call_stored_procedure(), la_apply_insert_log(), la_apply_update_log(), unloaddb(), and update_at_server().
#define AU_SAVE_AND_DISABLE | ( | save | ) |
Definition at line 126 of file authenticate.h.
Referenced by au_set_user_comment(), do_execute_delete(), do_execute_merge(), do_execute_update(), do_prepare_delete(), do_prepare_merge(), do_prepare_select(), do_prepare_update(), la_apply_insert_log(), and la_apply_update_log().
#define AU_SAVE_AND_ENABLE | ( | save | ) |
Definition at line 119 of file authenticate.h.
Referenced by build_xasl_for_server_delete(), do_execute_delete(), do_execute_merge(), do_execute_select(), do_execute_session_statement(), do_execute_update(), do_insert_at_server(), do_prepare_merge(), jsp_do_call_stored_procedure(), unloaddb(), and update_at_server().
#define AU_SELECT DB_AUTH_SELECT |
Definition at line 69 of file authenticate.h.
Referenced by adjust_partition_range(), adjust_partition_size(), api_rmeta_get_info(), appropriate_error(), au_install(), boot_define_dual(), boot_define_ha_apply_info(), boot_define_serial(), boot_define_view_attribute(), boot_define_view_attribute_set_domain(), boot_define_view_authorization(), boot_define_view_class(), boot_define_view_db_charset(), boot_define_view_db_collation(), boot_define_view_index(), boot_define_view_index_key(), boot_define_view_method(), boot_define_view_method_argument(), boot_define_view_method_argument_set_domain(), boot_define_view_method_file(), boot_define_view_partition(), boot_define_view_stored_procedure(), boot_define_view_stored_procedure_arguments(), boot_define_view_super_class(), boot_define_view_trigger(), boot_define_view_vclass(), catcls_vclass_install(), check_authorization(), check_resolution_name(), check_set_object(), class_grant_loop(), db_find_class_of_index(), db_get_attribute(), db_get_attribute_domain(), db_get_attribute_names(), db_get_attributes(), db_get_class_attribute(), db_get_class_attribute_names(), db_get_class_attributes(), db_get_class_method(), db_get_class_method_names(), db_get_class_methods(), db_get_class_resolutions(), db_get_constraints(), db_get_loader_commands(), db_get_method(), db_get_method_file_names(), db_get_method_files(), db_get_method_function(), db_get_method_names(), db_get_methods(), db_get_ordered_attribute_names(), db_get_ordered_attributes(), db_get_query_specs(), db_get_resolutions(), db_get_shared_attribute(), db_get_shared_attribute_names(), db_get_subclass_names(), db_get_subclasses(), db_get_superclass_names(), db_get_superclasses(), db_is_updatable_attribute(), db_is_updatable_object(), db_seq_create(), db_set_create(), db_set_create_basic(), db_set_create_multi(), do_alter_index_rebuild(), do_alter_partitioning_pre(), do_coalesce_partition_post(), do_coalesce_partition_pre(), do_create_partition(), do_create_partition_constraint(), do_create_trigger(), do_drop_partition_list(), do_drop_partitioned_class(), do_get_partition_keycol(), do_get_partition_parent(), do_get_partition_size(), do_is_partitioned_subclass(), do_promote_partition_by_name(), do_promote_partition_list(), do_remove_partition_pre(), do_rename_partition(), do_reorganize_partition_post(), emit_index_def(), emit_partition_info(), extract_objects(), fetch_descriptor_class(), find_attribute(), find_attribute_op(), find_shared_attribute(), get_object_value(), help_describe_mop(), object_description::init(), class_description::init(), is_replace_or_odku_allowed(), issue_grant_statement(), la_repl_add_object(), ldr_act_add_class_all_attrs(), ldr_act_check_missing_non_null_attrs(), locator_mflush_force(), lock_supers(), lock_supers_drop(), obj_class_lock(), obj_copy(), obj_find_multi_attr(), obj_find_multi_desc(), obj_find_object_by_pkey(), obj_find_unique(), obj_inst_lock(), obj_is_instance_of(), obj_isinstance(), obj_locate_attribute(), pt_check_alter_partition(), pt_check_filter_index_expr(), pt_check_partitions(), pt_make_flat_name_list(), pt_resolve_using_index(), pt_spec_to_xasl_class_oid_list(), pt_to_insert_xasl(), pt_to_merge_insert_xasl(), pt_to_pred_expr(), sm_att_info(), sm_check_object_domain(), sm_class_check_uniques(), sm_class_constraints(), sm_class_has_triggers(), sm_class_has_unique_constraint(), sm_coerce_object_domain(), sm_drop_constraint(), sm_exist_index(), sm_fetch_all_objects_internal(), sm_find_index(), sm_find_subclass_in_hierarchy(), sm_flush_and_decache_objects(), sm_force_method_link(), sm_get_att_name(), sm_get_attribute_descriptor(), sm_get_ch_heap(), sm_get_ch_name(), sm_get_class(), sm_get_class_repid(), sm_get_class_with_statistics(), sm_get_index(), sm_get_method_source_file(), sm_get_statistics_force(), sm_get_trigger_cache(), sm_invalidate_trigger_cache(), sm_is_partition(), sm_is_subclass(), sm_object_size_quick(), sm_partitioned_class_type(), smt_check_foreign_key(), smt_delete_super_connect(), unloaddb(), update_class(), and update_object_tuple().
#define AU_SET_USER au_set_user |
Definition at line 141 of file authenticate.h.
Referenced by au_install(), au_perform_login(), execute_activity(), la_apply_statement_log(), and mq_virtual_queries().
#define AU_TYPE DB_AUTH |
Definition at line 67 of file authenticate.h.
Referenced by make_template().
#define AU_TYPE_MASK 0x7F |
Definition at line 84 of file authenticate.h.
Referenced by au_force_write_new_auth(), au_grant(), au_revoke(), and issue_grant_statement().
#define AU_UPDATE DB_AUTH_UPDATE |
Definition at line 71 of file authenticate.h.
Referenced by appropriate_error(), au_grant(), au_revoke(), construct_instance(), fetch_descriptor_class(), is_protected_class(), issue_grant_statement(), ldr_reset_context(), make_template(), obj_inst_lock(), obj_locate_attribute(), obj_set_att(), propagate_revoke(), and sm_get_class_repid().
Definition at line 3134 of file authenticate.c.
References au_add_member_internal().
Referenced by au_add_member_method(), db_add_member(), and parse_user_define_line().
Definition at line 3147 of file authenticate.c.
References ARG_FILE_LINE, assert, au_add_member(), au_find_user(), au_is_dba_group_member(), db_get_object(), db_get_string(), DB_IS_NULL, db_make_error(), db_make_null(), DB_TYPE_OBJECT, DB_VALUE_TYPE, ER_AU_INVALID_USER, ER_AU_NOT_OWNER, er_errid(), er_set(), ER_WARNING_SEVERITY, error(), IS_STRING, NO_ERROR, NULL, and ws_is_same_object().
int au_add_method_check_authorization | ( | void | ) |
Definition at line 5595 of file authenticate.c.
References AU_ALTER, AU_AUTH_CLASS_NAME, AU_DISABLE, AU_ENABLE, AU_EXECUTE, au_grant(), db_find_class(), ER_FAILED, NO_ERROR, NULL, sm_update_class(), smt_add_class_method(), smt_assign_argument_domain(), and smt_edit_class_mop().
Referenced by au_install(), and catcls_vclass_install().
Definition at line 2153 of file authenticate.c.
References ARG_FILE_LINE, au_add_member_internal(), AU_DISABLE, AU_ENABLE, au_find_user(), au_get_set(), au_is_dba_group_member(), au_make_user(), check_user_name(), db_make_object(), db_set_add(), ER_AU_CANT_ADD_MEMBER, ER_AU_DBA_ONLY, ER_AU_INVALID_USER, ER_AU_INVALID_USER_NAME, er_clear(), er_errid(), ER_ERROR_SEVERITY, er_set(), ER_WARNING_SEVERITY, NO_ERROR, NULL, set_free(), set_ismember(), and au_grant::user.
Referenced by au_add_user_method(), au_install(), db_add_user(), and parse_user_define_line().
void au_add_user_method | ( | MOP | class_mop, |
DB_VALUE * | returnval, | ||
DB_VALUE * | name, | ||
DB_VALUE * | password | ||
) |
Definition at line 2250 of file authenticate.c.
References ARG_FILE_LINE, au_add_user(), AU_MAX_PASSWORD_CHARS, au_set_password(), db_get_string(), DB_IS_NULL, db_make_error(), db_make_object(), DB_MAX_USER_LENGTH, ER_AU_INVALID_USER, ER_AU_PASSWORD_OVERFLOW, ER_AU_USER_EXISTS, er_errid(), ER_ERROR_SEVERITY, er_set(), ER_USER_NAME_TOO_LONG, ER_WARNING_SEVERITY, error(), intl_identifier_upper_string_size(), IS_STRING, NO_ERROR, NULL, strlen, and au_grant::user.
Definition at line 5114 of file authenticate.c.
References ARG_FILE_LINE, sm_class::attributes, au_change_serial_owner(), AU_DISABLE, AU_ENABLE, au_fetch_class_force(), AU_FETCH_UPDATE, au_is_dba_group_member(), sm_attribute::auto_increment, ER_AU_DBA_ONLY, er_set(), ER_WARNING_SEVERITY, error(), sm_attribute::header, locator_flush_class(), sm_component::next, NO_ERROR, NULL, and sm_class::owner.
Referenced by au_change_owner_method(), au_install(), boot_define_attribute(), boot_define_charsets(), boot_define_class(), boot_define_class_authorization(), boot_define_collations(), boot_define_data_type(), boot_define_domain(), boot_define_dual(), boot_define_ha_apply_info(), boot_define_index(), boot_define_index_key(), boot_define_meth_argument(), boot_define_meth_file(), boot_define_meth_sig(), boot_define_method(), boot_define_partition(), boot_define_query_spec(), boot_define_serial(), boot_define_stored_procedure(), boot_define_stored_procedure_arguments(), boot_define_view_attribute(), boot_define_view_attribute_set_domain(), boot_define_view_authorization(), boot_define_view_class(), boot_define_view_db_charset(), boot_define_view_db_collation(), boot_define_view_index(), boot_define_view_index_key(), boot_define_view_method(), boot_define_view_method_argument(), boot_define_view_method_argument_set_domain(), boot_define_view_method_file(), boot_define_view_partition(), boot_define_view_stored_procedure(), boot_define_view_stored_procedure_arguments(), boot_define_view_super_class(), boot_define_view_trigger(), and boot_define_view_vclass().
Definition at line 5167 of file authenticate.c.
References ARG_FILE_LINE, au_change_owner(), au_fetch_class_force(), AU_FETCH_UPDATE, au_find_user(), db_get_string(), DB_IS_NULL, db_make_error(), db_make_null(), DB_NOT_PARTITIONED_CLASS, DB_PARTITION_CLASS, ER_AU_CANT_ALTER_OWNER_OF_SYSTEM_CLASS, ER_AU_INVALID_CLASS, ER_AU_INVALID_USER, er_errid(), ER_ERROR_SEVERITY, ER_LK_UNILATERALLY_ABORTED, ER_NOT_ALLOWED_ACCESS_TO_PARTITION, er_set(), ER_WARNING_SEVERITY, error(), free_and_init, i, IS_STRING, NO_ERROR, NULL, sm_find_class(), sm_issystem(), sm_partitioned_class_type(), tran_abort_upto_system_savepoint(), tran_system_savepoint(), UNIQUE_PARTITION_SAVEPOINT_OWNER, and au_grant::user.
Referenced by do_alter_change_owner().
void au_change_serial_owner_method | ( | MOP | obj, |
DB_VALUE * | returnval, | ||
DB_VALUE * | serial, | ||
DB_VALUE * | owner | ||
) |
Definition at line 5340 of file authenticate.c.
References ARG_FILE_LINE, au_change_serial_owner(), au_find_user(), CT_SERIAL_NAME, db_get_string(), DB_IS_NULL, db_make_error(), db_make_null(), do_get_serial_obj_id(), ER_AU_INVALID_USER, er_errid(), ER_OBJ_INVALID_ARGUMENT, ER_QPROC_SERIAL_NOT_FOUND, er_set(), ER_WARNING_SEVERITY, error(), IS_STRING, NO_ERROR, NULL, and sm_find_class().
Definition at line 5638 of file authenticate.c.
References ARG_FILE_LINE, AU_DISABLE, AU_ENABLE, au_is_dba_group_member(), db_make_object(), ER_AU_DBA_ONLY, er_set(), ER_WARNING_SEVERITY, error(), NO_ERROR, obj_set(), and SP_ATTR_OWNER.
Referenced by au_change_sp_owner_method().
Definition at line 5674 of file authenticate.c.
References ARG_FILE_LINE, au_change_sp_owner(), au_find_user(), db_get_string(), DB_IS_NULL, db_make_error(), db_make_null(), ER_AU_INVALID_USER, er_errid(), er_set(), ER_SP_NOT_EXIST, ER_WARNING_SEVERITY, error(), IS_STRING, jsp_find_stored_procedure(), NO_ERROR, NULL, and au_grant::user.
Definition at line 5396 of file authenticate.c.
References ARG_FILE_LINE, AU_DISABLE, AU_ENABLE, au_is_dba_group_member(), db_make_object(), ER_AU_DBA_ONLY, er_set(), ER_WARNING_SEVERITY, error(), NO_ERROR, obj_set(), and TR_ATT_OWNER.
Referenced by au_change_trigger_owner_method().
void au_change_trigger_owner_method | ( | MOP | obj, |
DB_VALUE * | returnval, | ||
DB_VALUE * | trigger, | ||
DB_VALUE * | owner | ||
) |
Definition at line 5431 of file authenticate.c.
References ARG_FILE_LINE, au_change_trigger_owner(), au_find_user(), db_get_string(), DB_IS_NULL, db_make_error(), db_make_null(), ER_AU_INVALID_USER, er_errid(), er_set(), ER_TR_TRIGGER_NOT_FOUND, ER_WARNING_SEVERITY, error(), IS_STRING, NO_ERROR, NULL, tr_find_trigger(), and au_grant::user.
Referenced by do_alter_trigger().
Definition at line 6246 of file authenticate.c.
References Au_disable, au_fetch_class(), AU_FETCH_READ, error(), and NO_ERROR.
Referenced by au_check_authorization_method(), check_authorization(), check_target(), do_update_stats(), and load_has_authorization().
void au_check_authorization_method | ( | MOP | obj, |
DB_VALUE * | returnval, | ||
DB_VALUE * | class_, | ||
DB_VALUE * | auth | ||
) |
Definition at line 5562 of file authenticate.c.
References ARG_FILE_LINE, au_check_authorization(), db_get_int(), db_get_string(), DB_IS_NULL, db_make_int(), db_make_null(), ER_AU_INVALID_CLASS, er_set(), ER_WARNING_SEVERITY, error(), IS_STRING, NO_ERROR, NULL, and sm_find_class().
int au_check_serial_authorization | ( | MOP | serial_object | ) |
Definition at line 8664 of file authenticate.c.
References ARG_FILE_LINE, au_get_set(), au_is_dba_group_member(), db_get(), db_get_object(), DB_IS_NULL, ER_QPROC_CANNOT_UPDATE_SERIAL, er_set(), ER_WARNING_SEVERITY, NO_ERROR, pr_clear_value(), set_free(), set_ismember(), and ws_is_same_object().
Referenced by dbt_drop_attribute(), do_alter_serial(), do_change_att_schema_only(), and do_drop_serial().
int au_check_user | ( | void | ) |
Definition at line 5722 of file authenticate.c.
References ARG_FILE_LINE, ER_AU_INVALID_USER, er_set(), ER_WARNING_SEVERITY, error(), NO_ERROR, and NULL.
Referenced by db_get_all_chosen_classes(), sm_fetch_all_base_classes(), sm_fetch_all_classes(), and sm_mark_system_classes().
int au_delete_auth_of_dropping_table | ( | const char * | class_name | ) |
Definition at line 2012 of file authenticate.c.
References assert, ASSERT_ERROR_AND_SET, AU_DISABLE, AU_ENABLE, CT_CLASS_NAME, CT_CLASSAUTH_NAME, db_close_session(), db_compile_statement_local(), db_execute_statement_local(), db_make_null(), db_make_string(), db_open_buffer_local(), db_push_values(), db_query_end(), db_set_system_generated_statement(), error(), NO_ERROR, NULL, and pr_clear_value().
Referenced by sm_delete_class_mop().
Definition at line 8168 of file authenticate.c.
References au_dump(), au_info_method(), db_make_null(), and NULL.
Definition at line 8114 of file authenticate.c.
References au_dump_user(), db_make_null(), and NULL.
int au_disable | ( | void | ) |
Definition at line 8619 of file authenticate.c.
References Au_disable.
Referenced by csql(), csql_do_session_cmd(), and main().
void au_disable_passwords | ( | void | ) |
Definition at line 6472 of file authenticate.c.
References Au_ignore_passwords.
Definition at line 3228 of file authenticate.c.
References ARG_FILE_LINE, au_compute_groups(), AU_DISABLE, AU_ENABLE, au_get_set(), db_get(), db_get_string(), DB_IS_NULL, db_make_object(), db_set_drop(), db_value_clear(), ER_AU_MEMBER_NOT_FOUND, er_set(), ER_WARNING_SEVERITY, error(), NO_ERROR, NULL, obj_inst_lock(), set_free(), and set_ismember().
Referenced by au_drop_member_method(), and db_drop_member().
Definition at line 3298 of file authenticate.c.
References ARG_FILE_LINE, assert, au_drop_member(), au_find_user(), au_is_dba_group_member(), db_get_object(), db_get_string(), DB_IS_NULL, db_make_error(), db_make_null(), DB_TYPE_OBJECT, DB_VALUE_TYPE, ER_AU_INVALID_USER, ER_AU_NOT_OWNER, er_errid(), er_set(), ER_WARNING_SEVERITY, error(), IS_STRING, NO_ERROR, NULL, and ws_is_same_object().
int au_drop_user | ( | MOP | user | ) |
Definition at line 3378 of file authenticate.c.
References ARG_FILE_LINE, assert, au_add_direct_groups(), AU_DISABLE, AU_ENABLE, au_get_set(), au_is_dba_group_member(), db_close_session(), db_compile_statement(), DB_CURSOR_SUCCESS, db_execute_statement_local(), db_get_int(), db_get_object(), db_get_string(), DB_IS_NULL, db_make_int(), db_make_null(), db_make_object(), db_make_set(), db_open_buffer(), db_push_values(), db_query_end(), db_query_first_tuple(), db_query_get_tuple_value(), db_query_next_tuple(), db_set_add(), ER_AU_CANT_DROP_USER, ER_AU_DBA_ONLY, ER_AU_USER_HAS_DATABASE_OBJECTS, er_errid(), ER_ERROR_SEVERITY, er_set(), ER_WARNING_SEVERITY, error(), i, NO_ERROR, NULL, obj_delete(), obj_get(), obj_set(), pr_clear_value(), remove_user_cache_references(), set_cardinality(), set_create_basic(), set_free(), set_get_element(), and ws_is_same_object().
Referenced by au_drop_user_method(), au_install(), and db_drop_user().
Definition at line 3655 of file authenticate.c.
References ARG_FILE_LINE, assert, au_drop_user(), au_find_user_to_drop(), au_is_dba_group_member(), db_get_string(), db_make_error(), db_make_null(), ER_AU_DBA_ONLY, ER_AU_INVALID_USER, er_set(), ER_WARNING_SEVERITY, error(), IS_STRING, NO_ERROR, and NULL.
void au_dump | ( | void | ) |
Definition at line 8100 of file authenticate.c.
References au_dump_to_file().
Referenced by au_describe_root_method().
void au_dump_auth | ( | FILE * | fp | ) |
Definition at line 7821 of file authenticate.c.
References au_get_object(), au_print_auth(), AU_USER_CLASS_NAME, db_compile_and_execute_local(), DB_CURSOR_SUCCESS, db_get_object(), db_query_end(), db_query_get_tuple_value(), db_query_next_tuple(), error(), free_and_init, NO_ERROR, strlen, and au_grant::user.
Referenced by au_dump_to_file().
void au_dump_to_file | ( | FILE * | fp | ) |
Definition at line 8026 of file authenticate.c.
References au_dump_auth(), au_dump_user(), AU_USER_CLASS_NAME, Au_user_name, db_compile_and_execute_local(), DB_CURSOR_SUCCESS, db_get_object(), db_get_string(), db_query_end(), db_query_first_tuple(), db_query_get_tuple_value(), db_query_next_tuple(), error(), free_and_init, MSGCAT_AUTH_AUTH_TITLE, MSGCAT_AUTH_CURRENT_USER, MSGCAT_AUTH_ROOT_USERS, MSGCAT_CATALOG_CUBRID, msgcat_message(), MSGCAT_SET_AUTHORIZATION, NO_ERROR, NULL, obj_get(), pr_clear_value(), strlen, and au_grant::user.
Referenced by au_dump(), and createdb().
void au_dump_user | ( | MOP | user, |
FILE * | fp | ||
) |
Definition at line 7869 of file authenticate.c.
References au_get_object(), au_get_set(), au_print_auth(), au_print_grant_entry(), AU_USER_CLASS_NAME, db_compile_and_execute_local(), DB_CURSOR_SUCCESS, db_get_object(), db_get_string(), db_query_end(), db_query_get_tuple_value(), db_query_next_tuple(), error(), free_and_init, get_grants(), GRANT_ENTRY_CLASS, GRANT_ENTRY_LENGTH, au_grant::grants, i, MSGCAT_AUTH_USER_DIRECT_GROUPS, MSGCAT_AUTH_USER_GROUPS, MSGCAT_AUTH_USER_NAME, MSGCAT_AUTH_USER_NAME2, MSGCAT_CATALOG_CUBRID, msgcat_message(), MSGCAT_SET_AUTHORIZATION, NO_ERROR, NULL, obj_get(), pr_clear_value(), set_cardinality(), set_free(), set_get_element(), set_size(), strlen, and au_grant::user.
Referenced by au_describe_user_method(), and au_dump_to_file().
void au_enable | ( | int | save | ) |
Definition at line 8632 of file authenticate.c.
References Au_disable.
int au_export_grants | ( | print_output & | output_ctx, |
MOP | class_mop | ||
) |
Definition at line 7645 of file authenticate.c.
References ARG_FILE_LINE, AU_FULL_AUTHORIZATION, au_get_class_owner(), au_get_user_name(), class_user::available_auth, build_class_grant_list(), class_grant_loop(), class_auth::class_mop, ER_ERROR_SEVERITY, ER_GENERIC_ERROR, er_set(), error(), find_or_add_user(), free_class_users(), class_user::grants, MSGCAT_AUTH_GRANT_DUMP_ERROR, MSGCAT_CATALOG_CUBRID, msgcat_message(), MSGCAT_SET_AUTHORIZATION, class_user::next, NO_ERROR, NULL, class_user::obj, class_auth::owner, class_auth::users, and ws_free_string().
Referenced by emit_schema().
int au_export_users | ( | print_output & | output_ctx | ) |
Definition at line 6934 of file authenticate.c.
References ARG_FILE_LINE, au_get_set(), au_get_user_name(), AU_MAX_PASSWORD_BUF, AU_USER_CLASS_NAME, db_compile_and_execute_local(), DB_CURSOR_SUCCESS, db_get_object(), db_get_string(), DB_IS_NULL, DB_IS_STRING, db_query_end(), db_query_first_tuple(), db_query_get_tuple_value(), db_query_next_tuple(), ENCODE_PREFIX_DES, ENCODE_PREFIX_SHA1, ENCODE_PREFIX_SHA2_512, encrypt_password_sha2_512(), ER_ERROR_SEVERITY, ER_OUT_OF_VIRTUAL_MEMORY, er_set(), error(), free_and_init, help_print_describe_comment(), IS_ENCODED_DES, IS_ENCODED_SHA1, IS_ENCODED_SHA2_512, NO_ERROR, NULL, obj_get(), set_cardinality(), set_free(), set_get_element(), strlen, ws_free_string(), and ws_is_same_object().
Referenced by extract_classes().
int au_fetch_class | ( | MOP | op, |
SM_CLASS ** | class_ptr, | ||
AU_FETCHMODE | fetchmode, | ||
DB_AUTH | type | ||
) |
Definition at line 6174 of file authenticate.c.
References au_fetch_class_internal(), and DONT_KNOW.
Referenced by adjust_partition_range(), adjust_partition_size(), api_rmeta_get_info(), au_check_authorization(), check_resolution_name(), db_check_authorization(), db_check_authorization_and_grant_option(), db_find_class_of_index(), db_get_attribute(), db_get_attribute_domain(), db_get_attribute_names(), db_get_attributes(), db_get_class_attribute(), db_get_class_attribute_names(), db_get_class_attributes(), db_get_class_method(), db_get_class_method_names(), db_get_class_methods(), db_get_class_resolutions(), db_get_constraints(), db_get_loader_commands(), db_get_method(), db_get_method_file_names(), db_get_method_files(), db_get_method_function(), db_get_method_names(), db_get_methods(), db_get_ordered_attribute_names(), db_get_ordered_attributes(), db_get_query_specs(), db_get_resolutions(), db_get_shared_attribute(), db_get_shared_attribute_names(), db_get_subclass_names(), db_get_subclasses(), db_get_superclass_names(), db_get_superclasses(), db_is_updatable_attribute(), db_is_updatable_object(), db_seq_create(), db_set_create(), db_set_create_basic(), db_set_create_multi(), do_alter_index_rebuild(), do_alter_partitioning_pre(), do_coalesce_partition_post(), do_coalesce_partition_pre(), do_create_partition(), do_create_partition_constraint(), do_create_trigger(), do_drop_partition_list(), do_drop_partitioned_class(), do_get_partition_keycol(), do_get_partition_parent(), do_get_partition_size(), do_is_partitioned_subclass(), do_promote_partition_by_name(), do_promote_partition_list(), do_recreate_renamed_class_indexes(), do_remove_partition_pre(), do_rename_partition(), do_reorganize_partition_post(), do_save_all_indexes(), emit_index_def(), emit_partition_info(), extract_objects(), fetch_descriptor_class(), find_attribute(), find_attribute_op(), find_shared_attribute(), help_describe_mop(), object_description::init(), class_description::init(), is_replace_or_odku_allowed(), la_repl_add_object(), ldr_act_add_class_all_attrs(), ldr_act_check_missing_non_null_attrs(), locator_mflush_force(), lock_supers(), lock_supers_drop(), make_template(), obj_class_lock(), obj_copy(), obj_delete(), obj_find_multi_attr(), obj_find_multi_desc(), obj_find_object_by_pkey(), obj_find_unique(), obj_inst_lock(), obj_locate_attribute(), obj_send_array(), obj_send_list(), obj_send_va(), obt_find_attribute(), pt_check_alter_partition(), pt_check_filter_index_expr(), pt_check_partitions(), pt_make_flat_name_list(), pt_resolve_using_index(), pt_spec_to_xasl_class_oid_list(), pt_to_insert_xasl(), pt_to_merge_insert_xasl(), pt_to_pred_expr(), sm_add_trigger(), sm_att_info(), sm_check_index_exist(), sm_class_check_uniques(), sm_class_constraints(), sm_class_has_triggers(), sm_delete_class_mop(), sm_drop_constraint(), sm_drop_index(), sm_drop_trigger(), sm_exist_index(), sm_fetch_all_objects_internal(), sm_find_index(), sm_force_method_link(), sm_get_att_name(), sm_get_attribute_descriptor(), sm_get_ch_heap(), sm_get_ch_name(), sm_get_class(), sm_get_class_repid(), sm_get_class_with_statistics(), sm_get_index(), sm_get_method_descriptor(), sm_get_method_source_file(), sm_get_statistics_force(), sm_get_trigger_cache(), sm_invalidate_trigger_cache(), sm_is_partition(), sm_is_subclass(), sm_load_online_index(), sm_object_size_quick(), sm_partitioned_class_type(), sm_prelink_methods(), sm_rename_class(), sm_truncate_class(), sm_truncate_using_delete(), smt_check_foreign_key(), smt_check_index_exist(), smt_copy_class_mop(), smt_delete_super_connect(), smt_edit_class_mop(), smt_find_constraint(), truncate_need_repl_log(), unloaddb(), update_class(), and update_object_tuple().
int au_fetch_class_by_classmop | ( | MOP | op, |
SM_CLASS ** | class_ptr, | ||
AU_FETCHMODE | fetchmode, | ||
DB_AUTH | type | ||
) |
Definition at line 6206 of file authenticate.c.
References au_fetch_class_internal(), and BY_CLASS_MOP.
Referenced by sm_class_has_unique_constraint(), sm_exist_index(), and sm_find_subclass_in_hierarchy().
int au_fetch_class_by_instancemop | ( | MOP | op, |
SM_CLASS ** | class_ptr, | ||
AU_FETCHMODE | fetchmode, | ||
DB_AUTH | type | ||
) |
Definition at line 6190 of file authenticate.c.
References au_fetch_class_internal(), and BY_INSTANCE_MOP.
int au_fetch_class_force | ( | MOP | op, |
SM_CLASS ** | class_, | ||
AU_FETCHMODE | fetchmode | ||
) |
Definition at line 6223 of file authenticate.c.
References DONT_KNOW, and fetch_class().
Referenced by abort_subclasses(), allocate_unique_constraint(), alter_trigger_hierarchy(), annotate_method_files(), au_change_owner(), au_change_owner_method(), au_get_class_owner(), au_grant(), au_revoke(), check_domain_class_type(), check_for_cons(), check_resolution_target(), classobj_copy_constraint_like(), classobj_copy_props(), classobj_is_exist_foreign_key_ref(), collect_hier_class_info(), db_get_attribute_force(), db_get_attributes_force(), db_is_any_class(), db_is_class(), db_is_vclass(), object_printer::describe_constraint(), do_evaluate_default_expr(), domain_search(), drop_foreign_key_ref_internal(), emit_schema(), fill_in_insert_default_function_arguments(), find_superclass(), flatten_method_files(), flatten_properties(), flatten_subclasses(), flatten_trigger_cache(), get_candidates(), inherit_constraint(), lock_subclasses_internal(), obj_get_att(), object_to_trigger(), pt_append_omitted_on_update_expr_assignments(), pt_bind_names_post(), pt_check_show_index(), pt_check_table_in_show_heap(), pt_find_omitted_default_expr(), pt_flush_classes(), pt_has_modified_class_helper(), pt_make_subclass_list(), pt_resolve_partition_spec(), retain_former_ids(), sm_check_class_domain(), sm_check_reuse_oid_class(), sm_coerce_object_domain(), sm_destroy_representations(), sm_fetch_all_base_classes(), sm_get_ch_name(), sm_get_class_collation(), sm_get_class_flag(), sm_get_class_tde_algorithm(), sm_is_nested_view_recached(), sm_is_partitioned_class(), sm_is_reuse_oid_class(), sm_mark_system_class(), sm_mark_system_classes(), sm_save_constraint_info(), sm_set_class_collation(), sm_set_class_comment(), sm_set_class_flag(), sm_set_class_tde_algorithm(), sm_update_statistics(), sm_virtual_queries(), smt_find_owner_of_constraint(), update_foreign_key_ref(), update_subclasses(), update_supers(), update_supers_drop(), vid_build_non_upd_object(), vid_compare_non_updatable_objects(), and ws_update_oid_and_class().
int au_fetch_instance | ( | MOP | op, |
MOBJ * | obj_ptr, | ||
AU_FETCHMODE | mode, | ||
LC_FETCH_VERSION_TYPE | fetch_version_type, | ||
DB_AUTH | type | ||
) |
Definition at line 6410 of file authenticate.c.
References ARG_FILE_LINE, Au_disable, AU_FETCH_READ, BY_INSTANCE_MOP, check_authorization(), ER_AU_INVALID_USER, ER_HEAP_UNKNOWN_OBJECT, er_set(), ER_WARNING_SEVERITY, error(), fetch_class(), fetch_instance(), NO_ERROR, NULL, and WS_SET_DELETED.
Referenced by au_grant(), au_revoke(), check_set_object(), construct_instance(), get_object_value(), object_description::init(), ldr_reset_context(), make_template(), obj_copy(), obj_delete(), obj_inst_lock(), obj_is_instance_of(), obj_isinstance(), obj_locate_attribute(), obj_set_att(), propagate_revoke(), sm_check_object_domain(), sm_coerce_object_domain(), sm_flush_and_decache_objects(), and sm_object_size_quick().
int au_fetch_instance_force | ( | MOP | op, |
MOBJ * | obj_ptr, | ||
AU_FETCHMODE | fetchmode, | ||
LC_FETCH_VERSION_TYPE | fetch_version_type | ||
) |
Definition at line 6457 of file authenticate.c.
References fetch_instance().
Referenced by access_object(), do_alter_serial(), do_update_auto_increment_serial_on_rename(), do_update_maxvalue_of_auto_increment_serial(), find_unique(), its_deleted(), obj_find_object_by_cons_and_key(), obj_find_object_by_pkey(), obj_get_att(), obj_set_att(), object_to_trigger(), obt_apply_assignments(), trigger_to_object(), validate_trigger(), vid_fetch_instance(), and vid_vobj_to_object().
void au_final | ( | void | ) |
Definition at line 8518 of file authenticate.c.
References Au_disable, flush_caches(), and NULL.
Referenced by boot_client_all_finalize(), boot_initialize_client(), and boot_restart_client().
Definition at line 1159 of file authenticate.c.
References ARG_FILE_LINE, AU_DISABLE, AU_ENABLE, AU_FETCH_READ, AU_USER_CLASS_NAME, db_compile_and_execute_local(), DB_CURSOR_SUCCESS, db_find_class(), db_get_object(), DB_IS_NULL, db_make_string(), db_query_end(), db_query_first_tuple(), db_query_get_tuple_value(), ER_AU_INVALID_USER, er_errid(), ER_ERROR_SEVERITY, ER_OBJ_OBJECT_NOT_FOUND, ER_OUT_OF_VIRTUAL_MEMORY, er_set(), ER_WARNING_SEVERITY, error(), free_and_init, intl_identifier_upper(), intl_identifier_upper_string_size(), lang_set_parser_use_client_charset(), NO_ERROR, NULL, obj_find_unique(), and strlen.
Referenced by au_add_member_method(), au_add_user(), au_change_owner_method(), au_change_serial_owner_method(), au_change_sp_owner_method(), au_change_trigger_owner_method(), au_drop_member_method(), au_find_user_method(), au_perform_login(), au_start(), db_find_user(), la_apply_statement_log(), and parse_user_define_line().
Definition at line 1361 of file authenticate.c.
References ARG_FILE_LINE, au_find_user(), db_get_string(), DB_IS_NULL, db_make_error(), db_make_null(), db_make_object(), ER_AU_INVALID_USER, er_set(), ER_WARNING_SEVERITY, error(), IS_STRING, NO_ERROR, NULL, and au_grant::user.
Definition at line 1278 of file authenticate.c.
References ARG_FILE_LINE, assert, AU_FETCH_WRITE, au_is_dba_group_member(), AU_USER_CLASS_NAME, db_find_class(), db_make_string(), ER_AU_DBA_ONLY, ER_AU_INVALID_USER, ER_AU_NOT_ALLOW_TO_DROP_ACTIVE_USER, er_errid(), ER_ERROR_SEVERITY, ER_OBJ_OBJECT_NOT_FOUND, ER_OUT_OF_VIRTUAL_MEMORY, er_set(), error(), free_and_init, intl_identifier_upper(), intl_identifier_upper_string_size(), log_does_active_user_exist(), NO_ERROR, NULL, and obj_find_unique().
Referenced by au_drop_user_method(), and db_find_user_to_drop().
int au_force_write_new_auth | ( | void | ) |
Definition at line 1911 of file authenticate.c.
References ARG_FILE_LINE, AU_AUTH_CLASS_NAME, AU_DISABLE, AU_ENABLE, AU_GRANT_MASK, au_insert_new_auth(), AU_TYPE_MASK, DB_FETCH_CLREAD_INSTREAD, db_get_int(), db_get_object(), db_get_set(), ER_AU_NO_AUTHORIZATION, ER_ERROR_SEVERITY, er_set(), error(), GRANT_ENTRY_CACHE, GRANT_ENTRY_CLASS, GRANT_ENTRY_LENGTH, GRANT_ENTRY_SOURCE, au_grant::grantor, au_grant::grants, ml_ext_free(), db_objlist::next, NO_ERROR, NULL, obj_get(), db_objlist::op, set_get_element(), set_size(), sm_fetch_all_objects(), and sm_find_class().
Referenced by catcls_vclass_install(), and createdb().
void au_free_authorization_cache | ( | void * | cache | ) |
Definition at line 784 of file authenticate.c.
References au_free_class_cache(), au_class_cache::next, and NULL.
Definition at line 5480 of file authenticate.c.
References Au_dba_user, au_fetch_class_force(), AU_FETCH_READ, NO_ERROR, NULL, and sm_class::owner.
Referenced by au_export_grants(), au_get_owner_method(), db_get_owner(), emit_class_owner(), and get_grants().
int au_get_class_privilege | ( | DB_OBJECT * | mop, |
unsigned int * | auth | ||
) |
Definition at line 8546 of file authenticate.c.
References assert, Au_cache_index, AU_CACHE_INVALID, Au_disable, au_install_class_cache(), sm_class::auth_cache, au_class_cache::data, er_errid(), ER_FAILED, error(), NO_ERROR, NULL, db_object::object, and update_cache().
Referenced by db_get_class_privilege().
MOP au_get_dba_user | ( | void | ) |
Definition at line 8652 of file authenticate.c.
References Au_dba_user.
Definition at line 5512 of file authenticate.c.
References ARG_FILE_LINE, assert, au_get_class_owner(), db_get_string(), DB_IS_NULL, db_make_error(), db_make_null(), db_make_object(), ER_AU_INVALID_CLASS, er_errid(), er_set(), ER_WARNING_SEVERITY, error(), IS_STRING, NO_ERROR, NULL, sm_find_class(), and au_grant::user.
MOP au_get_public_user | ( | void | ) |
Definition at line 8642 of file authenticate.c.
References Au_public_user.
const char* au_get_public_user_name | ( | void | ) |
Definition at line 8706 of file authenticate.c.
References AU_PUBLIC_USER_NAME.
Referenced by uci_connect().
const char* au_get_user_class_name | ( | void | ) |
Definition at line 8712 of file authenticate.c.
References AU_USER_CLASS_NAME.
char* au_get_user_name | ( | MOP | obj | ) |
Definition at line 6905 of file authenticate.c.
References db_get_string(), DB_IS_NULL, db_make_null(), db_value_clear(), error(), IS_STRING, NO_ERROR, NULL, obj_get(), and ws_copy_string().
Referenced by au_export_grants(), au_export_users(), issue_grant_statement(), pt_check_union_type_compatibility_of_values_query(), and sc_set_current_schema().
Definition at line 4383 of file authenticate.c.
References add_grant_entry(), ARG_FILE_LINE, AU_DISABLE, AU_ENABLE, au_fetch_class_force(), au_fetch_instance(), AU_FETCH_READ, AU_FETCH_UPDATE, au_get_object(), au_grant(), AU_GRANT_SHIFT, au_insert_new_auth(), AU_NO_AUTHORIZATION, AU_TYPE_MASK, AU_UPDATE, au_update_new_auth(), AU_USER_CLASS_NAME, catcls_Enable, check_grant_option(), DB_AUTH_NONE, db_get_int(), db_make_int(), DB_NOT_PARTITIONED_CLASS, DB_PARTITIONED_CLASS, ER_AU_ACCESS_ERROR, ER_AU_CANT_GRANT_OWNER, ER_AU_CANT_UPDATE, ER_ERROR_SEVERITY, ER_LK_UNILATERALLY_ABORTED, er_set(), ER_WARNING_SEVERITY, error(), find_grant_entry(), free_and_init, get_grants(), GRANT_ENTRY_CACHE, au_grant::grants, i, LC_FETCH_MVCC_VERSION, NO_ERROR, NULL, obj_inst_lock(), sm_class::owner, reset_cache_for_user_and_class(), set_free(), set_get_element(), set_put_element(), sm_bump_local_schema_version(), sm_partitioned_class_type(), tran_abort_upto_system_savepoint(), tran_system_savepoint(), UNIQUE_PARTITION_SAVEPOINT_GRANT, and ws_is_same_object().
Referenced by au_add_method_check_authorization(), au_grant(), au_install(), boot_define_dual(), boot_define_ha_apply_info(), boot_define_serial(), boot_define_view_attribute(), boot_define_view_attribute_set_domain(), boot_define_view_authorization(), boot_define_view_class(), boot_define_view_db_charset(), boot_define_view_db_collation(), boot_define_view_index(), boot_define_view_index_key(), boot_define_view_method(), boot_define_view_method_argument(), boot_define_view_method_argument_set_domain(), boot_define_view_method_file(), boot_define_view_partition(), boot_define_view_stored_procedure(), boot_define_view_stored_procedure_arguments(), boot_define_view_super_class(), boot_define_view_trigger(), boot_define_view_vclass(), and db_grant().
bool au_has_user_name | ( | void | ) |
Definition at line 5804 of file authenticate.c.
References Au_user_name, NULL, and strlen.
Referenced by boot_restart_client().
Definition at line 8140 of file authenticate.c.
References db_get_string(), DB_IS_NULL, db_make_null(), help_print_info(), IS_STRING, and NULL.
Referenced by au_describe_root_method().
void au_init | ( | void | ) |
Definition at line 8497 of file authenticate.c.
References Au_disable, init_caches(), and NULL.
Referenced by boot_initialize_client(), and boot_restart_client().
int au_install | ( | void | ) |
Definition at line 8209 of file authenticate.c.
References au_add_method_check_authorization(), au_add_user(), AU_ALTER, AU_AUTH_CLASS_NAME, Au_cache_index, au_change_owner(), Au_dba_user, AU_DISABLE, au_drop_user(), AU_ENABLE, AU_EXECUTE, au_find_user_cache_index(), au_grant(), AU_OLD_ROOT_CLASS_NAME, AU_PASSWORD_CLASS_NAME, AU_ROOT_CLASS_NAME, AU_SELECT, AU_SET_USER, AU_USER_CLASS_NAME, db_add_constraint(), DB_CONSTRAINT_UNIQUE, db_create_class(), db_drop_class(), er_errid(), ER_FAILED, locator_create_heap_if_needed(), NO_ERROR, NULL, obj_create(), obj_delete(), sm_mark_system_class(), sm_update_class(), smt_add_attribute(), smt_add_class_method(), smt_add_method(), smt_assign_argument_domain(), and smt_edit_class_mop().
Referenced by boot_initialize_client().
Definition at line 2106 of file authenticate.c.
References au_get_set(), db_make_object(), db_set_read_fetch_instance_version(), LC_FETCH_DIRTY_VERSION, NO_ERROR, set_free(), set_ismember(), TM_TRAN_READ_FETCH_VERSION, and ws_is_same_object().
Referenced by au_add_member_method(), au_add_user(), au_change_owner(), au_change_serial_owner(), au_change_sp_owner(), au_change_trigger_owner(), au_check_serial_authorization(), au_drop_member_method(), au_drop_user(), au_drop_user_method(), au_find_user_to_drop(), au_perform_login(), au_set_password_internal(), au_set_user_comment(), check_authorization(), csql(), csql_do_session_cmd(), db_add_volume_ex(), db_set_system_parameters(), do_kill(), do_update_stats(), drop_stored_procedure(), jsp_alter_stored_procedure(), load_has_authorization(), loaddb_internal(), pt_check_access_status(), pt_make_query_showstmt(), tranlist(), and update_cache().
void au_link_static_methods | ( | void | ) |
Definition at line 8197 of file authenticate.c.
References db_link_static_methods().
Referenced by conn_restart_client(), and install_static_methods().
Definition at line 6662 of file authenticate.c.
References ARG_FILE_LINE, AU_DISABLE, AU_ENABLE, au_perform_login(), Au_user_name, Au_user_password_des_oldstyle, Au_user_password_sha1, Au_user_password_sha2_512, BOOT_IS_CLIENT_RESTARTED, DB_MAX_USER_LENGTH, encrypt_password(), encrypt_password_sha1(), encrypt_password_sha2_512(), ER_ERROR_SEVERITY, er_set(), ER_USER_NAME_TOO_LONG, error(), NO_ERROR, NULL, and strlen.
Referenced by au_login_method(), ci_conn_connect_impl(), db_login(), db_restart_ex(), and ux_database_connect().
Definition at line 6725 of file authenticate.c.
References ARG_FILE_LINE, au_login(), clogin_user(), db_get_string(), db_get_user_name(), DB_IS_NULL, db_make_error(), db_make_null(), db_string_free(), ER_AU_INVALID_USER, er_set(), ER_WARNING_SEVERITY, error(), IS_STRING, NO_ERROR, and NULL.
void au_reset_authorization_caches | ( | void | ) |
Definition at line 1019 of file authenticate.c.
References Au_cache_depth, AU_CACHE_INVALID, au_class_cache::data, i, au_class_cache::next, and NULL.
Referenced by ws_abort_mops(), and ws_clear_all_hints().
Definition at line 4907 of file authenticate.c.
References ARG_FILE_LINE, au_delete_new_auth(), AU_DISABLE, AU_ENABLE, au_fetch_class_force(), au_fetch_instance(), AU_FETCH_READ, AU_FETCH_UPDATE, au_get_object(), AU_GRANT_SHIFT, au_revoke(), AU_TYPE_MASK, AU_UPDATE, AU_USER_CLASS_NAME, catcls_Enable, check_grant_option(), collect_class_grants(), DB_AUTH_ALL, db_get_int(), db_make_int(), DB_NOT_PARTITIONED_CLASS, DB_PARTITIONED_CLASS, drop_grant_entry(), ER_AU_ACCESS_ERROR, ER_AU_CANT_REVOKE_OWNER, ER_AU_CANT_REVOKE_SELF, ER_AU_CANT_UPDATE, ER_AU_GRANT_NOT_FOUND, ER_ERROR_SEVERITY, ER_LK_UNILATERALLY_ABORTED, er_set(), ER_WARNING_SEVERITY, error(), find_grant_entry(), free_and_init, free_grant_list(), get_grants(), i, LC_FETCH_MVCC_VERSION, NO_ERROR, NULL, obj_inst_lock(), sm_class::owner, propagate_revoke(), reset_cache_for_user_and_class(), set_free(), set_get_element(), set_put_element(), sm_bump_local_schema_version(), sm_partitioned_class_type(), tran_abort_upto_system_savepoint(), tran_system_savepoint(), UNIQUE_PARTITION_SAVEPOINT_REVOKE, and ws_is_same_object().
Referenced by au_revoke(), and db_revoke().
Definition at line 2657 of file authenticate.c.
References au_set_password_internal(), and ENCODE_PREFIX_SHA2_512.
Referenced by au_add_user_method(), au_set_password_method(), db_set_password(), do_alter_user(), and do_create_user().
Definition at line 2711 of file authenticate.c.
References ARG_FILE_LINE, au_set_password_internal(), db_get_string(), DB_IS_NULL, db_make_error(), db_make_null(), ENCODE_PREFIX_DES, ER_AU_INVALID_PASSWORD, er_set(), ER_WARNING_SEVERITY, error(), IS_STRING, NO_ERROR, and NULL.
Definition at line 2758 of file authenticate.c.
References ARG_FILE_LINE, au_set_password_internal(), db_get_string(), DB_IS_NULL, db_make_error(), db_make_null(), ENCODE_PREFIX_SHA1, ENCODE_PREFIX_SHA2_512, ER_AU_INVALID_PASSWORD, er_set(), ER_WARNING_SEVERITY, error(), IS_ENCODED_SHA2_512, IS_STRING, NO_ERROR, and NULL.
Definition at line 2670 of file authenticate.c.
References ARG_FILE_LINE, au_set_password(), db_get_string(), DB_IS_NULL, db_make_error(), db_make_null(), ER_AU_INVALID_PASSWORD, er_set(), ER_WARNING_SEVERITY, error(), IS_STRING, NO_ERROR, and NULL.
int au_set_user | ( | MOP | newuser | ) |
Definition at line 6483 of file authenticate.c.
References Au_cache_index, au_find_user_cache_index(), error(), NO_ERROR, NULL, sc_set_current_schema(), and ws_is_same_object().
Definition at line 2808 of file authenticate.c.
References ARG_FILE_LINE, au_is_dba_group_member(), AU_MAX_COMMENT_CHARS, AU_RESTORE, AU_SAVE_AND_DISABLE, db_make_string(), ER_AU_COMMENT_OVERFLOW, ER_AU_UPDATE_FAILURE, ER_ERROR_SEVERITY, er_set(), error(), NO_ERROR, NULL, obj_set(), pr_clear_value(), strlen, and ws_is_same_object().
Referenced by db_set_user_comment(), do_alter_user(), and do_create_user().
int au_start | ( | void | ) |
Definition at line 6781 of file authenticate.c.
References ARG_FILE_LINE, AU_AUTH_CLASS_NAME, AU_DBA_USER_NAME, Au_disable, au_find_user(), AU_PASSWORD_CLASS_NAME, au_perform_login(), AU_PUBLIC_USER_NAME, AU_ROOT_CLASS_NAME, AU_USER_CLASS_NAME, Au_user_name, Au_user_password_sha2_512, db_Connect_status, DB_CONNECTION_STATUS_CONNECTED, db_get_all_objects(), db_objlist_free(), ER_AU_INCOMPLETE_AUTH, ER_AU_MULTIPLE_ROOTS, ER_AU_NO_AUTHORIZATION, er_errid(), ER_ERROR_SEVERITY, ER_LK_UNILATERALLY_ABORTED, er_set(), error(), db_objlist::next, NO_ERROR, NULL, db_objlist::op, sm_find_class(), and strlen.
Referenced by boot_initialize_client(), and boot_restart_client().
const char* au_user_name | ( | void | ) |
Definition at line 5746 of file authenticate.c.
References ARG_FILE_LINE, AU_DISABLE, AU_ENABLE, Au_user_name, db_get_string(), DB_IS_NULL, ER_AU_CORRUPTED, ER_AU_NO_USER_LOGGED_IN, ER_ERROR_SEVERITY, er_set(), ER_WARNING_SEVERITY, IS_STRING, NO_ERROR, NULL, obj_get(), pr_clear_value(), strlen, and ws_copy_string().
Referenced by boot_restart_client(), db_get_user_name(), pt_evaluate_db_value_expr(), pt_make_query_show_grants_curr_usr(), and pt_to_regu_variable().
char* au_user_name_dup | ( | void | ) |
Definition at line 2441 of file authenticate.c.
References Au_user_name, and strdup().
Referenced by boot_initialize_client().
const char* AU_AUTH_CLASS_NAME |
Definition at line 109 of file authenticate.c.
Referenced by au_add_method_check_authorization(), au_force_write_new_auth(), au_install(), au_make_user(), au_start(), and clist_init().
MOP Au_dba_user |
Definition at line 334 of file authenticate.c.
Referenced by au_get_class_owner(), au_get_dba_user(), au_install(), boot_define_attribute(), boot_define_charsets(), boot_define_class(), boot_define_class_authorization(), boot_define_collations(), boot_define_data_type(), boot_define_domain(), boot_define_dual(), boot_define_ha_apply_info(), boot_define_index(), boot_define_index_key(), boot_define_meth_argument(), boot_define_meth_file(), boot_define_meth_sig(), boot_define_method(), boot_define_partition(), boot_define_query_spec(), boot_define_serial(), boot_define_stored_procedure(), boot_define_stored_procedure_arguments(), boot_define_view_attribute(), boot_define_view_attribute_set_domain(), boot_define_view_authorization(), boot_define_view_class(), boot_define_view_db_charset(), boot_define_view_db_collation(), boot_define_view_index(), boot_define_view_index_key(), boot_define_view_method(), boot_define_view_method_argument(), boot_define_view_method_argument_set_domain(), boot_define_view_method_file(), boot_define_view_partition(), boot_define_view_stored_procedure(), boot_define_view_stored_procedure_arguments(), boot_define_view_super_class(), boot_define_view_trigger(), boot_define_view_vclass(), db_add_volume_ex(), db_set_system_parameters(), do_check_internal_statements(), and tr_drop_deferred_activities().
const char* AU_DBA_USER_NAME |
Definition at line 113 of file authenticate.c.
Referenced by au_perform_login(), and au_start().
int Au_disable |
Definition at line 309 of file authenticate.c.
Referenced by au_check_authorization(), au_disable(), au_enable(), au_fetch_class_internal(), au_fetch_instance(), au_final(), au_get_class_privilege(), au_init(), au_start(), and check_authorization().
const char* AU_GRANT_CLASS_NAME |
Definition at line 110 of file authenticate.c.
const char* AU_OLD_ROOT_CLASS_NAME |
Definition at line 105 of file authenticate.c.
Referenced by au_install().
const char* AU_PASSWORD_CLASS_NAME |
Definition at line 108 of file authenticate.c.
Referenced by au_install(), au_set_password_internal(), au_start(), and clist_init().
MOP Au_public_user |
Definition at line 333 of file authenticate.c.
Referenced by au_get_public_user(), boot_define_dual(), boot_define_ha_apply_info(), boot_define_serial(), boot_define_view_attribute(), boot_define_view_attribute_set_domain(), boot_define_view_authorization(), boot_define_view_class(), boot_define_view_db_charset(), boot_define_view_db_collation(), boot_define_view_index(), boot_define_view_index_key(), boot_define_view_method(), boot_define_view_method_argument(), boot_define_view_method_argument_set_domain(), boot_define_view_method_file(), boot_define_view_partition(), boot_define_view_stored_procedure(), boot_define_view_stored_procedure_arguments(), boot_define_view_super_class(), boot_define_view_trigger(), boot_define_view_vclass(), and catcls_vclass_install().
const char* AU_PUBLIC_USER_NAME |
Definition at line 112 of file authenticate.c.
Referenced by au_get_public_user_name(), au_perform_login(), au_start(), boot_restart_client(), and do_create_user().
MOP Au_root |
Definition at line 300 of file authenticate.c.
Referenced by find_all_triggers(), lang_db_put_charset(), put_timezone_checksum(), tr_dump_selective_triggers(), tr_status_as_string(), trigger_table_add(), trigger_table_drop(), trigger_table_find(), and trigger_table_rename().
const char* AU_ROOT_CLASS_NAME |
Definition at line 104 of file authenticate.c.
Referenced by au_install(), au_start(), and clist_init().
MOP Au_user |
Definition at line 343 of file authenticate.c.
Referenced by check_authorization(), csql(), csql_do_session_cmd(), db_add_volume_ex(), db_get_user(), db_set_system_parameters(), do_check_internal_statements(), do_create_serial_internal(), do_kill(), do_update_stats(), drop_stored_procedure(), execute_activity(), get_user_trigger_objects(), jsp_add_stored_procedure(), jsp_alter_stored_procedure(), la_apply_statement_log(), loaddb_internal(), pt_check_access_status(), pt_check_union_type_compatibility_of_values_query(), pt_make_query_showstmt(), register_user_trigger(), tr_create_trigger(), tr_drop_deferred_activities(), tr_update_user_cache(), tranlist(), unregister_user_trigger(), and update_class().
const char* AU_USER_CLASS_NAME |
Definition at line 107 of file authenticate.c.
Referenced by au_dump_auth(), au_dump_to_file(), au_dump_user(), au_export_users(), au_find_user(), au_find_user_to_drop(), au_get_user_class_name(), au_grant(), au_install(), au_make_user(), au_revoke(), au_start(), boot_define_class(), boot_define_class_authorization(), boot_define_serial(), boot_define_stored_procedure(), boot_define_view_attribute(), boot_define_view_attribute_set_domain(), boot_define_view_authorization(), boot_define_view_class(), boot_define_view_index(), boot_define_view_index_key(), boot_define_view_method(), boot_define_view_method_argument(), boot_define_view_method_argument_set_domain(), boot_define_view_method_file(), boot_define_view_partition(), boot_define_view_super_class(), boot_define_view_trigger(), boot_define_view_vclass(), build_class_grant_list(), clist_init(), collect_class_grants(), and update_cache().
char Au_user_password[AU_MAX_PASSWORD_BUF+4] |