vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   Integration with vBulletin - gTeamSpeak - TeamSpeak User Management (https://vborg.vbsupport.ru/showthread.php?t=122221)

Gryphon 08-23-2007 04:37 PM

Look under Advanced Options to setup TS as an external database.

Chadi 08-25-2007 02:56 AM

Not sure what I'm doing wrong here, but I added this to the bottom of the server.ini file and of course, edited the necessary fields.

[DBEXPRESS]
sqldir=mysql_sql/
Drivername=mysql
Database=database_name
Hostname=localhost
User_name=database_username
Password=database_password
GetDriverFunc=getSQLDriverMYSQL
VendorLib=/usr/lib/libmysqlclient_r.so.10.0.0
LibraryName=./libsqlmy.so
Active=1


Now, I get this:

root@server [/home/teamspeak/public_html/tss2_rc2]# ./teamspeak2-server_startscript start
WARNING ! For security reasons we advise: DO NOT RUN THE SERVER AS ROOT
!!!!!!!!!!!
starting the teamspeak2 server
Error starting daemon. Aborted


Even if I try to run as teamspeak user, I get this:

teamspeak@server [~/public_html/tss2_rc2]# ./teamspeak2-server_startscript start
starting the teamspeak2 server
Error starting daemon. Aborted


My permissions

Code:

drwxr-xr-x  7 teamspeak teamspeak 4.0K Aug 24 22:48 ./
drwxr-xr-x  4 teamspeak teamspeak 4.0K Aug 24 22:46 ../
-rw-r--r--  1 teamspeak teamspeak    7 Aug 24 22:48 bad_names.txt
drwxr-xr-x  4 teamspeak teamspeak 4.0K Aug  2 12:57 httpdocs/
-rw-r--r--  1 teamspeak teamspeak 2.6K Aug  2 07:07 INSTALL
-rw-r--r--  1 teamspeak teamspeak 3.1K Aug  2 06:38 INSTALL.mysql
-rw-r--r--  1 teamspeak teamspeak 229K Mar  9  2004 libsqlmy.so
-rw-r--r--  1 teamspeak teamspeak  21K Aug  2 06:38 LICENSE
drwxr-xr-x  2 teamspeak teamspeak 4.0K Mar  9  2004 Manual/
-rw-r--r--  1 teamspeak teamspeak  353 Mar  9  2004 manual.html
drwx------  2 teamspeak teamspeak 4.0K Aug  2 06:25 mysql_sql/
-rw-r--r--  1 teamspeak teamspeak 3.9K Aug  2 06:49 README
-rw-r--r--  1 teamspeak teamspeak  20K Aug 24 22:48 server.dbs
-rw-r--r--  1 teamspeak teamspeak  789 Aug 24 22:52 server.ini
-rwxr--r--  1 teamspeak teamspeak 927K Aug  2 06:50 server_linux*
-rw-r--r--  1 teamspeak teamspeak 2.5K Aug 24 22:52 server.log
-rw-r--r--  1 teamspeak teamspeak 247K Mar  9  2004 sqlite.so
drwx------  2 teamspeak teamspeak 4.0K Aug  2 06:25 sqlite_sql/
drwxr-xr-x  2 teamspeak teamspeak 4.0K Mar  9  2004 tcpquerydocs/
-rwxr-xr-x  1 teamspeak teamspeak 2.5K Mar  9  2004 teamspeak2-server_startscript*
-rw-r--r--  1 teamspeak teamspeak    0 Aug 24 22:48 whitelist.txt
root@server [/home/teamspeak/public_html/tss2_rc2]# ./teamspeak2-server_startscript start


jluerken 08-25-2007 09:47 AM

Chadi check the server.log file. The error is logged there

Chadi 08-25-2007 11:47 AM

sorry forgot about that


24-08-07 23:16:41,ALL,Info,server, Server init initialized
24-08-07 23:16:41,ALL,Info,server, Server version: 2.0.23.19 Linux
24-08-07 23:16:41,ERROR,All,SQL, Database initialization error: EDatabaseError.Unable to Load ./libmysqld.a
24-08-07 23:16:41,ERROR,All,SERVER, Start_Server: unable to open database



This is what I have (with orange actual info, which I know is correct)


Code:

[DBEXPRESS]
sqldir=/var/lib/mysql
Drivername=mysql
Database=database_name
Hostname=localhost
User_name=database_username
Password=database_password
GetDriverFunc=getSQLDriverMYSQL
VendorLib=/usr/lib/libmysqlclient_r.so.14.0.0
LibraryName=./libmysqld.a
Active=1

Code:

root@server [/usr/lib]# ls *mysql*
libmysqlclient_r.so@    libmysqlclient_r.so.14.0.0*  libmysqlclient.so.14@      libmysqlclient.so.6@
libmysqlclient_r.so.14@  libmysqlclient.so@          libmysqlclient.so.14.0.0*

mysql:
./        libheap.a  libmyisam.a      libmysqlclient.la*    libmysqld.a    libnisam.a  libz.la*
../        libmerge.a  libmyisammrg.a    libmysqlclient_r.a    libmystrings.a  libvio.a    mysqld.sym
libdbug.a  libmygcc.a  libmysqlclient.a  libmysqlclient_r.la*  libmysys.a      libz.a


jluerken 08-25-2007 12:51 PM

Your problem has nothing to do with this hack at all.
You simply have problems connecting to the mysql database.
Even without this hack you would have the problem

Quote:

Database initialization error: EDatabaseError.Unable to Load ./libmysqld.a
The library cannot be loaded!

This is what I have
Quote:

[DBEXPRESS]
sqldir=mysql_sql/
Drivername=mysql
Database=xxx
Hostname=xxx
User_name=xxx
Password=xxx
GetDriverFunc=getSQLDriverMYSQL
VendorLib=/usr/lib/libmysqlclient_r.so.10.0.0
LibraryName=./libsqlmy.so
Active=1
The library you have to load depends on the operating system and the mysql version you're running!

Fix this first before trying to use this hack!

Chadi 08-25-2007 01:30 PM

I cannot find any download for libsqlmy.so via Google.

jluerken 08-26-2007 06:49 PM

Quote:

Originally Posted by chadi (Post 1325415)
I cannot find any download for libsqlmy.so via Google.

Like I said, this has nothing to do with this hack. Please check out www.goteamspeak.com

Gryphon 08-26-2007 07:02 PM

Thank you for helping out jluerken, you have answered these questions better than I could have.

Foxtrotelite 08-27-2007 03:08 AM

I rent a teamspeak from a hosting company. Will this mod work with the remote ts?

jluerken 08-27-2007 08:20 AM

Yes you can enter a remote ServerIP but your Teamspeak Host needs two things:

1. TS must be installed in a mysql database. Normally hosters do not do so, they use the standard sqllite.
2. The remote TS must allow TCP Query. This should be working but some TS Hosters disable this with a firewall for whatevery reason.

btw. with vB 3.5 we got the product installation feature so before asking if a product will work for you or not, simply make a db backup, install and and test it. If its not working remove the product with a single click again.

RogerChristie 08-28-2007 03:52 PM

Quote:

Originally Posted by jluerken (Post 1326578)
Yes you can enter a remote ServerIP but your Teamspeak Host needs two things:

1. TS must be installed in a mysql database. Normally hosters do not do so, they use the standard sqllite.
2. The remote TS must allow TCP Query. This should be working but some TS Hosters disable this with a firewall for whatevery reason.

btw. with vB 3.5 we got the product installation feature so before asking if a product will work for you or not, simply make a db backup, install and and test it. If its not working remove the product with a single click again.


I did not use a firewall on the remote TS/MySQL database, yet the TCP queries apparently just did not get through (this was using a Linux version of the server, which was tested and shown to be working). Mystified. Worse yet, when trying to run Teamspeak on this remote Windows 2000 Server installation, upon attempting to start the TS server, I see the tray icon appear for a split second, then it disappears and the TS server will not load. I looked for an error log but it does not even generate one so I can't find out what the trouble is. When I change the server.ini file back to using SQLite, the TS server starts normally. My MySQL database and permissions, and file permissions are all "grant all" for the MySQL database user, the database itself works fine by itself. I'm getting aggravated with Teamspeak already, I cannot believe these flaws have not been fixed after so many years of TS being in existence now. Please help!!!! :eek::eek::eek::eek::(

jluerken 08-28-2007 04:56 PM

This has nothing to do with this hack. You should ask for support at www.goteamspeak.com

Linux:
Accessing the mysql remotely has most of the times nothing to do with the rights for a db.
You should check you "skip-networking" variable in your my.cnf (/etc/my.cnf).
Change it to "#skip-networking" and restart the mysql server.

Windows:
I've never tested a mysql and ts2 installation on windows and do not see a need for doing so but
it could be the same issue like described above.

If you have >= Mysql 4.1 you MUST change the password hashing for the TS database to the old format
cause the ts libraries cannot use the new one.

heugabel 08-28-2007 05:10 PM

i become this error:

Code:

Invalid SQL:
INSERT INTO ts2.ts2_clients SET i_client_server_id = '1', b_client_privilege_serveradmin = '0', s_client_name = 'test.19', s_client_password='xxxxxxxx', dt_client_created='28082007195255000';
 
MySQL-Fehler : Duplicate entry '0' for key 1


jluerken 08-28-2007 05:21 PM

Quote:

Originally Posted by heugabel (Post 1327487)
i become this error:

Code:

Invalid SQL:
INSERT INTO ts2.ts2_clients SET i_client_server_id = '1', b_client_privilege_serveradmin = '0', s_client_name = 'test.19', s_client_password='xxxxxxxx', dt_client_created='28082007195255000';
 
MySQL-Fehler : Duplicate entry '0' for key 1


Sure you get it cause you use the wrong statements. Check out this

http://forum.goteamspeak.com/showthr...&highlight=4.1

heugabel 08-28-2007 06:03 PM

Quote:

Originally Posted by jluerken (Post 1327493)
Sure you get it cause you use the wrong statements. Check out this

http://forum.goteamspeak.com/showthr...&highlight=4.1

i have changed the entries but i become the same error...

this error comes when i filled out the password field

sorry for my bad english :D



the first person who has entered a password he becomes the "i_client_id" "0"

every other persons become the same id and this is the duplicate

heugabel 08-28-2007 06:20 PM

i have found the error....

for field "i_client_id" must activate "auto_increment"

it works

but is this correct for all other functions?

jluerken 08-28-2007 06:49 PM

This is correct. Auto increment is ok

Chadi 08-30-2007 03:58 PM

I really would appreciate someone helping me to get TS at least installed right. Its been a nightmare.
---------------------------------------------------------------
-------------- log started at 30-08-07 14:58 -------------
---------------------------------------------------------------
30-08-07 14:58:54,ALL,Info,server, Server init initialized
30-08-07 14:58:54,ALL,Info,server, Server version: 2.0.23.19 Linux
30-08-07 14:58:54,ERROR,All,SERVER, VirtualServer Startup(1) Exception: EDatabaseError.dbExpress Error: Operation Not Supported
30-08-07 14:58:54,ALL,Info,server, Server init finished
30-08-07 14:58:54,ERROR,Info,server, Unable to createpid file, stopping daemon
30-08-07 14:58:54,ALL,Info,server, Server shutdown initialized
30-08-07 14:58:54,ALL,Info,server, Stopping VirtualServer id:0 with port:8767
----------------------------------------------------------
---------------------------------------------------------------
--------------- log ended at 30-08-07 14:59 --------------
---------------------------------------------------------------

File: read_servers.sql

SELECT * FROM ts2_servers WHERE i_server_id > 0;

I tried starting it in root user mode, it works just not in teamspeak user mode

jluerken 08-30-2007 09:51 PM

chadi this is a vbhacks site. for teamspeak support visit www.goteamspeak.com

SocialNetworkBuzz 09-29-2007 08:18 AM

I can't get teamspeak to start after making these changes. if I remove it from the .ini it starts up again. .log is showing that it is failing on

-------------- log started at 29-09-07 13:15 -------------
---------------------------------------------------------------
29-09-07 13:15:11,ALL,Info,server, Server init initialized
29-09-07 13:15:11,ALL,Info,server, Server version: 2.0.23.19 Linux
29-09-07 13:15:11,ERROR,All,SQL, Database initialization error: EDatabaseError.Unable to Load /usr/lib/libmysqlclient$
29-09-07 13:15:11,ERROR,All,SERVER, Start_Server: unable to open database
----------------------------------------------------------
---------------------------------------------------------------
--------------- log ended at 29-09-07 13:15 --------------
---------------------------------------------------------------

I have both the % wildcard and the IP to my shell server which houses my TS and IRC server in cPanel of the server that houses my vB forum.

I'm assuming using libmysqlclient_r.so.14.0.0 is ok as that is what is in my /usr/lib there is no 10.0.0 in the folder.

SocialNetworkBuzz 09-29-2007 09:33 AM

I downloaded 10.0.0 and now that loads. But it is still failing. Now I receive DatabaseError.dbExpress Error: Invalid Username/Password but the .ini settings
are the same as my vbulletin config file.

SocialNetworkBuzz 09-29-2007 09:34 AM

1 Attachment(s)
for anyone who doesn't have 10.0.0 on your server..

jluerken 09-30-2007 05:26 AM

Hi Gryphon,

I am using your hack now for a few month and its great.
I found out that people register to use the teamspeak, but never write a forum thread/post.

It would be nice to add a feature to this hack that checks this.

Example:
Group A must have X threads/posts within Y days.
If a user tries to connect to the teamspeak server the hack should check if the set minimum thread/post value for the set timeframe is reached and allow/disallow access.

Do you think you can integrate this?

jluerken 09-30-2007 05:27 AM

Quote:

Originally Posted by Stabatha (Post 1349465)
I downloaded 10.0.0 and now that loads. But it is still failing. Now I receive DatabaseError.dbExpress Error: Invalid Username/Password but the .ini settings
are the same as my vbulletin config file.

Which MySQL Version do you have?
If 4.1x or higher pls. check that you set the old password hashing method for the teamspeak database cause the teamspeak libraries cannot handle the new system.

SocialNetworkBuzz 09-30-2007 06:50 AM

Quote:

Originally Posted by jluerken (Post 1350010)
Which MySQL Version do you have?
If 4.1x or higher pls. check that you set the old password hashing method for the teamspeak database cause the teamspeak libraries cannot handle the new system.


How do you do that? Yes, I'm using 4.1.22

Gryphon 10-01-2007 10:14 PM

Quote:

Originally Posted by jluerken (Post 1350007)
Group A must have X threads/posts within Y days.

Do you think you can integrate this?

Options added.

jluerken 10-02-2007 05:08 PM

Quote:

Originally Posted by Stabatha (Post 1350048)
How do you do that? Yes, I'm using 4.1.22

If you get an error about client authentication version when connecting to MySQL then it may be because your server is using the new
password format, while your mysql client (or PHP script, or JDBC code) is using the old password format. See: http://dev.mysql.com
/doc/mysql/en/Application_password_use.html.

You can change a new password to an old password like this:
bash shell>mysql -u root -p
passwort: rootpw

mysql> USE mysql
mysql> update user set password = old_password('passwordhere') where user = 'teamspeak'; flush privileges;
Query OK, 1 row affected (0.04 sec)
Rows matched: 1 Changed: 1 Warnings: 0

mysql> select user, password from user;
+-------+-------------------------------------------+
| user | password |
+-------+-------------------------------------------+
| root | *BA3E2F47E409A6ABA83D219D70631A02FE28539E |
| root | *BA3E2F47E409A6ABA83D219D70631A02FE28539E |
| | |
| | |
| teamspeak | 09a6e3834c6d11c9 |
+-------+-------------------------------------------+
5 rows in set (0.00 sec)


In this case root has a new, longer password. While the teamspeak user has the shorter, old password format. In PHP something like mys
ql_connect('localhost', 'teamspeak', 'passwordhere') should now successfully create a connection.

Replace "teamspeak" with the user you start your teamspeak server with.

Attention:

1. Never use ROOT to start your teamspeak server
2. Always update teamspeak with the latest server library
3. This is basic teamspeak knowledge and has nothing to do with this hack.
4. Don't forget to change some .sql statement if you use teamspeak with mysql instead of the sqllite system, otherwise it will not work

Get your teamspeak running before you install this hack!

jluerken 10-02-2007 05:11 PM

Quote:

Originally Posted by Gryphon (Post 1351017)
Options added.

Great news, thanks.
I will test the update later on and give you Feedback gryphon

Gryphon 10-02-2007 05:21 PM

vBulletin also has tools which could have been used as well to manipulate access control without these added options. By creating a usergroup which has access to the teamspeak signup and then create a usergroup promotion with the post/reputation/days registered ect. to promote them to that usergroup.

But it was only 10 lines of code I had already done for another project so it was a simple update ;)

jluerken 10-02-2007 10:04 PM

No its not the same. Promoting a user if he has for example 30 posts is something different than checking if the user has written 30 posts within the last X days.
Thats what I was looking for.

Not check the post amount but check the post amount for the last x days :D

Did you get it now? Sorry that I did not describe it better in my initial posting

Gryphon 10-02-2007 10:19 PM

I see, what I added will not do that. I may look into doing what you are asking, however I am unsure how soon I can do that.

JokeAss 10-08-2007 02:30 PM

Nice plugin!

But why is it that you need it to switch to MySQL? o_O

It should be possible to do all this via the TCP interface.

mjdnet 11-06-2007 08:18 PM

Not sure if I have made an install mistake but I cannot access this and do not see the Navbar entry? I have selected the Navbar and quick link entry but neither show. If I add the gteamspeak.php path manually I get a message that I am not authorised to view this,,,

Any help?

Gryphon 11-08-2007 07:32 PM

Quote:

Originally Posted by mjdnet (Post 1377273)
Not sure if I have made an install mistake but I cannot access this and do not see the Navbar entry? I have selected the Navbar and quick link entry but neither show. If I add the gteamspeak.php path manually I get a message that I am not authorised to view this,,,

Any help?

The navbar and quicklink entries are style dependant, if there are any modifications to the style they probably won't get added properly.

When going to gteamspeak.php and you get the message that you are not authorized to view, you need to setup the usergroup access permissions and custom profilefield, though, admin should be enabled by default.

There isn't really much I can do to help without knowing how your board is setup or what you did to setup the mod, just make sure you go over all instructions and settings carefully, this mod isn't plug n' play, it takes some setup time.

Iratus 11-26-2007 08:52 AM

Hi Gryphon,

Great mod but I'm having the PHP 5 / MySQL 5 compatability issue where you enter your password to create the account but it just refreshes the screen and never proceeds (and doesn't create the table entry)

