register_new_matrix_user.1 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. .\" generated with Ronn/v0.7.3
  2. .\" http://github.com/rtomayko/ronn/tree/0.7.3
  3. .
  4. .TH "REGISTER_NEW_MATRIX_USER" "1" "February 2017" "" ""
  5. .
  6. .SH "NAME"
  7. \fBregister_new_matrix_user\fR \- Used to register new users with a given home server when registration has been disabled
  8. .
  9. .SH "SYNOPSIS"
  10. \fBregister_new_matrix_user\fR options\.\.\.
  11. .
  12. .SH "DESCRIPTION"
  13. \fBregister_new_matrix_user\fR registers new users with a given home server when registration has been disabled\. For this to work, the home server must be configured with the \'registration_shared_secret\' option set\.
  14. .
  15. .P
  16. This accepts the user credentials like the username, password, is user an admin or not and registers the user onto the homeserver database\. Also, a YAML file containing the shared secret can be provided\. If not, the shared secret can be provided via the command line\.
  17. .
  18. .P
  19. By default it assumes the home server URL to be \fBhttps://localhost:8448\fR\. This can be changed via the \fBserver_url\fR command line option\.
  20. .
  21. .SH "FILES"
  22. A sample YAML file accepted by \fBregister_new_matrix_user\fR is described below:
  23. .
  24. .IP "" 4
  25. .
  26. .nf
  27. registration_shared_secret: "s3cr3t"
  28. .
  29. .fi
  30. .
  31. .IP "" 0
  32. .
  33. .SH "OPTIONS"
  34. .
  35. .TP
  36. \fB\-u\fR, \fB\-\-user\fR
  37. Local part of the new user\. Will prompt if omitted\.
  38. .
  39. .TP
  40. \fB\-p\fR, \fB\-\-password\fR
  41. New password for user\. Will prompt if omitted\. Supplying the password on the command line is not recommended\. Use the STDIN instead\.
  42. .
  43. .TP
  44. \fB\-a\fR, \fB\-\-admin\fR
  45. Register new user as an admin\. Will prompt if omitted\.
  46. .
  47. .TP
  48. \fB\-c\fR, \fB\-\-config\fR
  49. Path to server config file containing the shared secret\.
  50. .
  51. .TP
  52. \fB\-k\fR, \fB\-\-shared\-secret\fR
  53. Shared secret as defined in server config file\. This is an optional parameter as it can be also supplied via the YAML file\.
  54. .
  55. .TP
  56. \fBserver_url\fR
  57. URL of the home server\. Defaults to \'https://localhost:8448\'\.
  58. .
  59. .SH "EXAMPLES"
  60. .
  61. .nf
  62. $ register_new_matrix_user \-u user1 \-p p@ssword \-a \-c config\.yaml
  63. .
  64. .fi
  65. .
  66. .SH "COPYRIGHT"
  67. This man page was written by Rahul De <\fIrahulde@swecha\.net\fR> for Debian GNU/Linux distribution\.
  68. .
  69. .SH "SEE ALSO"
  70. synctl(1), synapse_port_db(1), hash_password(1)