Please see below:
On Sun, Nov 29, 2015 at 1:19 AM, 'Palmtown' via TURN Server
(Open-Source project)
<
turn-server-project...@googlegroups.com> wrote:
>
> After hours of research and testing, I was able to figure out the problem.
> I come to find the common problem is documentation as other users have
> experienced as it can be misleading. Also, I found a few replies by you
> that were incorrect and I wanted to point that out as well.
>
> First, when running the command turnutils_uclient as outlined on
>
https://code.google.com/p/rfc5766-turn-server/wiki/turnutils_uclient, one
> needs to specify the "plain text" secret that is in the value field of the
> database, or set in the configuration file for the variable
> static-auth-secret. For example, if "north" is in the database or
> static-auth-secret=north, then the command would be:
>
> turnutils_uclient -v -u myuser -W north localhost
I never said that it must be anything else than a plain password.
Check the file examples/scripts/restapi/secure_udp_client_with_secret.sh.
It has the plain password. I always recommend checking the example
scripts.
>
> The misconception is is that on
>
https://code.google.com/p/rfc5766-turn-server/wiki/turnutils_uclient it
> doesn't vividly explain that the -W option should be plain text as I have
> described it above. I would recommend you to copy and replace the text as
> given below which will give users an exact understanding of running the
> command as this was my first problem.
OK, I'll do that, if it will clarify the things. Thanks for the text.
>
> Secondly, in a previous post I read, you stated that lt-cred-mech is not
> needed and can be commented out when using use-auth-secret. However, that
> is not true.
You are right - that is not true. My intention was to make it as
implied option when the REST API is used, but somehow that
functionality slipped away. I'll fix it in the next build.
> If you comment out #lt-cred-mech and only uncomment
> use-auth-secret, then it will allow anonymous authorization which is the
> issue I experienced and explained previously. To use the REST API, one must
> uncomment lt-cred-mech and use-auth-secret, and then only the REST API will
> work correctly.
>
> Updated to
>
https://code.google.com/p/rfc5766-turn-server/wiki/turnutils_uclient:
>
> -W <secret> TURN REST API secret. The "plain text" secret e.g. "north" that
> is in the stored in the value column of the turn_secret table in the
> database if dynamic, or the static-auth-secret value set in the
> configuration file if using static. Note that this option is not compatible
> with the -A flag.
>
> Lastly, you have associated
>
https://rfc5766-turn-server.googlecode.com/svn/docs/TURNServerRESTAPI.pdf as
> part of the project which is misleading. Many users as I have seen mistake
> this for a feature of CoTurn, however, it is merely referencing an RFC of
> how the API should function should the user decide to implement it. I would
> recommend to only use this as a reference in an instructional document that
> is in direction relation to CoTurn itself.
>
> If you need assistance with the project, I would be willing to write this
> document for you and develop a server-side API to utilize the project
> provided you will ensure that appropriate credits are provided to me for
> donating my time.
Of course I'll appreciate any help and I'll add your information to
the project credits.
But I'd like you to consider the fact that REST API for TURN is never
is going to make it to and RFC. This is why I am not actively working
on it. On the other hand, the oAuth (third-party authorization) is
being pretty successful in the standardization process, and it seems
to be the future TURN authorization technique. And you can achieve
about the same (but better) result as with REST API.
Coturn supports third-party authorization, but it has no tools to
connect the TURN server to the authorization server - the TURN server
users are supposed to develop that themselves.
I do not mind if you participate in the project by writing REST API
tools, but I think that oAuth-based work may be a better spent time of
yours if you are willing to move into that direction.
But that's totally up to you.
Thanks
Oleg
>
> Thanks for your hard work.
>