I have Teamspeak working just dandy on SQL and so I know that's not the problem so I'm wondering if it's a PHP compatability issue. Any chance you can point me at where the user creation section of the script is, I'm going to have a crack at fixing it but am having a blonde moment and can't see it.

Cheers,

Iratus

jluerken 11-26-2007 10:05 AM

Hi Iratus,

can you please do the following?
Empty the server.log file, start your server and try to manage it via this mod.
Wait for the error and then post the content of your server.log file here?

/jluerken

Iratus 11-26-2007 02:01 PM

It isn't erroring in the TS log, that's what's making me think that it's some type of PHP error, IE it's never getting as far as the SQL

Quote:

---------------------------------------------------------------
-------------- log started at 26-11-07 10:44 -------------
---------------------------------------------------------------
26-11-07 10:44:23,ALL,Info,server, Server init initialized
26-11-07 10:44:23,ALL,Info,server, Server version: 2.0.24.1 Linux
26-11-07 10:44:24,ALL,Info,server, Starting VirtualServer id:1 with port:8767
26-11-07 10:44:24,ALL,Info,server, Started VirtualServer id:1 with port:8767
26-11-07 10:44:25,ALL,Info,server, Server init finished
26-11-07 10:44:25,WARNING,Info,server, TeamSpeak Server daemon activated
and just for congruity to show I'm hooking into sql properly

Quote:

[Main Config]
BoundToIp1=
ExternalIPDectection=1
HTTPServer Port=14534
HTTPServer Enabled=1
DateTimeFormat=dd-mm-yyyy hh:nn:ss
TCPQueryPort=51234
AllowedClientNameChars=
DisAllowedClientNameChars=()[]{}

[DBEXPRESS]
sqldir=mysql_sql/
Drivername=mysql
Database=teamspeak
Hostname=localhost
User_name=teamspeak
Password=******
GetDriverFunc=getSQLDriverMYSQL
VendorLib=/usr/lib/libmysqlclient_r.so.10.0.0
LibraryName=./libsqlmy.so
Active=1

[debug]
MessageTypes=LMTALL
MessageDepths=LMDALL

[WebPost]
AdminEmail=na
ISPLinkURL=na
ISPName=Private
ISPCountryNumber=5317
Enabled=1
PostURL=
ListPublic=0
UserAgent=teamspeak

[log]
access_r=0
access_u=0
channel_registerred=0
channel_unregisterred=0
sa=0
chat=0
kick_server=0
kick_channel=0

[Spam]
max_commands=10
in_seconds=2
Just for reference

PHP Version 5.2.3
Apache 2.2.3
MySQL 5.0.27
(So typical of Linux that staying on top of security updates has screwed me :) )

I was taking Gryphons advice that he wouldn't support it to a seperate database so I could have a problem with the connection but as it uses the same login details as TS itself I can't see where the problem is. Shall I just try connecting it to my VBulletin Database and creating the tables there and see if that works? I was trying to avoid it because I'd have to do the password compatibility change on the VBulletin dba account.

Gryphon 11-27-2007 04:32 PM

I am not positive of the differences in PHP 4/5 and MySQL 4/5 so unfortunately I can not help much in that regard. I am unsure why this would be happening and it will require that someone who does know help answer this and I will implement a possible compatibility fix if needed.

Brandje 11-30-2007 08:57 PM

In installed this on my TS server that was allready running a Mysqldb, and it works like a charm! thanks for the great mod!

Ohw, and I am using php5/mysql5, and found no errors what so ever

xTerMn8R 12-03-2007 08:36 PM

Will this hack work if I'm connecting to MYSQL using dbxODBC instead of dbxmda which costs 70-150 bucks. My 30 days just ran out and I see on goteamspeak they have alternative methods of connecting TS to MySQL using odbc.

Thanks,
xTerMn8R
www.superskunkracing.org


All times are GMT. The time now is 06:05 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01506 seconds
  • Memory Usage 1,865KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (5)bbcode_code_printable
  • (14)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete