openstack忘记密码,破密登录_Fay_Linux的博客-程序员宅基地_openstack登录密码

技术标签: 运维  小脚本  openstack  

openstack 破密

[[email protected] ~]# vim /etc/httpd/conf.d/15-horizon_vhost.conf
[[email protected] ~]# tail -4 /etc/httpd/conf.d/15-horizon_vhost.conf | head -2
WSGIProcessGroup apache
WSGIApplicationGroup %{GLOBAL} //添加这行

真机浏览器 : 192.168.1.10 //登录openstack页面成功

编写openstack破密脚本

[[email protected] ~]# vim token
export OS_TOKEN=44408c6342474313994b983c1e939b8b //来自[[email protected] ~]# vim /etc/keystone/keystone.conf admin token
export OS_URL=http://127.0.0.1:35357/v2.0
export OS_INDETITY_API_VERSION=2

[[email protected] ~]# source token
[[email protected] ~]# source keystonerc_admin
[[email protected] ~(keystone_admin)]# openstack user set --h
optional arguments:
-h, --help show this help message and exit
–name Set user name
–project Set default project (name or ID)
–password
Set user password
–password-prompt Prompt interactively for password
–email
Set user email address
–enable Enable user (default)
–disable Disable user

[[email protected] ~(keystone_admin)]# openstack user set --password xx* admin //为admin修改密码

真机浏览器用新密码登录openstack

192.168.1.10
admin
xx* //登录成功

版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
本文链接:https://blog.csdn.net/Fay_Linux/article/details/95588989

智能推荐

随便推点