Skip to content

Enabling Auth To Make Accounts Require Passwords For Login

IrishDarkshadow edited this page Sep 6, 2019 · 2 revisions

Auth refers to a feature that forces all accounts logging into the SWG Server to have a valid password. By default the VM will allow anything typed into the username dialog box in the SWG Client to create an account and login successfully with passwords having no effect at all. The Auth feature solves that issue.

How To Enable Auth On The Server

With the SWG Server offline, go into the VM and use a text editor on this file:

/home/swg/swg-main/exe/linux/servercommon.cfg

You will see the following contents:

The two highlighted lines are what we will need to change. Replace them with these lines:

useExternalAuth=true

externalAuthURL=http://127.0.0.1/auth.php

You can now boot up the server and Auth will be enabled, requiring all logins to have registered accounts.

How To Register Accounts

Open up the root web site for the VM:

From within the VM you should use 127.0.0.1 and the static IP of the VM (192.168.1.100 in this example) from any other machine on your network. You should then see this page:

Click on the "Register An Account" link to proceed.

Input the desired credentials and click Submit to save them to the auth database.You can now use those credentials to login from the SWG Client.

If you have pre-existing accounts on the SWG Server before enabling auth then they will be unable to login after it has been enabled. You need to register them in the same way as you do for new accounts. After that is done you will have access to any characters on those accounts once more.

Login Failures

If you make an unsuccessful login attempt the next attempt will automatically fail. The third attempt will be successful if the correct credentials were provided. If you believe the login is not working at all from the SWG client then you should close the client down and open a fresh one to try again.

Clone this wiki locally