Recipe 12.25. Configuring FTP AuthenticationProblemYou want to authenticate users before they can access content on your FTP server. SolutionUsing a graphical user interface
Using VBScript' This enables anonymous-only access to a web site ' and configures the default user account and password. ' ------ SCRIPT CONFIGURATION ------ strComputer = "<ServerName>" strSiteID = "<SiteID>" ' ------ END CONFIGURATION --------- set objFtpSite = GetObject("IIS://" & strComputer & "/MSFTPSVC/" & strSiteID) objFtpSite.AllowAnonymous = True objFtpSite.AnonymousOnly = True objFtpSite.AnonymousUserName = "DOMAIN\iisuser" objFtpSite.AnonymousUserPass = "!!sUser" objFtpSite.SetInfo WScript.Echo "Successfully modified Anonymous settings for: " & _ objFtpSite.ServerComment DiscussionIf anonymous connections are disabled, users are authenticated to your site using Basic Authentication. In this situation, the user is prompted for the credentials of his Windows user account. When the user enters his credentials and clicks OK, the user's password will be appended to the URL and transmitted in clear text across the network, which is not secure. If you want to configure anonymous FTP, select both Allow anonymous connections and Allow only anonymous connections, which means that users are never prompted for their credentials when trying to access your site. In this case, if you are accessing the FTP site using Internet Explorer, no credentials are prompted for. If you are using a command-line FTP client, however, you have to type anonymous as your username and a password. See AlsoMS KB 314932 (HOW TO: Create an FTP Folder with Read Access but Not List Access) |