morningman edited a comment on issue #797: set password failed
URL: https://github.com/apache/incubator-doris/issues/797#issuecomment-475938803
 
 
   I try this logic in mysql:
   
   case 1:
   1. create user `cmy@'%'`
   2. login using `cmy` from hostA, 
   3. `select user();` returns `cmy@'hostA'`, and `select current_user();` 
returns `cmy@'%'`
   3. `set password` and `set password for cmy@'%'` are allows, `set password 
for cmy@'hostA'` is not allowed.
   
   case 2:
   1. create user `cmy@'hostA'`
   2. login using `cmy` from host
   3. `select user();` returns `cmy@'hostA'`, and `select current_user();` 
returns `cmy@'hostA'`
   4. `set password` and `set password for cmy@'hostA'` are allows, `set 
password for cmy@'%'` is not allowed.
   
   So the conclusion is:
   
   user is allowed to set password for what `current_user()` returns.
   and if `for` clause is missing, it will set password for `current_user()`.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to