Skip to content

File authenticate.h

FileList > cubrid > src > object > authenticate.h

Go to the source code of this file

  • #include <stdio.h>
  • #include <stdlib.h>
  • #include "error_manager.h"
  • #include "class_object.h"
  • #include "databases_file.h"
  • #include "object_fetch.h"
  • #include "extract_schema.hpp"
  • #include "schema_system_catalog_constants.h"
  • #include "set_object.h"
  • #include "authenticate_constants.h"
  • #include "authenticate_context.hpp"

Public Functions

Type Name
int au_add_member (MOP group, MOP member)
MOP au_add_user (const char * name, int * exists)
int au_change_class_owner (MOP class_mop, MOP owner_mop)
int au_change_class_owner_including_partitions (MOP class_mop, MOP owner_mop)
int au_change_serial_owner (MOP serial_mop, MOP owner_mop, bool by_class_owner_change)
int au_change_sp_owner (PARSER_CONTEXT * parser, MOP sp, MOP owner)
int au_change_sp_owner_with_transfer_privileges (PARSER_CONTEXT * parser, MOP sp_mop, MOP owner_mop)
int au_change_trigger_owner (MOP trigger_mop, MOP owner_mop)
int au_check_class_authorization (MOP op, DB_AUTH auth)
int au_check_owner (DB_VALUE * creator_val)
int au_check_procedure_authorization (MOP procedure_object)
int au_check_serial_authorization (MOP serial_object)
int au_check_server_authorization (MOP server_object)
authenticate_context * au_ctx (void)
void au_disable_passwords ()
int au_drop_member (MOP group, MOP member)
int au_drop_user (MOP user)
void au_dump (void)
void au_dump_auth (FILE * fp)
void au_dump_to_file (FILE * fp)
void au_dump_user (MOP user, FILE * fp)
int au_export_grants (extract_context & ctxt, print_output & output_ctx, MOP class_mop, DB_OBJECT_TYPE obj_type)
int au_export_users (extract_context & ctxt, print_output & output_ctx)
int au_fetch_class (MOP op, SM_CLASS ** class_ptr, AU_FETCHMODE fetchmode, DB_AUTH type)
int au_fetch_class_by_classmop (MOP op, SM_CLASS ** class_ptr, AU_FETCHMODE fetchmode, DB_AUTH type)
int au_fetch_class_by_instancemop (MOP op, SM_CLASS ** class_ptr, AU_FETCHMODE fetchmode, DB_AUTH type)
int au_fetch_class_force (MOP op, SM_CLASS ** class_, AU_FETCHMODE fetchmode)
int au_fetch_instance (MOP op, MOBJ * obj_ptr, AU_FETCHMODE mode, LC_FETCH_VERSION_TYPE fetch_version_type, DB_AUTH type)
int au_fetch_instance_force (MOP op, MOBJ * obj_ptr, AU_FETCHMODE fetchmode, LC_FETCH_VERSION_TYPE fetch_version_type)
MOP au_find_user (const char * user_name)
int au_find_user_to_drop (const char * user_name, MOP * user)
int au_force_write_new_auth (void)
MOP au_get_class_owner (MOP classmop)
int au_get_class_privilege (DB_OBJECT * mop, unsigned int * auth)
int au_get_object (MOP obj, const char * attname, MOP * mop_ptr)
int au_get_set (MOP obj, const char * attname, DB_SET ** set)
char * au_get_user_name (MOP obj)
int au_grant (DB_OBJECT_TYPE obj_type, MOP user, MOP class_mop, DB_AUTH type, bool grant_option)
bool au_is_dba_group_member (MOP user)
bool au_is_server_authorized_user (DB_VALUE * owner_val)
bool au_is_user_group_member (MOP group_user, MOP user)
int au_login (const char * name, const char * password, bool ignore_dba_privilege)
int au_revoke (DB_OBJECT_TYPE obj_type, MOP user, MOP class_mop, DB_AUTH type, MOP drop_user)
int au_set_get_obj (DB_SET * set, int index, MOP * obj)
int au_set_user_comment (MOP user, const char * comment)
int au_set_user_timestamps (MOP user)
int au_update_user_timestamp (MOP user)

Macros

