diff options
author | unknown <monty@mashka.mysql.fi> | 2002-12-06 22:01:12 +0200 |
---|---|---|
committer | unknown <monty@mashka.mysql.fi> | 2002-12-06 22:01:12 +0200 |
commit | baebdcfc585ee64ed9b6ca4ed0724639a6c17893 (patch) | |
tree | d8930036397cec559c0b05ad5018ed3fcb962480 /libmysqld/lib_sql.cc | |
parent | 3b0f8e896ae96395401f5177986c06d96c8f66d0 (diff) | |
download | mariadb-git-baebdcfc585ee64ed9b6ca4ed0724639a6c17893.tar.gz |
Remove usage of acl_getroot() in embedded server.
Fixed compilation problem when OPENSSL was enabled.
libmysqld/lib_sql.cc:
Remove usage of acl_getroot() as user accounts is not useful with embedded server
sql/sql_acl.cc:
Fixed compilation problem when OPENSSL was enabled
Diffstat (limited to 'libmysqld/lib_sql.cc')
-rw-r--r-- | libmysqld/lib_sql.cc | 37 |
1 files changed, 2 insertions, 35 deletions
diff --git a/libmysqld/lib_sql.cc b/libmysqld/lib_sql.cc index 91b815c3e3b..58babe24ec5 100644 --- a/libmysqld/lib_sql.cc +++ b/libmysqld/lib_sql.cc @@ -223,41 +223,8 @@ static bool check_user(THD *thd,enum_server_command command, const char *user, send_error(thd,ER_OUT_OF_RESOURCES); return 1; } - thd->master_access=acl_getroot(thd, thd->host, thd->ip, thd->user, - passwd, thd->scramble, &thd->priv_user, - protocol_version == 9 || - !(thd->client_capabilities & - CLIENT_LONG_PASSWORD),&ur); - DBUG_PRINT("info", - ("Capabilities: %d packet_length: %d Host: '%s' User: '%s' Using password: %s Access: %u db: '%s'", - thd->client_capabilities, thd->max_client_packet_length, - thd->host_or_ip, thd->priv_user, - passwd[0] ? "yes": "no", - thd->master_access, thd->db ? thd->db : "*none*")); - if (thd->master_access & NO_ACCESS) - { - net_printf(thd, ER_ACCESS_DENIED_ERROR, - thd->user, - thd->host_or_ip, - passwd[0] ? ER(ER_YES) : ER(ER_NO)); - mysql_log.write(thd,COM_CONNECT,ER(ER_ACCESS_DENIED_ERROR), - thd->user, - thd->host_or_ip, - passwd[0] ? ER(ER_YES) : ER(ER_NO)); - return(1); // Error already given - } - if (check_count) - { - VOID(pthread_mutex_lock(&LOCK_thread_count)); - bool tmp=(thread_count - delayed_insert_threads >= max_connections && - !(thd->master_access & PROCESS_ACL)); - VOID(pthread_mutex_unlock(&LOCK_thread_count)); - if (tmp) - { // Too many connections - send_error(thd, ER_CON_COUNT_ERROR); - return(1); - } - } + thd->master_access= ~0L; // No user checking + thd->priv_user= thd->user; mysql_log.write(thd,command, (thd->priv_user == thd->user ? (char*) "%s@%s on %s" : |