Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
270ee74b
Commit
270ee74b
authored
Mar 01, 2004
by
Greg@greg-laptop
Browse files
Options
Browse Files
Download
Plain Diff
Merge gweir@build.mysql.com:/home/bk/mysql-4.1
into greg-laptop.:C:/cygwin/bk/mysql-4.1
parents
db010453
7f3771bc
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
2 deletions
+17
-2
mysql-test/r/grant.result
mysql-test/r/grant.result
+6
-0
mysql-test/t/grant.test
mysql-test/t/grant.test
+4
-0
sql/sql_acl.cc
sql/sql_acl.cc
+7
-2
No files found.
mysql-test/r/grant.result
View file @
270ee74b
...
...
@@ -165,3 +165,9 @@ drop_user3@localhost, drop_user4@localhost;
drop user drop_user1@localhost, drop_user2@localhost, drop_user3@localhost,
drop_user4@localhost;
drop table t1;
grant usage on *.* to mysqltest_1@localhost identified by "password";
grant select, update, insert on test.* to mysqltest@localhost;
show grants for mysqltest_1@localhost;
Grants for mysqltest_1@localhost
GRANT USAGE ON *.* TO 'mysqltest_1'@'localhost' IDENTIFIED BY PASSWORD '*2470C0C06DEE42FD1618BB99005ADCA2EC9D1E19'
drop user mysqltest_1@localhost;
mysql-test/t/grant.test
View file @
270ee74b
...
...
@@ -125,3 +125,7 @@ drop_user3@localhost, drop_user4@localhost;
drop
user
drop_user1
@
localhost
,
drop_user2
@
localhost
,
drop_user3
@
localhost
,
drop_user4
@
localhost
;
drop
table
t1
;
grant
usage
on
*.*
to
mysqltest_1
@
localhost
identified
by
"password"
;
grant
select
,
update
,
insert
on
test
.*
to
mysqltest
@
localhost
;
show
grants
for
mysqltest_1
@
localhost
;
drop
user
mysqltest_1
@
localhost
;
sql/sql_acl.cc
View file @
270ee74b
...
...
@@ -829,8 +829,8 @@ static void acl_update_user(const char *user, const char *host,
acl_user
->
x509_subject
=
(
x509_subject
?
strdup_root
(
&
mem
,
x509_subject
)
:
0
);
}
set_user_salt
(
acl_user
,
password
,
password_len
);
if
(
password
)
set_user_salt
(
acl_user
,
password
,
password_len
);
/* search complete: */
break
;
}
...
...
@@ -1456,6 +1456,11 @@ static int replace_user_table(THD *thd, TABLE *table, const LEX_USER &combo,
store_record
(
table
,
record
[
1
]);
// Save copy for update
if
(
combo
.
password
.
str
)
// If password given
table
->
field
[
2
]
->
store
(
password
,
password_len
,
&
my_charset_latin1
);
else
if
(
!
rights
&&
!
revoke_grant
&&
thd
->
lex
->
ssl_type
==
SSL_TYPE_NOT_SPECIFIED
&&
!
thd
->
lex
->
mqh
.
bits
)
{
DBUG_RETURN
(
0
);
}
}
/* Update table columns with new privileges */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment