A user with an expired password connected to a server can't assign new password with the statement "SET password=..." if the statement is run in PS mode, for example when it is submitted to server via binary protocol.
Test case is below.
CREATE USER user1@localhost PASSWORD EXPIRE
SET GLOBAL disconnect_on_expired_password= OFF ;
connect (con1,localhost,user1);
connection con1;
--error ER_MUST_CHANGE_PASSWORD
select 1;
-- The following statement fails with the error ER_MUST_CHANGE_PASSWORD.
PREPARE stmt FROM "SET password=password('')" ;
In case the statement
SET password = password ( '' );
is run as a regular statement it is executed successfully.
Dmitry Shulga
made changes -
2021-03-19 04:46
Description
A user with an expired password connected to a server can't assign new password with the statement "SET password=..." if the statement is run in PS mode, for example when it is submitted to server via binary protocol.
Test case is below.
{code:sql}
CREATE USER user1@localhost PASSWORD EXPIRE
SET GLOBAL disconnect_on_expired_password=OFF;
connect(con1,localhost,user1);
connection con1;
--error ER_MUST_CHANGE_PASSWORD
select 1;
-- The following statement fails with the error ER_MUST_CHANGE_PASSWORD.
PREPARE stmt FROM "SET password=password('')";
{code}
In case the statement "SET password=password('');" is run as a regular statement it is executed successfully.
A user with an expired password connected to a server can't assign new password with the statement "SET password=..." if the statement is run in PS mode, for example when it is submitted to server via binary protocol.
Test case is below.
{code:sql}
CREATE USER user1@localhost PASSWORD EXPIRE
SET GLOBAL disconnect_on_expired_password=OFF;
connect(con1,localhost,user1);
connection con1;
--error ER_MUST_CHANGE_PASSWORD
select 1;
-- The following statement fails with the error ER_MUST_CHANGE_PASSWORD.
PREPARE stmt FROM "SET password=password('')";
{code}
In case the statement
{code:sql}
SET password=password('');
{code}
is run as a regular statement it is executed successfully.
Dmitry Shulga
made changes -
2021-03-21 04:48
Fix Version/s
10.4
[ 22408
]
Fix Version/s
10.5
[ 23123
]
Fix Version/s
10.6
[ 24028
]
Dmitry Shulga
made changes -
2021-03-21 04:48
Status
Open
[ 1
]
In Progress
[ 3
]
Dmitry Shulga
made changes -
2021-03-21 04:48
Assignee
Dmitry Shulga
[ JIRAUSER47315
]
Oleksandr Byelkin
[ sanja
]
Status
In Progress
[ 3
]
In Review
[ 10002
]
Oleksandr Byelkin
made changes -
2021-04-06 08:47
Assignee
Oleksandr Byelkin
[ sanja
]
Dmitry Shulga
[ JIRAUSER47315
]
Status
In Review
[ 10002
]
Stalled
[ 10000
]
Dmitry Shulga
made changes -
2021-04-13 05:46
Fix Version/s
10.4.19
[ 25205
]
Fix Version/s
10.5.10
[ 25204
]
Fix Version/s
10.6.0
[ 24431
]
Fix Version/s
10.4
[ 22408
]
Fix Version/s
10.5
[ 23123
]
Fix Version/s
10.6
[ 24028
]
Resolution
Fixed
[ 1
]
Status
Stalled
[ 10000
]
Closed
[ 6
]
Sergei Golubchik
made changes -
2021-12-06 21:53
Workflow
MariaDB v3
[ 120280
]
MariaDB v4
[ 159055
]
{"report":{"fcp":1100.2000000476837,"ttfb":383.2000000476837,"pageVisibility":"visible","entityId":98072,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"b4c3200a-0280-4863-887b-2a1d5885e2b2","navigationType":0,"readyForUser":1179.1000000238419,"redirectCount":0,"resourceLoadedEnd":832,"resourceLoadedStart":389.2000000476837,"resourceTiming":[{"duration":114.09999990463257,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":389.2000000476837,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":389.2000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":503.2999999523163,"responseStart":0,"secureConnectionStart":0},{"duration":114.20000004768372,"initiatorType":"link","name":"https://jira.mariadb.org/s/7ebd35e77e471bc30ff0eba799ebc151-CDN/lu2bu7/820016/12ta74/8679b4946efa1a0bb029a3a22206fb5d/_/download/contextbatch/css/jira.browse.project,project.issue.navigator,jira.view.issue,jira.general,jira.global,atl.general,-_super/batch.css?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&slack-enabled=true","startTime":389.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":389.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":503.7000000476837,"responseStart":0,"secureConnectionStart":0},{"duration":287.5,"initiatorType":"script","name":"https://jira.mariadb.org/s/fbf975c0cce4b1abf04784eeae9ba1f4-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":389.60000002384186,"connectEnd":389.60000002384186,"connectStart":389.60000002384186,"domainLookupEnd":389.60000002384186,"domainLookupStart":389.60000002384186,"fetchStart":389.60000002384186,"redirectEnd":0,"redirectStart":0,"requestStart":504.10000002384186,"responseEnd":677.1000000238419,"responseStart":529.2000000476837,"secureConnectionStart":389.60000002384186},{"duration":442.2000000476837,"initiatorType":"script","name":"https://jira.mariadb.org/s/099b33461394b8015fc36c0a4b96e19f-CDN/lu2bu7/820016/12ta74/8679b4946efa1a0bb029a3a22206fb5d/_/download/contextbatch/js/jira.browse.project,project.issue.navigator,jira.view.issue,jira.general,jira.global,atl.general,-_super/batch.js?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&locale=en&slack-enabled=true","startTime":389.7999999523163,"connectEnd":389.7999999523163,"connectStart":389.7999999523163,"domainLookupEnd":389.7999999523163,"domainLookupStart":389.7999999523163,"fetchStart":389.7999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":505.39999997615814,"responseEnd":832,"responseStart":530.6000000238419,"secureConnectionStart":389.7999999523163},{"duration":146.29999995231628,"initiatorType":"script","name":"https://jira.mariadb.org/s/94c15bff32baef80f4096a08aceae8bc-CDN/lu2bu7/820016/12ta74/c92c0caa9a024ae85b0ebdbed7fb4bd7/_/download/contextbatch/js/atl.global,-_super/batch.js?locale=en","startTime":390,"connectEnd":390,"connectStart":390,"domainLookupEnd":390,"domainLookupStart":390,"fetchStart":390,"redirectEnd":0,"redirectStart":0,"requestStart":508,"responseEnd":536.2999999523163,"responseStart":532.2000000476837,"secureConnectionStart":390},{"duration":146.59999990463257,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bu7/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-en/jira.webresources:calendar-en.js","startTime":390.2000000476837,"connectEnd":390.2000000476837,"connectStart":390.2000000476837,"domainLookupEnd":390.2000000476837,"domainLookupStart":390.2000000476837,"fetchStart":390.2000000476837,"redirectEnd":0,"redirectStart":0,"requestStart":508.5,"responseEnd":536.7999999523163,"responseStart":534.7999999523163,"secureConnectionStart":390.2000000476837},{"duration":146.10000002384186,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bu7/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-localisation-moment/jira.webresources:calendar-localisation-moment.js","startTime":390.5,"connectEnd":390.5,"connectStart":390.5,"domainLookupEnd":390.5,"domainLookupStart":390.5,"fetchStart":390.5,"redirectEnd":0,"redirectStart":0,"requestStart":509.5,"responseEnd":536.6000000238419,"responseStart":533.7000000476837,"secureConnectionStart":390.5},{"duration":117.29999995231628,"initiatorType":"link","name":"https://jira.mariadb.org/s/b04b06a02d1959df322d9cded3aeecc1-CDN/lu2bu7/820016/12ta74/a2ff6aa845ffc9a1d22fe23d9ee791fc/_/download/contextbatch/css/jira.global.look-and-feel,-_super/batch.css","startTime":390.60000002384186,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":390.60000002384186,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":507.89999997615814,"responseStart":0,"secureConnectionStart":0},{"duration":149.60000002384186,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":390.7999999523163,"connectEnd":390.7999999523163,"connectStart":390.7999999523163,"domainLookupEnd":390.7999999523163,"domainLookupStart":390.7999999523163,"fetchStart":390.7999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":512.2999999523163,"responseEnd":540.3999999761581,"responseStart":538.3999999761581,"secureConnectionStart":390.7999999523163},{"duration":120.5,"initiatorType":"link","name":"https://jira.mariadb.org/s/3ac36323ba5e4eb0af2aa7ac7211b4bb-CDN/lu2bu7/820016/12ta74/d176f0986478cc64f24226b3d20c140d/_/download/contextbatch/css/com.atlassian.jira.projects.sidebar.init,-_super,-project.issue.navigator,-jira.view.issue/batch.css?jira.create.linked.issue=true","startTime":391,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":391,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":511.5,"responseStart":0,"secureConnectionStart":0},{"duration":152.79999995231628,"initiatorType":"script","name":"https://jira.mariadb.org/s/3339d87fa2538a859872f2df449bf8d0-CDN/lu2bu7/820016/12ta74/d176f0986478cc64f24226b3d20c140d/_/download/contextbatch/js/com.atlassian.jira.projects.sidebar.init,-_super,-project.issue.navigator,-jira.view.issue/batch.js?jira.create.linked.issue=true&locale=en","startTime":391.10000002384186,"connectEnd":391.10000002384186,"connectStart":391.10000002384186,"domainLookupEnd":391.10000002384186,"domainLookupStart":391.10000002384186,"fetchStart":391.10000002384186,"redirectEnd":0,"redirectStart":0,"requestStart":516.7999999523163,"responseEnd":543.8999999761581,"responseStart":541.7000000476837,"secureConnectionStart":391.10000002384186},{"duration":364.39999997615814,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bu7/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-js/jira.webresources:bigpipe-js.js","startTime":392,"connectEnd":392,"connectStart":392,"domainLookupEnd":392,"domainLookupStart":392,"fetchStart":392,"redirectEnd":0,"redirectStart":0,"requestStart":571,"responseEnd":756.3999999761581,"responseStart":744.6000000238419,"secureConnectionStart":392},{"duration":361,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bu7/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-init/jira.webresources:bigpipe-init.js","startTime":396.60000002384186,"connectEnd":396.60000002384186,"connectStart":396.60000002384186,"domainLookupEnd":396.60000002384186,"domainLookupStart":396.60000002384186,"fetchStart":396.60000002384186,"redirectEnd":0,"redirectStart":0,"requestStart":655.7000000476837,"responseEnd":757.6000000238419,"responseStart":751.3999999761581,"secureConnectionStart":396.60000002384186},{"duration":78.60000002384186,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":807.8999999761581,"connectEnd":807.8999999761581,"connectStart":807.8999999761581,"domainLookupEnd":807.8999999761581,"domainLookupStart":807.8999999761581,"fetchStart":807.8999999761581,"redirectEnd":0,"redirectStart":0,"requestStart":854.2000000476837,"responseEnd":886.5,"responseStart":884.7999999523163,"secureConnectionStart":807.8999999761581}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":134,"responseStart":383,"responseEnd":388,"domLoading":386,"domInteractive":1276,"domContentLoadedEventStart":1276,"domContentLoadedEventEnd":1338,"domComplete":2094,"loadEventStart":2094,"loadEventEnd":2094,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1250.2000000476837},{"name":"bigPipe.sidebar-id.end","time":1250.8999999761581},{"name":"bigPipe.activity-panel-pipe-id.start","time":1251.1000000238419},{"name":"bigPipe.activity-panel-pipe-id.end","time":1254.3999999761581},{"name":"activityTabFullyLoaded","time":1354.5}],"measures":[],"correlationId":"b2a5e4a7cdb5d2","effectiveType":"4g","downlink":9.7,"rtt":0,"serverDuration":168,"dbReadsTimeInMs":23,"dbConnsTimeInMs":32,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}