authentication and access control (.NET socket connection)

From: Dan (mayerdan_at_hotmail.com)
Date: 03/18/05

  • Next message: Steve B.: "Security - newbie Q"
    Date: Fri, 18 Mar 2005 10:14:00 -0700
    
    

    Hi,

    Can someone point me in the right direction on a really simple access
    control issue? Here is the situation:

    1. an app on a client computer connected to internet and executes this kind
    of code:
     acceptor = new Socket(AddressFamily.InterNetwork, SocketType.Stream,
    ProtocolType.Tcp);
     acceptor.Bind(new IPEndPoint(IPAddress.Any, port));
     acceptor.Listen(ListenQueueSize);
     socket = acceptor.Accept();

    2. on a web server executes this kind of code:
    socket.Connect(new IPEndPoint(ip, port));
                            sockets[i] = socket;
                            nHosts += 1;
    socket.SetSocketOption(SocketOptionLevel.Tcp, SocketOptionName.NoDelay, 1);
    socket.SetSocketOption(SocketOptionLevel.Socket,SocketOptionName.Linger,new
    System.Net.Sockets.LingerOption(true, LingerTime));

    This code executes fine, my problem is that the client asks for a user name
    and password to access the server and I don't want that to happen, I want
    the client (code) to know the server login so this dialog does not appear.

    So my question is, how might this be done?

    Thanks very much for helping!

    Dan


  • Next message: Steve B.: "Security - newbie Q"

    Relevant Pages

    • Re: Unable to print to networked printer - get access denied messa
      ... Check the permissions on the server assuming the client has a true RPC ... How is the Standard TCP/IP port configured for the device? ...
      (microsoft.public.windowsxp.print_fax)
    • Re: interfaces lo:1 lo:2 lo:3? (for remote ssh tunnels)
      ... That's the problem tunneling (port forwarding) solves. ... >>can't get past the client firewall. ... > I don't understand why the server would be making the ... server initiates another connection to the client -- in this ...
      (Debian-User)
    • Re: Remote Connection Issue
      ... through port number 3389 and a workstation on the LAN through port number ... I understand that you want to allow a LAN client ... and you have configured server publishing rule ... > By default Terminal Server and Windows 2000 Terminal Services uses TCP ...
      (microsoft.public.windows.server.sbs)
    • Re: RealVNC
      ... Default listening port for RealVNC server that runs on the machine on which ... Then there is default Java listening port on port 5800 on the client machine ...
      (microsoft.public.windows.server.sbs)
    • Re: Redirecting data sent to a local printer to another host and port on the network
      ... All client workstations have access to the ... simply redirecting netcat traffic on port 9100 to port 515 on ... Only LPR clients talk to LPD print server daemons. ... >workstation at the branch site where the print job originated. ...
      (comp.unix.sco.misc)