Type Name
define AU_DISABLE (save) /* multi line expression */
define AU_DISABLE_PASSWORDS () [**au\_ctx**](authenticate_8c.md#function-au_ctx) ()-&gt;disable\_passwords ();
define AU_ENABLE (save) /* multi line expression */
define AU_RESTORE (save) /* multi line expression */
define AU_SAVE_AND_DISABLE (save) /* multi line expression */
define AU_SAVE_AND_ENABLE (save) /* multi line expression */
define AU_SET_USER [**au\_set\_user**](authenticate_8h.md#define-au_set_user)
define Au_authorization_class [**au\_ctx**](authenticate_8c.md#function-au_ctx) ()-&gt;authorization\_class
define Au_cache [**au\_ctx**](authenticate_8c.md#function-au_ctx) ()-&gt;caches
define Au_dba_user [**au\_ctx**](authenticate_8c.md#function-au_ctx) ()-&gt;dba\_user
define Au_disable [**au\_ctx**](authenticate_8c.md#function-au_ctx) ()-&gt;disable\_auth\_check
define Au_password_class [**au\_ctx**](authenticate_8c.md#function-au_ctx) ()-&gt;password\_class
define Au_public_user [**au\_ctx**](authenticate_8c.md#function-au_ctx) ()-&gt;public\_user
define Au_root [**au\_ctx**](authenticate_8c.md#function-au_ctx) ()-&gt;root
define Au_root_class [**au\_ctx**](authenticate_8c.md#function-au_ctx) ()-&gt;root\_class
define Au_user [**au\_ctx**](authenticate_8c.md#function-au_ctx) ()-&gt;current\_user
define Au_user_class [**au\_ctx**](authenticate_8c.md#function-au_ctx) ()-&gt;user\_class
define Au_user_name [**au\_ctx**](authenticate_8c.md#function-au_ctx) ()-&gt;user\_name
define Au_user_password [**au\_ctx**](authenticate_8c.md#function-au_ctx) ()-&gt;[**user\_password**](broker__monitor_8c.md#function-timeout)
define Au_user_password_des_oldstyle [**au\_ctx**](authenticate_8c.md#function-au_ctx) ()-&gt;user\_password\_des\_oldstyle
define Au_user_password_sha1 [**au\_ctx**](authenticate_8c.md#function-au_ctx) ()-&gt;user\_password\_sha1
define Au_user_password_sha2_512 [**au\_ctx**](authenticate_8c.md#function-au_ctx) ()-&gt;user\_password\_sha2\_512
define au_check_user [**au\_ctx**](authenticate_8c.md#function-au_ctx) ()-&gt;check\_user
define au_final [**au\_ctx**](authenticate_8c.md#function-au_ctx) ()-&gt;final\_ctx
define au_free_authorization_cache_and_init (cache) /* multi line expression */
define au_get_current_user_name [**au\_ctx**](authenticate_8c.md#function-au_ctx) ()-&gt;get\_current\_user\_name
define au_get_public_user_name [**au\_ctx**](authenticate_8c.md#function-au_ctx) ()-&gt;get\_public\_user\_name
define au_get_user_class_name [**au\_ctx**](authenticate_8c.md#function-au_ctx) ()-&gt;get\_user\_class\_name
define au_has_user_name [**au\_ctx**](authenticate_8c.md#function-au_ctx) ()-&gt;has\_user\_name
define au_init [**au\_ctx**](authenticate_8c.md#function-au_ctx)
define au_install [**au\_ctx**](authenticate_8c.md#function-au_ctx) ()-&gt;install
define au_perform_pop_user [**au\_ctx**](authenticate_8c.md#function-au_ctx) ()-&gt;pop\_user
define au_perform_push_user [**au\_ctx**](authenticate_8c.md#function-au_ctx) ()-&gt;push\_user
define au_reset_authorization_caches () /* multi line expression */
define au_set_password_encrypt [**au\_ctx**](authenticate_8c.md#function-au_ctx) ()-&gt;set\_password
define au_set_user [**au\_ctx**](authenticate_8c.md#function-au_ctx) ()-&gt;set\_user
define au_start [**au\_ctx**](authenticate_8c.md#function-au_ctx) ()-&gt;start

Public Functions Documentation

function au_add_member

int au_add_member (
    MOP group,
    MOP member
) 

function au_add_user

MOP au_add_user (
    const  char * name,
    int * exists
) 

function au_change_class_owner

int au_change_class_owner (
    MOP class_mop,
    MOP owner_mop
) 

function au_change_class_owner_including_partitions

int au_change_class_owner_including_partitions (
    MOP class_mop,
    MOP owner_mop
) 

function au_change_serial_owner

int au_change_serial_owner (
    MOP serial_mop,
    MOP owner_mop,
    bool by_class_owner_change
) 

function au_change_sp_owner

int au_change_sp_owner (
    PARSER_CONTEXT * parser,
    MOP sp,
    MOP owner
) 

function au_change_sp_owner_with_transfer_privileges

int au_change_sp_owner_with_transfer_privileges (
    PARSER_CONTEXT * parser,
    MOP sp_mop,
    MOP owner_mop
) 

function au_change_trigger_owner

int au_change_trigger_owner (
    MOP trigger_mop,
    MOP owner_mop
) 

function au_check_class_authorization

int au_check_class_authorization (
    MOP op,
    DB_AUTH auth
) 

function au_check_owner

int au_check_owner (
    DB_VALUE * creator_val
) 

function au_check_procedure_authorization

int au_check_procedure_authorization (
    MOP procedure_object
) 

function au_check_serial_authorization

int au_check_serial_authorization (
    MOP serial_object
) 

function au_check_server_authorization

int au_check_server_authorization (
    MOP server_object
) 

function au_ctx

authenticate_context * au_ctx (
    void
) 

function au_disable_passwords

void au_disable_passwords () 

function au_drop_member

int au_drop_member (
    MOP group,
    MOP member
) 

function au_drop_user

int au_drop_user (
    MOP user
) 

function au_dump

void au_dump (
    void
) 

function au_dump_auth

void au_dump_auth (
    FILE * fp
) 

function au_dump_to_file

void au_dump_to_file (
    FILE * fp
) 

function au_dump_user

void au_dump_user (
    MOP user,
    FILE * fp
) 

function au_export_grants

int au_export_grants (
    extract_context & ctxt,
    print_output & output_ctx,
    MOP class_mop,
    DB_OBJECT_TYPE obj_type
) 

function au_export_users

int au_export_users (
    extract_context & ctxt,
    print_output & output_ctx
) 

function au_fetch_class

int au_fetch_class (
    MOP op,
    SM_CLASS ** class_ptr,
    AU_FETCHMODE fetchmode,
    DB_AUTH type
) 

function au_fetch_class_by_classmop

int au_fetch_class_by_classmop (
    MOP op,
    SM_CLASS ** class_ptr,
    AU_FETCHMODE fetchmode,
    DB_AUTH type
) 

function au_fetch_class_by_instancemop

int au_fetch_class_by_instancemop (
    MOP op,
    SM_CLASS ** class_ptr,
    AU_FETCHMODE fetchmode,
    DB_AUTH type
) 

function au_fetch_class_force

int au_fetch_class_force (
    MOP op,
    SM_CLASS ** class_,
    AU_FETCHMODE fetchmode
) 

function au_fetch_instance

int au_fetch_instance (
    MOP op,
    MOBJ * obj_ptr,
    AU_FETCHMODE mode,
    LC_FETCH_VERSION_TYPE fetch_version_type,
    DB_AUTH type
) 

function au_fetch_instance_force

int au_fetch_instance_force (
    MOP op,
    MOBJ * obj_ptr,
    AU_FETCHMODE fetchmode,
    LC_FETCH_VERSION_TYPE fetch_version_type
) 

function au_find_user

MOP au_find_user (
    const  char * user_name
) 

function au_find_user_to_drop

int au_find_user_to_drop (
    const  char * user_name,
    MOP * user
) 

function au_force_write_new_auth

int au_force_write_new_auth (
    void
) 

function au_get_class_owner

MOP au_get_class_owner (
    MOP classmop
) 

function au_get_class_privilege

int au_get_class_privilege (
    DB_OBJECT * mop,
    unsigned  int * auth
) 

function au_get_object

int au_get_object (
    MOP obj,
    const  char * attname,
    MOP * mop_ptr
) 

function au_get_set

int au_get_set (
    MOP obj,
    const  char * attname,
    DB_SET ** set
) 

function au_get_user_name

char * au_get_user_name (
    MOP obj
) 

function au_grant

int au_grant (
    DB_OBJECT_TYPE obj_type,
    MOP user,
    MOP class_mop,
    DB_AUTH type,
    bool grant_option
) 

function au_is_dba_group_member

bool au_is_dba_group_member (
    MOP user
) 

function au_is_server_authorized_user

bool au_is_server_authorized_user (
    DB_VALUE * owner_val
) 

function au_is_user_group_member

bool au_is_user_group_member (
    MOP group_user,
    MOP user
) 

function au_login

int au_login (
    const  char * name,
    const  char * password,
    bool ignore_dba_privilege
) 

function au_revoke

int au_revoke (
    DB_OBJECT_TYPE obj_type,
    MOP user,
    MOP class_mop,
    DB_AUTH type,
    MOP drop_user
) 

function au_set_get_obj

int au_set_get_obj (
    DB_SET * set,
    int index,
    MOP * obj
) 

function au_set_user_comment

int au_set_user_comment (
    MOP user,
    const  char * comment
) 

function au_set_user_timestamps

int au_set_user_timestamps (
    MOP user
) 

function au_update_user_timestamp

int au_update_user_timestamp (
    MOP user
) 

Macro Definition Documentation

define AU_DISABLE

#define AU_DISABLE (
    save
) `/* multi line expression */`

define AU_DISABLE_PASSWORDS

#define AU_DISABLE_PASSWORDS (

) `au_ctx ()->disable_passwords ();`

define AU_ENABLE

#define AU_ENABLE (
    save
) `/* multi line expression */`

define AU_RESTORE

#define AU_RESTORE (
    save
) `/* multi line expression */`

define AU_SAVE_AND_DISABLE

#define AU_SAVE_AND_DISABLE (
    save
) `/* multi line expression */`

define AU_SAVE_AND_ENABLE

#define AU_SAVE_AND_ENABLE (
    save
) `/* multi line expression */`

define AU_SET_USER

#define AU_SET_USER `au_set_user`

define Au_authorization_class

#define Au_authorization_class `au_ctx ()->authorization_class`

define Au_cache

#define Au_cache `au_ctx ()->caches`

define Au_dba_user

#define Au_dba_user `au_ctx ()->dba_user`

define Au_disable

#define Au_disable `au_ctx ()->disable_auth_check`

define Au_password_class

#define Au_password_class `au_ctx ()->password_class`

define Au_public_user

#define Au_public_user `au_ctx ()->public_user`

define Au_root

#define Au_root `au_ctx ()->root`

define Au_root_class

#define Au_root_class `au_ctx ()->root_class`

define Au_user

#define Au_user `au_ctx ()->current_user`

define Au_user_class

#define Au_user_class `au_ctx ()->user_class`

define Au_user_name

#define Au_user_name `au_ctx ()->user_name`

define Au_user_password

#define Au_user_password `au_ctx ()-> user_password`

define Au_user_password_des_oldstyle

#define Au_user_password_des_oldstyle `au_ctx ()->user_password_des_oldstyle`

define Au_user_password_sha1

#define Au_user_password_sha1 `au_ctx ()->user_password_sha1`

define Au_user_password_sha2_512

#define Au_user_password_sha2_512 `au_ctx ()->user_password_sha2_512`

define au_check_user

#define au_check_user `au_ctx ()->check_user`

define au_final

#define au_final `au_ctx ()->final_ctx`

define au_free_authorization_cache_and_init

#define au_free_authorization_cache_and_init (
    cache
) `/* multi line expression */`

define au_get_current_user_name

#define au_get_current_user_name `au_ctx ()->get_current_user_name`

define au_get_public_user_name

#define au_get_public_user_name `au_ctx ()->get_public_user_name`

define au_get_user_class_name

#define au_get_user_class_name `au_ctx ()->get_user_class_name`

define au_has_user_name

#define au_has_user_name `au_ctx ()->has_user_name`

define au_init

#define au_init `au_ctx`

define au_install

#define au_install `au_ctx ()->install`

define au_perform_pop_user

#define au_perform_pop_user `au_ctx ()->pop_user`

define au_perform_push_user

#define au_perform_push_user `au_ctx ()->push_user`

define au_reset_authorization_caches

#define au_reset_authorization_caches (

) `/* multi line expression */`

define au_set_password_encrypt

#define au_set_password_encrypt `au_ctx ()->set_password`

define au_set_user

#define au_set_user `au_ctx ()->set_user`

define au_start

#define au_start `au_ctx ()->start`


The documentation for this class was generated from the following file cubrid/src/object/authenticate.h