You don't need frames to view this website. Flash communication server. Flash mx xml socket server.
Home
Main Menu
Home
- - - - - - -
What is Palabre ?
Features
News
FAQ
Forum
DEMO
- - - - - - -
Downloads !
Browse SVN
- - - - - - -
Search
Contact Us
- - - - - - -
Sourceforge Project Page
Python
Links
Palabre on Facebook






Actionscript for Multiplayer games
 
Download Palabre Flash Xml Socket Server DOWNLOAD Download Palabre Flash Xml Socket Server FORUM Download Palabre Flash Xml Socket Server FAQ Download Palabre Flash Xml Socket Server WHAT IS IT
 



Using Palabre ? Coming here for Support ? Please consider making an (even small) donation :)
Palabre Forum  


::post new topic::
root user? - 2006/09/12 02:44 Hello,

I should say this is some great piece of software!

Here's my question: it's unclear at the docs how to create a root user. Can you clarify that?

Fort example, let's say that the password for the root user will be "rootpass", so I guess the "[admin]" section of the palabre.conf file should look like:

[admin]
password = rootpass

But what next? if I want to use the database for the user autentification, should I add some user to the database with the same password? And if Yes, what name should I use? Should it be strictly "root" or it may be something like "admin" or "master"?

And how to check if the user was recognized as root? Can you post a couple of examples of the tags that only root can send to the server and what it should answer? A "getinfo" or "shutdown" examples would be great!

Thanks,
Chuck
  reply | quote
Re:root user? - 2006/09/12 02:46 Sorry for the dou,ble post. My browser (or the forum Web) glitched :-(
  reply | quote
Re:root user? - 2006/09/12 09:31 Hi

In fact for now, ther's only "one" root user, and he may choose it's username at eeach logon
Enabling or not DB Access won't change anything. DbAccess is using the "password" attribute, and root pasword is using the "rootpass" attribute (in the connect node)

so for example you will connect through :

<connect nickname="Anythingyouwant" rootpass="Yourrootpasswordinpalabre.conf" />

The "getinfo" node is not really finished yet and is not really helpfull for now ...

So the root user can shutdown the Palabre server "cleanly" by notifying all users.
And can broadcast messages to all connected users
<m broadcast="1">HELLO WORLD !</m>

The getinfo node will act as a small statistic viewer about number of rooms ... how long since the creation of the rooms , number of clients, ...
I'll try to build a Flash administration on top of that :)

Have fun
  reply | quote
Re:root user? - 2006/09/12 14:23 Thanks a lot, now I get it.
  reply | quote
Re:root user? - 2006/09/12 14:57 I have put this to the conf file:

[admin]
password = secret

[database]
checkpassword = true
dbType = mysql
dbHost = ip_of_my_database
dbUser = root
dbPassword = my_db_root_password
dbDatabase = my_database_name

Now I'm using a demo client to connect as root and getting this:

*161341* Incoming :
<error>Authentication Error</error>
*161322* Sending :
<connect nickname="chuck" rootpass="secret" />

So it seems that when checkpassword is turned ON, the root connectivity is broken, as the server still looks for the nickname in the database.

When I'm setting checkpassword=false, the root user can connect to the server.
  reply | quote
Re:root user? - 2006/09/12 15:36 Yep ! This looks llike a real bug ;)

Thx a lot i'll fix it for 0.5 :)
  reply | quote
Re:root user? - 2007/04/05 20:16 Ce bug a t-il été corrigé ? J'ai le meme problème
  reply | quote
::post new topic::
SORRY, website is currently mostly broken due to software changes on the server.
Hope to fix it soon ...

In the meantime you may still download palabre or use the forum