|
| 1 | +CREATE USER regress_user1; |
| 2 | +-- ok |
| 3 | +ALTER USER regress_user1 PASSWORD 'a_nice_long_password'; |
| 4 | +-- error: too short |
| 5 | +ALTER USER regress_user1 PASSWORD 'tooshrt'; |
| 6 | +ERROR: password is too short |
| 7 | +-- error: contains user name |
| 8 | +ALTER USER regress_user1 PASSWORD 'xyzregress_user1'; |
| 9 | +ERROR: password must not contain user name |
| 10 | +-- error: contains only letters |
| 11 | +ALTER USER regress_user1 PASSWORD 'alessnicelongpassword'; |
| 12 | +ERROR: password must contain both letters and nonletters |
| 13 | +-- encrypted ok (password is "secret") |
| 14 | +ALTER USER regress_user1 PASSWORD 'md51a44d829a20a23eac686d9f0d258af13'; |
| 15 | +-- error: password is user name |
| 16 | +ALTER USER regress_user1 PASSWORD 'md5e589150ae7d28f93333afae92b36ef48'; |
| 17 | +ERROR: password must not equal user name |
| 18 | +DROP USER regress_user1; |