Izib / rfc5766-turn-server

Automatically exported from code.google.com/p/rfc5766-turn-server
0 stars 0 forks source link

turnutils_client can't connect to server with plain user password with redis #143

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Setup Redis server and with redis-cli execute 'set 
turn/user/sampleuser/password password'
2. Start turn server 'turnserver -v -c /etc/turnserver.conf'
3. Connect to Turn server with 'turnutils_uclient -u sampleuser -w password 
127.0.0.1'

What is the expected output? What do you see instead?

Expected output: 
  $ turnutils_uclient -u sampleuser -w password 127.0.0.1
  0: Total connect time is 1
  0: start_mclient: msz=2, tot_send_msgs=0, ...

Actual output: 
  $ turnutils_uclient -u sampleuser -w password 127.0.0.1
  0: Cannot complete Allocation
  0: ERROR: Cannot complete Allocation

What version of the product are you using? On what operating system?
  version : rfc5766-turn-server_3.2.3.1-1_amd64.deb
  OS : Ubuntu 14.04 

Please provide any additional information below.
  Please check the issue : 
https://groups.google.com/forum/#!topic/turn-server-project-rfc5766-turn-server/
Q0Cpw_wVaEs

Original issue reported on code.google.com by iwase.yo...@gmail.com on 18 Mar 2015 at 7:12

GoogleCodeExporter commented 9 years ago
Fixed in SVN. Will be available in 3.2.5.7

Original comment by mom040...@gmail.com on 18 Mar 2015 at 7:16

GoogleCodeExporter commented 9 years ago
The recommended data storage is the 'keys', the plain passwords are not 
recommended in the database. So as the workaround, the keys can be used.

Original comment by mom040...@gmail.com on 18 Mar 2015 at 7:17

GoogleCodeExporter commented 9 years ago
I've tried same experiments with version 3.2.5.7 which source was retrieved 
with 'svn checkout http://rfc5766-turn-server.googlecode.com/svn/branches/v3.2/ 
rfc5766-turn-server-read-only', but there seems something wrong with reading 
configuration file.

Specifically, when i start turnserver the outputs were as followings:

Expected output: 
  $ sudo turnserver -v -c examples/etc/turnserver.conf  // Version Citrix-3.2.5.3 'Marshal West'
    ...
    0: Redis DB sync connection success: ip=192.168.100.50
    ...

Actual output: 
  $ sudo bin/turnserver -v -c examples/etc/turnserver.conf // Version Citrix-3.2.5.7 'Marshal West' 
    ...
    0: Bad configuration format: redis-userdb

Original comment by iwase.yo...@gmail.com on 19 Mar 2015 at 2:46

GoogleCodeExporter commented 9 years ago
FYI, 

Not only configuration file but also command like this

$ sudo bin/turnserver -v -a -r "example.com" -f -n -N "ip=192.168.100.50"

doesn't work. 

Original comment by iwase.yo...@gmail.com on 19 Mar 2015 at 4:25

GoogleCodeExporter commented 9 years ago
Try to do a clean fresh build on freshly taken code source tree.

I tested it everywhere and it works fine.

Original comment by mom040...@gmail.com on 19 Mar 2015 at 5:40

GoogleCodeExporter commented 9 years ago
I tested your commands, and I tested our test scripts together:

./turndb/testredisdbsetup.sh
./examples/scripts/longtermsecuredb/secure_relay_with_db_redis.sh
./examples/scripts/peer.sh
./examples/scripts/longtermsecure/secure_udp_client.sh

So I guess something is wrong in your compilation process or in your setup.

Original comment by mom040...@gmail.com on 19 Mar 2015 at 5:46

GoogleCodeExporter commented 9 years ago
Okay, thanks for testing!
I'll make a clean build and test them.

Original comment by iwase.yo...@gmail.com on 19 Mar 2015 at 5:48

GoogleCodeExporter commented 9 years ago
After recompiling source code, everything works fine!
The resaon is that I forgot to install libhiredis-dev.

Sorry to bother and I'm really appreciated you for quick response. :D

---
$ turnutils_uclient -u sampleuser -w pass 127.0.0.1
0: Total connect time is 0
...

Original comment by iwase.yo...@gmail.com on 19 Mar 2015 at 7:02