M
Mick Walker
I am using a combination of IIS 7.0 and Microsoft FTP Publishing Service
7.0 RC0 on my system.
I am looking for a way to automate the deployment of ftp servers the way
I also automate the deployment of new websites within IIS.
I have looked at my applicationHost.config file, and noticed that the
FTP server makes the following changes to the file:
<binding protocol="ftp" bindingInformation="*:21:" />
</bindings>
<ftpServer>
<security>
<ssl
serverCertHash="AEAFAC5AAE6A0D057B552BF2065957718BCB50BB" ssl128="false"
controlChannelPolicy="SslAllow" dataChannelPolicy="SslAllow" />
<authentication>
<basicAuthentication enabled="true" />
</authentication>
</security>
<messages exitMessage="Goodbye"
greetingMessage="Welcome" bannerMessage="Hello" maxClientsMessage="Max
Connections" suppressDefaultBanner="true" />
<userIsolation mode="None">
<activeDirectory />
</userIsolation>
</ftpServer>
Under the current <site> node.
It also adds the following upon adding ftp support to the first site:
FOr each website that ftp support is added to, it writes the following
information in the same file:
<location path="ControlPanel">
<system.ftpServer>
<security>
<authorization>
<add accessType="Allow" users="mick.walker"
permissions="Read, Write" />
</authorization>
</security>
</system.ftpServer>
</location>
<location path="Default Web Site">
<system.ftpServer>
<security>
<authorization>
<add accessType="Allow" users="mick.walker"
permissions="Read, Write" />
</authorization>
</security>
</system.ftpServer>
</location>
I am looking for a way to do this manually. I would love to find an API
to do it for me, but if not I would have to write the raw XML to the
file myself. I have never used XML before, so does anyone have a few
buzz words I should read into to figure out what it is I need to do?
Or if anyone knows a better way, please suggest it.
Regards
Mick
P.S:
(ASP.NET is running with appropriate permissions to modify the file)
7.0 RC0 on my system.
I am looking for a way to automate the deployment of ftp servers the way
I also automate the deployment of new websites within IIS.
I have looked at my applicationHost.config file, and noticed that the
FTP server makes the following changes to the file:
<binding protocol="ftp" bindingInformation="*:21:" />
</bindings>
<ftpServer>
<security>
<ssl
serverCertHash="AEAFAC5AAE6A0D057B552BF2065957718BCB50BB" ssl128="false"
controlChannelPolicy="SslAllow" dataChannelPolicy="SslAllow" />
<authentication>
<basicAuthentication enabled="true" />
</authentication>
</security>
<messages exitMessage="Goodbye"
greetingMessage="Welcome" bannerMessage="Hello" maxClientsMessage="Max
Connections" suppressDefaultBanner="true" />
<userIsolation mode="None">
<activeDirectory />
</userIsolation>
</ftpServer>
Under the current <site> node.
It also adds the following upon adding ftp support to the first site:
FOr each website that ftp support is added to, it writes the following
information in the same file:
<location path="ControlPanel">
<system.ftpServer>
<security>
<authorization>
<add accessType="Allow" users="mick.walker"
permissions="Read, Write" />
</authorization>
</security>
</system.ftpServer>
</location>
<location path="Default Web Site">
<system.ftpServer>
<security>
<authorization>
<add accessType="Allow" users="mick.walker"
permissions="Read, Write" />
</authorization>
</security>
</system.ftpServer>
</location>
I am looking for a way to do this manually. I would love to find an API
to do it for me, but if not I would have to write the raw XML to the
file myself. I have never used XML before, so does anyone have a few
buzz words I should read into to figure out what it is I need to do?
Or if anyone knows a better way, please suggest it.
Regards
Mick
P.S:
(ASP.NET is running with appropriate permissions to modify the file)