Tuesday, May 17, 2005

FTP Service's DefaultLogonDomain Not Available in MMC

The FTP Service's DefaultLogonDomain is not available in the Microsoft Management Console (MMC), To work around this problem, we need manually add DefaultLogonDomain to the FTP Service in the MMC.

For NT4
you can use either of the following:
• The Metaedit.exe utility, included with the IIS 4.0 Resource Kit.
• The Adsutil.vbs utility that is included with IIS 4.0.

NOTE: By default, Adsutil.vbs is located in the \System32\Inetsrv\Adminsamples folder. Also, you must first install the Windows Script Host before using Adsutil.vbs.

Run Adsutil.vbs from a command prompt, using the appropriate syntax below (depending on whether you want to set DefaultLogonDomain for all FTP sites, just the default FTP site, or other sites):

•To set DefaultLogonDomain for all FTP sites, run the following command:
adsutil set msftpsvc/DefaultLogonDomain "DomainName"

•To set DefaultLogonDomain for only the default FTP site, run the following command:
adsutil set msftpsvc/1/DefaultLogonDomain "DomainName"

•if command listed above fails, you can use the following command instead, which uses the Mdutil utility from the Windows NT Option Pack compact disc:
mdutil.exe set /msftpsvc/1/DefaultLogonDomain "DomainName"

To set DefaultLogonDomain for any other site, use the same syntax as the default FTP site above, but change the "1" parameter to the appropriate service number.

for Windows Server 2000
You can use same method as for NT.

ADSUTIL.VBS runs under Windows 2000 and requires the installation of IIS. The file is usually located in the C:\Inetpub\AdminScripts directory.
MDUTIL.EXE file utility is included on the Windows 2000 CD-ROM as a zipped file. In order to install it on your computer, simply insert the Windows 2000 installation CD and execute a simple command:
expand -r d:\i386\mdutil.ex_ c:\winnt

For Windows Server 2003

In Windows Server 2003, stop IIS service, then add
DefaultLogonDomain="DomainName" in metabase.xml file at the section of
IIsFtpService.

the file is stored in directory: "C:\WINDOWS\system32\inetsrv".

Useful Link

http://www.windowsecurity.com/pages/article_p.asp?id=1297

http://support.microsoft.com/kb/184319

No comments: