« Previous Next »

Thread: FTP7.5 - C# Auth w/ Dynamic IP

Last post 10-22-2009 12:24 PM by adrianmaule. 5 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (6 items)

Sort Posts:

  • 10-21-2009, 6:07 AM

    FTP7.5 - C# Auth w/ Dynamic IP

    I've been writing a custom authentication provider for my ftp 7.5 on Server 2008R2 and have found that IFtpLogProvider.Log() returns incorrect LocalIP and RemoteIP addresses. This was addressed with an .msi for 7.5 from August 3, 2009. However, when I download the .msi and run it, the install fails and reports that it only works on Server 2008. I need the RemoteIP to report properly for a custom restriction of a client to a single source ip address, which I have stored in a database. I there a way to correct the RemoteIP reporting for FTP7.5/2008R2 or another object that can be used in Managed Code to provide the RemoteIP of the FTP request? Please advise.
  • 10-21-2009, 6:12 AM In reply to

    • lextm
    • Top 10 Contributor
    • Joined on 10-22-2008, 12:18 AM
    • Shanghai, PRC
    • Posts 1,412

    Re: FTP7.5 - C# Auth w/ Dynamic IP

    Which version of Server 2008 R2 you are using now? Public RC 7100 build or else? This shouldn't be a problem for Server 2008 R2 RTM, as it contains the latest FTP 7.5 already.

    Lex Li
    Support Engineer at Microsoft
    ---------------------------
    This posting is provided "AS IS" with no warranties, and confers no rights.
  • 10-21-2009, 6:33 AM In reply to

    Re: FTP7.5 - C# Auth w/ Dynamic IP

     

    Thanks for the quick reply.  The OS Name reported in MSINFO is 6.1.7600 Build 7600.  What I am experiencing in my code is loggingParameters.RemoteIPAddress.ToString(); is reporting the server ip address.  I checked against loggingParameters.LocalIPAddress.ToString(); and that reports nothing.

     

     

  • 10-21-2009, 10:10 PM In reply to

    • lextm
    • Top 10 Contributor
    • Joined on 10-22-2008, 12:18 AM
    • Shanghai, PRC
    • Posts 1,412

    Re: FTP7.5 - C# Auth w/ Dynamic IP

    I will do some check and get back to you later.
    Lex Li
    Support Engineer at Microsoft
    ---------------------------
    This posting is provided "AS IS" with no warranties, and confers no rights.
  • 10-22-2009, 12:22 PM In reply to

    Re: FTP7.5 - C# Auth w/ Dynamic IP

     I have set up a fresh ftp server, with 2008R2 - I KNOW it's the RTM this time - and still I get the server's ip address from this function:

     

    void IFtpLogProvider.Log(FtpLogEntry loggingParameters)
            {
                string strRemoteIp = loggingParameters.RemoteIPAddress.ToString();
                WriteToFile(strRemoteIp);
            }

     

    A little more about my development setup, I'm building the object on my Windows 7 Desktop then copying the object to the server. Is there anything else you need to know?
  • 10-22-2009, 12:24 PM In reply to

    Re: FTP7.5 - C# Auth w/ Dynamic IP

     This is the iso that I used to install the server:

    SW_DVD5_Windows_Svr_DC_EE_SE_Web_2008R2_64-bit_English_X15-59754.ISO

     

Page 1 of 1 (6 items)
Microsoft Communities