summaryrefslogtreecommitdiff
path: root/login
diff options
context:
space:
mode:
authorBen Longbons <b.r.longbons@gmail.com>2011-06-18 21:58:47 -0700
committerBen Longbons <b.r.longbons@gmail.com>2011-06-19 14:19:55 -0700
commitbae4b92e560c2694eaaf0e8b4d9e95e56204471b (patch)
tree4acc120f6a94cfbf9694bf344658493de5aaa67b /login
parent319f80526f8585ecadaec986e37c9bd326f4d363 (diff)
downloadclassic-serverdata-bae4b92e560c2694eaaf0e8b4d9e95e56204471b.tar.gz
classic-serverdata-bae4b92e560c2694eaaf0e8b4d9e95e56204471b.tar.bz2
classic-serverdata-bae4b92e560c2694eaaf0e8b4d9e95e56204471b.tar.xz
classic-serverdata-bae4b92e560c2694eaaf0e8b4d9e95e56204471b.zip
Move to a subdirectory
Diffstat (limited to 'login')
-rw-r--r--login/conf/.gitignore2
-rw-r--r--login/conf/gm_account.txt.example1
-rw-r--r--login/conf/ladmin_athena.conf28
-rw-r--r--login/conf/ladmin_local.conf.example10
-rw-r--r--login/conf/lan_support.conf58
-rw-r--r--login/conf/login_athena.conf117
-rw-r--r--login/conf/login_local.conf.example27
-rw-r--r--login/save/.gitignore1
-rw-r--r--login/save/account.txt.example17
9 files changed, 261 insertions, 0 deletions
diff --git a/login/conf/.gitignore b/login/conf/.gitignore
new file mode 100644
index 00000000..dcabf83f
--- /dev/null
+++ b/login/conf/.gitignore
@@ -0,0 +1,2 @@
+/*_local.conf
+/gm_account.txt
diff --git a/login/conf/gm_account.txt.example b/login/conf/gm_account.txt.example
new file mode 100644
index 00000000..912e1a09
--- /dev/null
+++ b/login/conf/gm_account.txt.example
@@ -0,0 +1 @@
+// <account ID> <level>
diff --git a/login/conf/ladmin_athena.conf b/login/conf/ladmin_athena.conf
new file mode 100644
index 00000000..2a91a35b
--- /dev/null
+++ b/login/conf/ladmin_athena.conf
@@ -0,0 +1,28 @@
+// Athena Ladmin configuration file.
+
+// Encoding type of the password
+// 0: not encoded
+// 1: key+password
+// 2: password+key
+passenc: 2
+
+// Language of ladmin
+// F: Français
+// E: English (default)
+defaultlanguage: E
+
+// Log Filename. All operations done by the software are logged in this file.
+ladmin_log_filename: log/ladmin.log
+
+// Indicate how to display date in logs, to players, etc.
+// 0: 31-12-2004 23:59:59
+// 1: 12-31-2004 23:59:59
+// 2: 2004-31-12 23:59:59
+// 3: 2004-12-31 23:59:59 (default)
+date_format: 3
+
+// If you want use an additional configuration file, uncomment and use this parameter
+//import: path/additional_configuration_file
+
+// local settings for this server in this file
+import: conf/ladmin_local.conf
diff --git a/login/conf/ladmin_local.conf.example b/login/conf/ladmin_local.conf.example
new file mode 100644
index 00000000..b3f88e8d
--- /dev/null
+++ b/login/conf/ladmin_local.conf.example
@@ -0,0 +1,10 @@
+// Athena Ladmin local configuration file.
+
+// Login Server IP
+login_ip:217.172.177.27
+// Login Server Port
+login_port: 6900
+
+// Administrative password, used to connect remotely to server.
+// NOTICE: If you enable remote administration, you should change its value for security
+admin_pass: admin
diff --git a/login/conf/lan_support.conf b/login/conf/lan_support.conf
new file mode 100644
index 00000000..2f49419c
--- /dev/null
+++ b/login/conf/lan_support.conf
@@ -0,0 +1,58 @@
+// Note: this file is used by both the char-server and the login-server
+
+// This file is necessary to connect to your server locally:
+// by using it's internal (LAN) IP address, or localhost (127.0.0.1)
+
+// The default version treats you LAN as localhost only,
+// which is fine if you have only one computer
+// You only need to change this file if you have a public server
+// AND want to connect from other machines in the LAN
+// (for an nonpublic server it would be best to leave localhost as LAN
+// and treat the rest of your LAN as the WAN)
+
+// Note: if you set up this file to point to your real LAN, you will not
+// be able to do:
+// mana --server localhost --port 6901
+// or mana --server 127.0.0.1 --port 6901
+// because of the check_ip_flag: yes option
+// (which will become mandatory in the next release of the server)
+// instead do:
+// mana --server 192.168.1.100 --port 6901
+// or maybe, depending on how your /etc/hosts and /etc/host.conf are setup,
+// mana --server ben-desktop --port 6901
+// or mana --server ben-desktop.local --port 6901
+
+// Note that only one IP is used, so you can't put different char servers
+// on different machines (unless you do some internal port-forwarding)
+
+
+// the IP LAN players should use to connect to the char-server
+lan_char_ip: 127.0.0.1
+// lan_char_ip: 192.168.1.100
+
+// the IP that LAN players should use to connect to the map-server
+lan_map_ip: 127.0.0.1
+// lan_map_ip: 192.168.1.100
+
+// put here the Subnet mask of your LAN
+// see output of ifconfig (Linux) or ipconfig (Windows)
+subnet: 127.0.0.1
+subnetmask: 255.255.255.255
+// subnetmask: 255.0.0.0
+
+
+// Common subnets (if you have a subnet that is not one of these,
+// you probably don't need to be reading this)
+
+// subnet: 10.0.0.0
+// subnetmask: 255.0.0.0
+
+// subnet: 172.16.0.0
+// subnetmask: 255.240.0.0
+
+// subnet: 192.168.0.0
+// subnetmask: 255.255.0.0
+
+// Many home routers only use a portion:
+// subnet: 192.168.1.0
+// subnetmask: 255.255.255.0
diff --git a/login/conf/login_athena.conf b/login/conf/login_athena.conf
new file mode 100644
index 00000000..7d0026d8
--- /dev/null
+++ b/login/conf/login_athena.conf
@@ -0,0 +1,117 @@
+// Athena Login Server configuration file.
+// Translated by Peter Kieser <pfak@telus.net>
+
+// Level of new GM created with @gm command. (default: 60)
+// If you set to 0, you disable creation of new GM with @gm.
+// To be able to create a gm with @gm, you must:
+// - give a level to this value (not 0)
+// - enable to level 0 the @gm command (atcommand_athena.conf) (default 100)
+// - enable gm commands to normal player (battle_athena.conf, atcommand_gm_only parameter)
+// - and normal player must give correct password when he use the @gm command
+level_new_gm: 60
+
+// Can you make new accounts on the server? (1 for Yes, 0 for no)
+new_account: 1
+
+// Account flatfile database, stores account information.
+account_filename: save/account.txt
+
+// What account AIDs have GM privs, and what level?
+gm_account_filename: conf/gm_account.txt
+
+// Timer to check if GM_account file has been changed and reload GM account automaticaly
+// (in seconds; default: 15; value: 0 (disabled), or 2 or more)
+gm_account_filename_check_timer: 15
+
+// Log Filename. All operations received by the server are logged in this file.
+login_log_filename: log/login.log
+
+// Name of the file of that logs the unknown packets (for debug or hack check)
+login_log_unknown_packets_filename: log/login_unknown_packets.log
+
+// Indicate if the unknown packets are saved or not
+//(the unknown packets coming from the char-server or ladministration does not relate to, which is always saved)
+// Be careful: if you receive an attack, your hard disk can cause lag...
+// So, active this option with a speed hard disk or for debug only.
+save_unknown_packets: 0
+
+// Indicate if you want display the parse of the packets received in a normal connection
+// It's useful for debug. Possible values: 0: no (default), 1: yes
+display_parse_login: 0
+
+// Indicate if you want display the parse of the packets received in administration connection
+// It's useful for debug. Possible values: 0: no (default), 1: yes
+display_parse_admin: 0
+
+// Indicate if you want display the parse of the packets received from a char-server
+// It's useful for debug. Possible values: 0: no (default), 1: yes (without packet 0x2714), 2: all packets
+display_parse_fromchar: 0
+
+// Indicate how to display date in logs, to players, etc.
+// 0: 31-12-2004 23:59:59
+// 1: 12-31-2004 23:59:59
+// 2: 2004-31-12 23:59:59
+// 3: 2004-12-31 23:59:59 (default)
+date_format: 3
+
+// Indicate the minimum GM level of player that the server accepts to connection.
+// 0: all players (normal player are 0. it's default), 1-99: GM level at least with level x
+min_level_to_connect: 0
+
+// Give possibility to adjust (ladmin command: timeadd) the time of an unlimited account.
+// If set to on/1/yes..., the adjustment is be done from actual time to set the final time of the account.
+// If set to no/0/no..., the adjustment can not be done on an unlimited account. You must set (ladmin command: timeset) a final time before to adjust (ladmin command: timeadd)
+add_to_unlimited_account: off
+
+// Starting additional sec from now for the limited time at creation of account
+// -1: new account are created with UNlimited time (default value)
+// 0 or more: new accounts was created by addition of the value (in sec) to the actual time (to set first limited time)
+start_limited_time: -1
+
+// It's to check IP of a player between login-server and char-server (part of anti-hacking system)
+// If player doesn't have same IP, connection is refused.
+// Set to 0/off/no to not check IP of player.
+// Set to 1/on/yes if you want to check (default)
+// Note: if you enable this option, be sure that your (local/lan/wan) players use correct ip (in xml file) to contact servers,
+// and that your LAN is correctly configured (!), and that LAN configuration of eathena is right.
+// if not correct, you can read list of char-servers, but not look slots of characters (rejected by server).
+check_ip_flag: yes
+
+// Specify order of IP control if necessary (option: 'deny,allow', 'allow,deny', or 'mutual-failture')
+// (how to use 'allow' and 'deny' information)
+//order: allow,deny
+
+// Indicate the IP that the server accept.
+// put: 'all', or 'xxx.xxx.' (begin of an ip finished by '.' or a complete ip),
+// or a network and its mask (example: '123.456.789.012/24' or '123.456.789.012/255.255.255.0')
+// or 'clear' to suppress previous parameter (use it in import file mainly)
+// Add as many IP's as you wish.
+//allow: all
+
+// Indicate the IP that the server refuse.
+// Add as many IP's as you wish, as long as you put deny: before it.
+//deny: 123.123.123.123
+//deny: 234.234.234.234
+
+// If you want use an additional configuration file, uncomment and use this parameter
+//import: path/additional_configuration_file
+
+//Passwords in Login DB are MD5 - <passwordencrypt> cannot b used on client with this on
+use_MD5_passwords: no
+
+//Ban features: read readme for more info if you dont know this.
+ipban: 1
+dynamic_pass_failure_ban: 1
+dynamic_pass_failure_ban_time: 5
+dynamic_pass_failure_ban_how_many: 3
+dynamic_pass_failure_ban_how_long: 60
+dynamic_account_ban: 1
+dynamic_account_ban_class: 0
+
+// Anti-freeze system enable
+anti_freeze_enable: 0
+// Anti-freeze system interval (in seconds)
+anti_freeze_interval: 15
+
+// local settings for this server in this file
+import: conf/login_local.conf
diff --git a/login/conf/login_local.conf.example b/login/conf/login_local.conf.example
new file mode 100644
index 00000000..3c9a6cce
--- /dev/null
+++ b/login/conf/login_local.conf.example
@@ -0,0 +1,27 @@
+// Athena Login Server local configuration file.
+
+// Port to bind Login Server to (always binds to all IP addresses)
+login_port: 6901
+
+// Whether remote administration is enabled or disabled (1 for enabled, 0 for disabled)
+admin_state: 1
+
+// Administrative password, used by ladmin (perl software) to connect remotely to server.
+// NOTICE: If you enable remote administration, you should change its value for security
+admin_pass: p1
+
+// Indicate the IP that the server accepts for remote administration.
+// put: 'all', or 'xxx.xxx.' (begin of an ip finished by '.' or a complete ip),
+// or a network and its mask (example: '123.456.789.012/24' or '123.456.789.012/255.255.255.0')
+// or 'clear' to suppress previous parameter (use it in import file mainly)
+// Add as many IP's as you wish.
+ladminallowip: all
+
+// Gamemaster password, used with the @gm command to obtain GM commands (level of gm set with level_new_gm parameter).
+// NOTICE: You should also change this one.
+gm_pass: gm
+
+// Update host
+// Tells the client that an alternative updatehost is available if the client
+// supports this. If left out nothing will be sent. max length 127.
+update_host: http://updates.themanaworld.org/
diff --git a/login/save/.gitignore b/login/save/.gitignore
new file mode 100644
index 00000000..7e1b0055
--- /dev/null
+++ b/login/save/.gitignore
@@ -0,0 +1 @@
+/account.txt
diff --git a/login/save/account.txt.example b/login/save/account.txt.example
new file mode 100644
index 00000000..a842f60c
--- /dev/null
+++ b/login/save/account.txt.example
@@ -0,0 +1,17 @@
+// Accounts file: here are saved all information about the accounts.
+// Structure: ID, account name, password, last login time, sex, # of logins, state, email, error message for state 7, validity time, last (accepted) login ip, memo field, ban timestamp, repeated(register text, register value)
+// Some explanations:
+// account name : between 4 to 23 char for a normal account (standard client can't send less than 4 char).
+// account password: between 4 to 23 char
+// sex : M or F for normal accounts, S for server accounts
+// state : 0: account is ok, 1 to 256: error code of packet 0x006a + 1
+// email : between 3 to 39 char (a@a.com is like no email)
+// error message : text for the state 7: 'Your are Prohibited to login until <text>'. Max 19 char
+// valitidy time : 0: unlimited account, <other value>: date calculated by addition of 1/1/1970 + value (number of seconds since the 1/1/1970)
+// memo field : max 254 char
+// ban time : 0: no ban, <other value>: banned until the date: date calculated by addition of 1/1/1970 + value (number of seconds since the 1/1/1970)
+0 s1 p1 - S 694 0 a@a.com - 0 - - 0
+1 s2 p2 - S 1 0 a@a.com - 0 - - 0
+2 s3 p3 - S 1 0 a@a.com - 0 - - 0
+3 s4 p4 - S 0 0 a@a.com - 0 - - 0
+4 s5 p5 - S 0 0 a@a.com - 0 - - 0