forked from coturn/coturn
-
Notifications
You must be signed in to change notification settings - Fork 0
turnadmin
Bradley T. Hughes edited this page Jul 18, 2015
·
1 revision
$ turnadmin [command] [options]
$ turnadmin [ -h | --help]
-
-P, --generate-encrypted-password Generate and print to the standard output an encrypted form of a password (for web admin user or CLI). The value then can be used as a safe key for the password storage on disk or in the database. Every invocation for the same password produces a different result. The for mat of the encrypted password is:
$5$<...salt...>$<...sha256(salt+password)...>
. Salt is 16 characters, the sha256 output is 64 characters. Character 5 is the algorithm id (sha256). Only sha256 is supported as the hash function. - -k, --key Generate key for a long-term credentials mechanism user.
- -a, --add Add or update a long-term user.
- -d, --delete Delete a long-term user.
- -l, --list List all long-term users.
- -s, --set-secret=... Set secret in the database.
- -S, --show-secret Show secret stored in database.
-
-X, --delete-secret
<secret>
Delete a shared secret. - --delete-all-secrets Delete all shared secrets for REST API.
- -O, --add-origin Add origin-to-realm relation.
- -R, --del-origin Delete origin-to-realm relation.
- -I, --list-origins List origin-to-realm relations.
- -g, --set-realm-option Set realm params: max-bps, total-quota, user-quota.
- -G, --list-realm-options List realm params.
-
-b, --db, --userdb
<sqlite-file-name>
SQLite database file name (default - /var/db/turndb or /usr/local/var/db/turndb or /var/lib/turn/turndb, depending on platform). -
-e, --psql-userdb, --sql-userdb
<connection-string>
PostgreSQL database connection string. -
-M, --mysql-userdb
<connection-string>
MySQL database connection string. -
-N, --redis-userdb
<connection-string>
Redis database connection string. -
-J, --mongo-userdb
<connection-string>
MongoDB user database connection string. -
-u, --user
<user>
User name. -
-r, --realm
<realm>
Realm. -
-p, --password
<password>
Password. -
-o, --origin
origin
Fully-formed origin, for examplehttps://crinna.org:443
. - --max-bps Set value of realm's max-bps parameter. Setting to zero value means removal of the option.
- --total-quota Set value of realm's total-quota parameter. Setting to zero value means removal of the option.
- --user-quota Set value of realm's user-quota parameter. Setting to zero value means removal of the option.
- -h, --help Help.
$ turnadmin -P -p <password>
$ turnadmin -k -u <username> -r <realm> -p <password>
$ turnadmin -a [-b <sqlite-db-file> | -e <db-connection-string> | -M <db-connection-string> | -N <db-connection-string> ] -u <username> -r <realm> -p <password>
$ turnadmin -d [-b <sqlite-db-file> | -e <db-connection-string> | -M <db-connection-string> | -N <db-connection-string> ] -u <username>
$ turnadmin -l --mysql-userdb="<db-connection-string>"
$ turnadmin -l --redis-userdb="<db-connection-string>"
$ turnadmin -s <secret> --mysql-userdb="<db-connection-string>"
$ turnadmin -S --psql-userdb="<db-connection-string>"
$ turnadmin --mysql-userdb="<db-connection-string>" -r <realm> -o <origin>
$ turnadmin --redis-userdb="<db-connection-string>" -o <origin>
$ turnadmin --redis-userdb="<db-connection-string>" -I
$ turnadmin --psql-userdb="<db-connection-string>" -I -r <realm>
$ turnadmin -h