gen_users 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. #!/bin/bash
  2. #for fist run
  3. #python3 -m venv env
  4. #source env/bin/activate
  5. #pip3 install -t requirements
  6. #activate env before:
  7. #source env/bin/activate
  8. #https://democonv.sharix-app.org/ - testing client
  9. #users recommended for testing
  10. #user: test@ej.sharix-app.org
  11. #user: test1@ej.sharix-app.org
  12. python3 gen-passwords.py | while IFS=' ' read -ra line; do ejabberdctl register ${line[0]} ej.sharix-app.org ${line[1]}; done;
  13. python3 gen-passwords.py | while IFS=' ' read -ra line; do ejabberdctl change-password ${line[0]} ej.sharix-app.org ${line[1]}; done;
  14. #ejabberdctl register $username ej $password
  15. #ejabberdctl change-password User Host newPassword
  16. #ejabberdctl check_account user1 localhos
  17. #
  18. #ejabberdctl unregister badlop3 localhost
  19. #ejabberdctl registered_users localhost
  20. #ejabberdctl help registered_userst
  21. #берем список ботов и паролей к ним и создаем или апдейтим пользователей (если уже созданы) на сервере
  22. #Create MUC room
  23. #ejabberdctl create_room room_name muc_service xmpp_domain
  24. #Destroy MUC room
  25. #ejabberdctl destroy_room room_name muc_service
  26. #
  27. #List unused MUC rooms
  28. #ejabberdctl rooms_unused_list xmpp_domain number_of_days
  29. #https://docs.ejabberd.im/admin/ejabberdctl/muc-admin/