Outils pour utilisateurs

Outils du site


en:suckerserv:auth

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentesRévision précédente
Prochaine révision
Révision précédente
en:suckerserv:auth [2011/09/11 13:54] piernoven:suckerserv:auth [2014/10/26 22:28] (Version actuelle) – [SuckerServ] piernov
Ligne 1: Ligne 1:
-====== Auth with HopMod-v4 ====== +====== Auth with SuckerServ-v5 ====== 
-Because Authserver isn't included anymore in HopMod-v4, you'll need to clone the trunk repository:+Because Authserver isn't included anymore in SuckerServ-v5, you'll need to checkout the suckerserv-v3 repository, or use MasterLua (new Master/Auth server, not described here):
 <code bash> <code bash>
-svn checkout http://hopmod.googlecode.com/svn/trunkhopmod-trunk +svn co http://suckerserv.googlecode.com/svn/branches/suckerserv-v3 
-cd hopmod-trunk+cd suckerserv-v3
 </code> </code>
 ===== Dependencies ===== ===== Dependencies =====
Ligne 9: Ligne 9:
 If you want to use a MySQL Database, you'll need : If you want to use a MySQL Database, you'll need :
   * a working MySQL server, with a dedicated database and user for the authserver.   * a working MySQL server, with a dedicated database and user for the authserver.
-  * the MySQL-Client headers (mysql.h), commonly //''libmysqlclient-dev''// package.+  * the MySQL-Client header (mysql.h), commonly //''libmysqlclient-dev''// package.
 ==== With SQLite3 ==== ==== With SQLite3 ====
-All requiered dependencies are shipped with HopMod+All requiered dependencies are shipped with SuckerServ
 ==== With a text database ==== ==== With a text database ====
 No dependencies requiered No dependencies requiered
Ligne 19: Ligne 19:
 chmod +x compile.sh chmod +x compile.sh
 ./compile.sh ./compile.sh
-</code> 
-=== With MySQL === 
-<code bash> 
-cd release_build 
-make luasql_mysql 
-cp src/luasql/libluasql_mysql.so ../lib 
 </code> </code>
 ===== Configuration ===== ===== Configuration =====
Ligne 36: Ligne 30:
 Edit the conf/authserver.conf file, and remove the # at the beginning of this line:  Edit the conf/authserver.conf file, and remove the # at the beginning of this line: 
 <code bash>#use_mysql_database "hostname" "port" "database" "username" "password" "install_db"</code> <code bash>#use_mysql_database "hostname" "port" "database" "username" "password" "install_db"</code>
 +Set correctly the hostname (localhost by default), the port (3306 by default), the database, the username, the password and remove "install_db" if the database schemas and triggers are already installed into the database. \\
 Add a # at the beginning of this one: Add a # at the beginning of this one:
 <code bash>use_text_database "./log/auths.txt"</code> <code bash>use_text_database "./log/auths.txt"</code>
-==== HopMod ==== +==== SuckerServ ====
-All ''localhost:login'' and ''localhost:admin'' should be replaced by your own domain+
 === Auth.lua === === Auth.lua ===
-Add an ''auth.lua'' file in the conf/ directory of your HopMod installation, with the following :+Add an ''auth.lua'' file in the conf/ directory of your SuckerServ installation if there's not one already, with the following :\\ 
 +**WARNING:** Don't use `localhost` as hostname since it's broken. Use `127.0.0.1` instead.
 <code lua auth.lua> <code lua auth.lua>
 auth.directory.server{ auth.directory.server{
     id = "suckerserv",     id = "suckerserv",
-    hostname = "localhost",+    hostname = "127.0.0.1",
     port = 28787     port = 28787
 } }
Ligne 93: Ligne 88:
 To launch the authserver, just do: To launch the authserver, just do:
 <code bash>./bin/authserver start</code> <code bash>./bin/authserver start</code>
-In the hopmod-trunk directory+In the suckerserv-v3 directory
 ==== Adding domains ==== ==== Adding domains ====
 <code bash>./bin/authserver manage domain add "suckerserv" case_insensitive</code> <code bash>./bin/authserver manage domain add "suckerserv" case_insensitive</code>
Ligne 117: Ligne 112:
 <code bash>authkey "the_admin" "private_key" "suckerserv:admin"</code> <code bash>authkey "the_admin" "private_key" "suckerserv:admin"</code>
 And in the server: And in the server:
-<code bash>./bin/authserver manage user add "the_user" "localhost:admin" "public_key"</code>+<code bash>./bin/authserver manage user add "the_user" "suckerserv:admin" "public_key"</code>
 Remember, an authkey is unique, so don't loose it, and create one for each user. Remember, an authkey is unique, so don't loose it, and create one for each user.
 ==== Restart the authserver ==== ==== Restart the authserver ====
en/suckerserv/auth.1315742076.txt.bz2 · Dernière modification : 2014/05/31 00:26 (modification externe)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki