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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
9590daf3
Commit
9590daf3
authored
Jan 27, 2023
by
Anel Husakovic
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Testing Windows bb without skip-name-resolve
parent
49ee18eb
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
46 additions
and
0 deletions
+46
-0
mysql-test/main/anel.result
mysql-test/main/anel.result
+22
-0
mysql-test/main/anel.test
mysql-test/main/anel.test
+24
-0
No files found.
mysql-test/main/anel.result
0 → 100644
View file @
9590daf3
# Verify anonymous user on Windows is not 'Administrator'
#
# Test of anonymous user connection
--------------------------------------------------------------
create role test_role;
grant test_role to ''@localhost;
connect con1,localhost,'',,,$MASTER_MYPORT;
SELECT CURRENT_ROLE;
CURRENT_ROLE
NULL
SET role test_role;
SELECT CURRENT_ROLE;
CURRENT_ROLE
test_role
SET role new_role;
ERROR OP000: Invalid role specification `new_role`
set default role test_role for ''@localhost;
ERROR 42000: You are using MariaDB as an anonymous user and anonymous users are not allowed to modify user settings
connection default;
disconnect con1;
REVOKE all privileges, grant option from ''@localhost;
drop role test_role;
mysql-test/main/anel.test
0 → 100644
View file @
9590daf3
--
echo
# Verify anonymous user on Windows is not 'Administrator'
--
echo
#
--
echo
# Test of anonymous user connection
--
echo
--------------------------------------------------------------
--
source
include
/
add_anonymous_users
.
inc
create
role
test_role
;
grant
test_role
to
''
@
localhost
;
connect
(
con1
,
localhost
,
''
,,,
$MASTER_MYPORT
);
SELECT
CURRENT_ROLE
;
SET
role
test_role
;
SELECT
CURRENT_ROLE
;
# user cannot set subset role, since it is not granted explicitly
--
error
ER_INVALID_ROLE
SET
role
new_role
;
--
error
ER_PASSWORD_ANONYMOUS_USER
set
default
role
test_role
for
''
@
localhost
;
connection
default
;
disconnect
con1
;
REVOKE
all
privileges
,
grant
option
from
''
@
localhost
;
--
source
include
/
delete_anonymous_users
.
inc
drop
role
test_role
;
\ No newline at end of file
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