GaussDB修改账户登录失败后不锁定

GaussDB中的GUC参数failed_login_attempts代表用户在连续输入错误密码被锁定的次数,默认值为10。当用户解锁用户后,重新登录还是被锁,说明在解锁后仍有其他客户端再次使用错误的密码尝试连接的次数超过GUC参数failed_login_attempts的值导致用户在此被锁。

  • 分布式下
gs_guc reload -Z datanode -Z coordinator -N all -I all -c "failed_login_attempts=0"
gs_guc reload -Z datanode -Z coordinator -N all -I all -c "password_lock_time=0"

gs_guc check -Z datanode -Z coordinator -N all -I all -c "failed_login_attempts"
gs_guc check -Z datanode -Z coordinator -N all -I all -c "password_lock_time"
  • 集中式下
gs_guc reload -Z datanode -N all -I all -c "failed_login_attempts=0"
gs_guc reload -Z datanode -N all -I all -c "password_lock_time=0"

gs_guc check -Z datanode -N all -I all -c "failed_login_attempts"
gs_guc check -Z datanode -N all -I all -c "password_lock_time"

posted on 2025-01-09 21:07  yq1DB  阅读(92)  评论(0)    收藏  举报

导航