Tuesday, August 27, 2013

FTP default domain setting

When using FTP in IIS on a Domain you must have to pain stakingly put the domain name in the username every time. Yes, this insures that the remote user must not guess just username, but domain name also. If this is of no concern to you there is a way to set the FTP default domain.
That is, if your domain is SeattleDom then, prior to editing, user John Doe must login with a user name of SeattleDom\JDoe.
Following the steps below will drop the domain requirement and allow a username of simply JDoe.
To set the default domain used for things like ftp go to the IIS server and:
Modify the DefaultLogonDomain in the IIS Metabase
When you specify the DefaultLogonDomain domain in your IIS settings, users are not required to enter their domain name with their user name (for example, MYDOMAIN\MyUserName) when logging in to your FTP site. If your FTP server is a member server, and the user accounts are in the local security database, this task is not necessary.
Click Start, and then click Run.
In the Open: text box, type cmd .
At the command prompt, type the following for your version of IIS:

For IIS 4.0, type:
cd /d %windir%\system32\inetsrv\adminsamples
cscript adsutil.vbs set msftpsvc/DefaultLogonDomain domain_name
For IIS 5.0, type:
cd /d %systemdrive%\inetpub\adminscripts
cscript adsutil.vbs set msftpsvc/DefaultLogonDomain domain_name
For domain_name, type the name of your domain.
Type exit to close the command prompt dialog box.