en:suckerserv:auth
Différences
Ci-dessous, les différences entre deux révisions de la page.
| Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
| en:suckerserv:auth [2011/09/11 13:54] – piernov | en: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 |
| <code bash> | <code bash> | ||
| - | svn checkout | + | svn co http://suckerserv.googlecode.com/ |
| - | cd hopmod-trunk | + | cd suckerserv-v3 |
| </ | </ | ||
| ===== 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 | + | * the MySQL-Client |
| ==== 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 | ||
| ./ | ./ | ||
| - | </ | ||
| - | === With MySQL === | ||
| - | <code bash> | ||
| - | cd release_build | ||
| - | make luasql_mysql | ||
| - | cp src/ | ||
| </ | </ | ||
| ===== Configuration ===== | ===== Configuration ===== | ||
| Ligne 36: | Ligne 30: | ||
| Edit the conf/ | Edit the conf/ | ||
| <code bash># | <code bash># | ||
| + | Set correctly the hostname (localhost by default), the port (3306 by default), the database, the username, the password and remove " | ||
| Add a # at the beginning of this one: | Add a # at the beginning of this one: | ||
| <code bash> | <code bash> | ||
| - | ==== HopMod | + | ==== SuckerServ |
| - | All '' | + | |
| === Auth.lua === | === Auth.lua === | ||
| - | Add an '' | + | Add an '' |
| + | **WARNING: | ||
| <code lua auth.lua> | <code lua auth.lua> | ||
| auth.directory.server{ | auth.directory.server{ | ||
| id = " | id = " | ||
| - | 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> | <code bash> | ||
| - | In the hopmod-trunk directory | + | In the suckerserv-v3 directory |
| ==== Adding domains ==== | ==== Adding domains ==== | ||
| <code bash> | <code bash> | ||
| Ligne 117: | Ligne 112: | ||
| <code bash> | <code bash> | ||
| And in the server: | And in the server: | ||
| - | <code bash> | + | <code bash> |
| 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 : (modification externe)
