Forum


Notice to all users

We are migrating towards a new forum system located at community.teamspeak.com, as such this forum will become read-only on January 29, 2020

Results 1 to 14 of 14
  1. #1
    Join Date
    April 2010
    Location
    Notts. UK
    Posts
    3

    How can I add a ServerQuery User

    Edit by mod
    Please note. Be carefull if you want add a new identity or yourself in this specific group. This groups is like the last way to manage your Teamspeak instance if you "broke" something.
    Don't follow this thread if you don't know exactly what you do or want to do.


    Hi Guys!
    Been working on an admin program for TS3, running commands via ServerQuery. When a server is added i'd like the program to automatically add a ServerQuery login for the SA group of the virtual server that's been created.
    I know this is possible by logging on to the server via the TS3 client, but id like it to be automated. Can't find the ServerQuery command in the manual or on the net, anybody know it?
    Last edited by florian_fr40; December 20th, 2011 at 02:28 PM.

  2. #2
    Join Date
    June 2008
    Posts
    18,513
    I don't know exactly what you mean, but i tryto help.

    This command helps you to add an user into a server group.
    servergroupaddclient sgid={groupID} cldbid={clientDBID}

    This command creates a token for server group "Server Admin"
    tokenadd tokentype=0 tokenid1=6 tokenid2=0

  3. #3
    Join Date
    January 2010
    Location
    Secret Base in Arctic Region
    Posts
    1,671
    Speaking of ServerQuery...
    Is there a way to create a "real" SQ-User like the original superadmin is?
    Meaning, this user is for login in SQ only (and not client)?

    (Note: Its maybe possible by editing the database, but you have to get and enter the crypted password first).

    Thanks.

  4. #4
    Join Date
    April 2010
    Location
    Notts. UK
    Posts
    3
    @dante696 using servergroupaddclient will add a client that is already in the servers client database to a relevant server group.
    This still requires a user to have logged onto the server beforehand.
    I want to be able to do:
    a). add a user to the client database
    b). add that client to the right group

    a is the problem.

    Also, what Alcazar has said about a SQ-only user would be useful, does this exist?

  5. #5
    Join Date
    June 2008
    Posts
    18,513
    Quote Originally Posted by Alcazar View Post
    Speaking of ServerQuery...
    Is there a way to create a "real" SQ-User like the original superadmin is?
    Meaning, this user is for login in SQ only (and not client)?

    (Note: Its maybe possible by editing the database, but you have to get and enter the crypted password first).

    Thanks.
    You can add your user into the server query admin group (with an token as example). And then you can login with that user into the voice server and create your own login under Tools > ServerQuery Login. This login can be used like the serveradmin on server start.

    Quote Originally Posted by Medalgod View Post
    @dante696 using servergroupaddclient will add a client that is already in the servers client database to a relevant server group.
    This still requires a user to have logged onto the server beforehand.
    I want to be able to do:
    a). add a user to the client database
    b). add that client to the right group

    a is the problem.

    Also, what Alcazar has said about a SQ-only user would be useful, does this exist?
    You can use the token function to give him a special group on connect.
    He can use it after connect or during connect in Bookmarks > more.
    Last edited by dante696; November 24th, 2011 at 08:51 AM.

  6. #6
    Join Date
    May 2010
    Location
    Brest, France
    Posts
    7
    You can add your user into the server query admin group (with an token as example). And then you can login with that user into the voice server and create your own login under Tools > ServerQuery Login. This login can be used like the serveradmin on server start.
    I have the same wish as Alcazar.

    I would like to create a user that connects from localhost using telnet.
    I thought I could add the client manualy in the MySQL DB but I don't know how to generate the password.

    In fact I use PHP to connect to the server (Debian Linux, Term only, no standard TS voice client installed), like phpbot does. But I would like to connect using a user that is not serveradmin. Is that possible ?

  7. #7
    Join Date
    December 2009
    Location
    Germany
    Posts
    2,360
    Quote Originally Posted by JeanBzh View Post
    But I would like to connect using a user that is not serveradmin. Is that possible ?
    Yes, this is possible.

    I did it this way:
    Just use your Teamspeak 3 Client, create a new identity and connect with this to your server. Give this user the permission to create a server query login and click on menu Tools -> ServerQuery Login. Enter a new ServerQuery login details, which you can use later. Just add this user to a server group you like and/or add client permissions you need.

    Don't forget to switch back to your normal identity for the TS3 Client, after you did the above.

  8. #8
    Join Date
    October 2003
    Location
    Germany
    Posts
    2,527

    Thumbs up

    I think the ability to add a "pure" ServerQuery account like the default serveradmin would be a good addition to the TS3 feature-set. Of course there are a lot of other more important tasks on the devs todo list...


  9. #9
    Join Date
    May 2010
    Location
    Brest, France
    Posts
    7
    ok and then I can erase the newly created client unique ID directly in the MySQL database. Serveradmin unique id is 'serveradmin', I believe it's safe to replace the unique identifier of the new client with something like 'ServerQueryOnly' after it's login/pass are created. This way no connection but ServerQuery connection is possible ?

  10. #10
    Join Date
    June 2010
    Location
    Scotland
    Posts
    2
    Is there a possibility of adding a server query user that has access to just a single virtual server or does every server query admin have to be able to control all of virtual servers?

  11. #11
    Join Date
    June 2008
    Posts
    18,513
    It's a global group for all server. Please don't play with the querry admin :-(
    When sending me private messages: Please make sure to include reference link to your forum thread or post.

    TeamSpeak FAQ || What should i report, when i open a client thread?

  12. #12
    Join Date
    January 2010
    Location
    Secret Base in Arctic Region
    Posts
    1,671
    If you grant normal users the permission to create a serverquery login, it will be only valid for the server their on.
    Only ServerQuery Groups are global like Dante said.

  13. #13
    Join Date
    May 2007
    Location
    Canada
    Posts
    39
    Sry if im necroing this thread, but it is in relation to this. I use a program called TeamSync for BF3 which auto moves players to what team/squad their in in game. It uses serverquerylogin for this.
    I dont like the idea of it using main serverquery.
    1, it seems a little insecure and
    2, if you have text to speech on the user that moves you is a loooooooong name.

    My question is, if a create a new user, give it the permissions it needs to carry out the commands to move people around as needed, does that user have to be logged into teamspeak at all times, or just by logging into that users serverquerylogin enough?

  14. #14
    Join Date
    May 2007
    Location
    Canada
    Posts
    39
    Awesome. TY

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. ServerQuery-User Permissions?
    By Neokil in forum Permission System
    Replies: 3
    Last Post: September 14th, 2015, 11:17 AM
  2. [Resolved] See ServerQuery user.
    By Jordi in forum Bug Reports [EN/DE]
    Replies: 3
    Last Post: October 15th, 2012, 10:14 AM
  3. Add ServerQuery User
    By Medalgod in forum Tools / Web Based
    Replies: 9
    Last Post: July 8th, 2011, 12:26 AM
  4. Unknown User in Serverquery?
    By Radon in forum Linux / FreeBSD
    Replies: 1
    Last Post: December 22nd, 2009, 03:34 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •