Search found 25 matches

by p3dro.sola
26 Apr 2011, 09:36
Forum: SFS2X Questions
Topic: [SOLVED] Can't connect to admin tool
Replies: 8
Views: 17212

bax wrote:p3dro.sola,
what is the value of the <adminTcpPort> setting in your configuration?


I set it to the same as the regular TCP port, and it works now.
by p3dro.sola
24 Apr 2011, 12:14
Forum: SFS2X Questions
Topic: [SOLVED] Can't connect to admin tool
Replies: 8
Views: 17212

I'm having the same problem. I followed all the steps, but it's not working. I can telnet into both ports. the logs just says: 12:13:49,980 INFO [SocketReader] core.SocketAcceptor - Session created: { Id: 6, Type: DEFAULT, Logged: No, IP: [my.ip]:53742 } on Server port: 9933 <---> 53742 12...
by p3dro.sola
14 Mar 2011, 11:55
Forum: SFS2X Questions
Topic: Erratic connection issues
Replies: 1
Views: 20302

Erratic connection issues

Hi, i've been having some problems with the connection phase of smartfoxserver. We're running a custom extension that handles the login of the users. We have an issue where users are sporadically unable to connect and we had assumed it was something wrong with the extension. However, after monitorin...
by p3dro.sola
10 Feb 2011, 00:53
Forum: SFS2X C# API
Topic: SFSConstants.NEW_LOGIN_NAME Does'nt exists
Replies: 14
Views: 18575

Double check that the jar version you're referencing in the IDE is the same as the one you overwrote in the server folders when installing the patch. Yeah it was, but eclipse still wasn't picking it up. I restarted Eclipse and everything. What i did to get it working was do a search for the SFSCons...
by p3dro.sola
10 Feb 2011, 00:23
Forum: SFS2X C# API
Topic: SFSConstants.NEW_LOGIN_NAME Does'nt exists
Replies: 14
Views: 18575

@rapoeta : If SFSConstants.NEW_LOGIN_NAME doesn't show up in your IDE it means you are still working with an older version. Please upgrade to RC1b. The patch is available from the download page: http://smartfoxserver.com/2X/download.php I just installed RC1b, and I'm still getting the same error. S...
by p3dro.sola
14 Jan 2011, 10:48
Forum: SFS2X Questions
Topic: Login problem - Salted Password Hashes in Database
Replies: 10
Views: 14787

I found this old thread on the 1.x forums from BigFish which might be a good idea to try http://www.smartfoxserver.com/forums/viewtopic.php?t=3695&start=0&postdays=0&postorder=asc&highlight= Quick summary: hash the password on the client to duplicate your db hash, then send and comp...
by p3dro.sola
14 Jan 2011, 10:39
Forum: SFS2X Questions
Topic: Login problem - Salted Password Hashes in Database
Replies: 10
Views: 14787

The weakest link is the open network here, so sending clear-text passwords (or reversible ones for that matter) over the wire is worse than having to store it on the database. If you already have another authentication system running, there's always the possibility of piggybacking on it and issuing...
by p3dro.sola
14 Jan 2011, 10:29
Forum: SFS2X Questions
Topic: Login problem - Salted Password Hashes in Database
Replies: 10
Views: 14787

The while point is that it's ridiculous to store the passwords in plaintext in the DB. Nothing prevents encrypt (f.e. with AES) the password before you put it into a database. And decrypt it before using in getApi().checkSecurePassword The vast majority of web apps use hashes. IE: not reversible. T...
by p3dro.sola
14 Jan 2011, 07:42
Forum: SFS2X Questions
Topic: Login problem - Salted Password Hashes in Database
Replies: 10
Views: 14787

get crypted password from client login request cryptedPass = (String) event.getParameter(SFSEventParam.LOGIN_PASSWORD); get plain password from database plainPass = SomeDBManager.getPlainPassword(); after compare them via api: getApi().checkSecurePassword(session, plainPass, cryptedPass) Yeah, i kn...
by p3dro.sola
14 Jan 2011, 00:03
Forum: SFS2X Questions
Topic: Login problem - Salted Password Hashes in Database
Replies: 10
Views: 14787

Login problem - Salted Password Hashes in Database

Hi, I'm developing a custom login extension. But the catch is that the passwords stored in the database are encrypted with a salt. so i have a hash like md5(password + salt) In SFS 1.6 i could get the plaintext password from the client, and thus compare them, but in 2x the passwords are already encr...
by p3dro.sola
10 Sep 2010, 01:52
Forum: Server Side Extension Development
Topic: SQL Injection
Replies: 1
Views: 4397

SQL Injection

Hi, i was wondering what sort of protection (if any) smartfox server has against sql injection attacks on serverside extentions. For example, let's say i have a function in a serverside extentsion that logs moves from a game to a MySQL database. So everytime a player makes a move this code gets run ...
by p3dro.sola
08 Jun 2010, 00:03
Forum: Server Side Extension Development
Topic: LoadVars problem
Replies: 0
Views: 3231

LoadVars problem

I'm having a problem with the LoadVars function of an AS SSE. It makes the request, but doesn't contain the POST or GET data. var _send = new LoadVars() var _load = new LoadVars() _send.cid = '123' _send.name = 'albert' _send.format = 'raw' _send.task = 'nothing much' // Handle the r...
by p3dro.sola
03 Jun 2010, 08:29
Forum: Server Side Extension Development
Topic: HTTP request from actionscript extension
Replies: 2
Views: 4840

Thanks

LoadVars is supported in server side Actionscript. Check the docs: http://smartfoxserver.com/docs/docPages/serverSideApi/index.htm (Under "Other Classes" in the left menu) And there's also an example under {sfs-install-dir}/Server/sfsExtensions/loadVarTest.as Thanks Lapo. I had checked th...
by p3dro.sola
03 Jun 2010, 05:30
Forum: Server Side Extension Development
Topic: HTTP request from actionscript extension
Replies: 2
Views: 4840

HTTP request from actionscript extension

I'm trying to call a url from an actionscript SSE.

If i could use loadVars that would be great, or something like

Code: Select all

system_cmd( "wget http://theurl.com " )


any ideas?
by p3dro.sola
27 May 2010, 00:10
Forum: Server Side Extension Development
Topic: Connecting MySQL
Replies: 7
Views: 14085

theoverarchitect wrote:What config does this need to be placed in? I'm having the same issue!


It's in the mysql configuration file.
If you're on unix type (console) :

Code: Select all

locate my.cnf


if you're using a packed distribution (like xampp) then look it up.

Go to advanced search