Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Netzwerke (https://www.delphipraxis.net/14-netzwerke/)
-   -   ICS TWSocketServer mit socksAuthenticate funkt nicht (https://www.delphipraxis.net/178675-ics-twsocketserver-mit-socksauthenticate-funkt-nicht.html)

Kostas 21. Jan 2014 09:56

ICS TWSocketServer mit socksAuthenticate funkt nicht
 
Hallo Zusammen,

leider habe ich kein Dokument gefunden indem beschrieben wird wie socksAuthenticate funktioniert.
Es reicht nicht aus einfach "socksAuthenticateUsercode" und "SocksUsercode" + "SocksPassword" zu setzen.

Ich möchte damit erreichen dass nur meine Clients sich auf dem Server anmelden dürfen. Jede nicht autorisierte
Socket Verbindung soll sofort die connection beenden.
Hat jemand eine Idee wie das geht mit der integrierten socksAuthenticate?

[Edit] meine Clients haben natürlich auch "socksAuthenticateUsercode", "SocksUsercode", "SocksPassword" gesetz gekommen.

Delphi-Quellcode:
  WSocketServer1.Close;
  WSocketServer1.Proto := 'tcp';
  WSocketServer1.Addr := '0.0.0.0';
  WSocketServer1.Port := edPort.Text;
  WSocketServer1.ClientClass := TClientConnection;
  WSocketServer1.Banner := 'Willkommen auf dem Server';
  {das reicht nicht aus}
  WSocketServer1.socksAuthenticate := socksAuthenticateUsercode;
  WSocketServer1.SocksUsercode := edUsercode.Text;
  WSocketServer1.SocksPassword := edPassword.Text;

  WSocketServer1.Listen;
Gruß Kostas


Alle Zeitangaben in WEZ +1. Es ist jetzt 11:01 Uhr.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz