Skip to content

HokyeeJau/JMS_user_handler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

JMS_user_handler

针对JumpServer2.2.2,在后台通过快速命令行实现新用户添加、已有用户查询与删除。 针对用户删除操作,仍存在外键关联时发生的错误。

用法

  1. 需要提前申请三个模板用户(每个角色各一个),接着填写配置文件config.yaml,值得注意的是堡垒机所在的服务器的mysql,根用户可能是空密码
  2. 增加pyMySQL库
/opt/py3/bin/pip install pymysql
  1. 添加用户
/opt/py3/bin/python main.py --action=create --role=admin --username=new_admin
  1. 查询用户
/opt/py3/bin/python main.py --action=find --id=account_id
  1. 删除用户
/opt/py3/bin/python main.py --action=delete --id=account_id

About

针对JumpServer2.2.2,在后台通过快速命令行实现新用户添加、已有用户查询与删除。

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages