Discussion:
利用IIS上傳檔案到另一台主機?
(时间太久无法回复)
smokehouse
2007-06-01 11:10:00 UTC
Permalink
Dear All

另外有個問題想請教大家

我有一台Windows 2003 R2的主機
負責執行ASP與我們公司自家寫的dll元件並安裝IIS
執行我們的元件是利用系統內建帳號
執行IIS是使用IUSR_HostName

另外有一台Windows2003 R2
負責擔任AD 並將目錄分享出來

我們的系統是設計
讓使用者連到IIS主機並利用功能上傳檔案
檔案會存放在AD主機上

所以程式會根據參數位置將上傳檔案經由UNC(例如 \\AD\share\)上傳上去
IIS也會建立一個虛擬目錄是連到 \\AD\share

但是上傳都會出現
錯誤 '8007052e'
我查過這似乎是登入失敗
因此我做了個實驗
將Share移到IIS主機及可

想請問\\AD\share這個目錄權限該如何調整
謝謝您
Cloud
Bernard Cheah [MVP]
2007-06-04 05:36:47 UTC
Permalink
The error indicating that the user failed to logon to the remote share.
what you create the UNC mapping in IIS, what user do you specify?
the user need to have read permission on the share and can be authenticate
by the remote server.

Remote storage connectivity in IIS.
http://www.microsoft.com/technet/prodtechnol/windowsserver2003/technologies/webapp/iis/remstorg.mspx
--
Regards,
Bernard Cheah
http://www.iis.net/
http://www.iis-resources.com/
http://msmvps.com/blogs/bernard/
Post by smokehouse
Dear All
¥t¥~Š³­Ó°ÝÃD·QœÐ±Ð€j®a
­t³d°õŠæASP»P§Ú­Ì€œ¥qŠÛ®aŒgªºdll€ž¥óšÃŠwžËIIS
°õŠæ§Ú­Ìªº€ž¥ó¬O§Q¥Îšt²Î€º«Ø±bž¹
°õŠæIIS¬OšÏ¥ÎIUSR_HostName
­t³dŸá¥ôAD šÃ±N¥Ø¿ý€ÀšÉ¥XšÓ
§Ú­Ìªºšt²Î¬O³]­p
ÅýšÏ¥ÎªÌ³sšìIIS¥DŸ÷šÃ§Q¥Î¥\¯à€W¶ÇÀÉ®×
ÀÉ®×·|Šs©ñŠbAD¥DŸ÷€W
©Ò¥Hµ{Š¡·|®ÚŸÚ°ÑŒÆŠìžm±N€W¶ÇÀɮמg¥ÑUNC(šÒŠp \\AD\share\)€W¶Ç€W¥h
Šý¬O€W¶Ç³£·|¥X²{
¿ù»~ '8007052e'
§Ú¬d¹L³oŠü¥G¬Oµn€J¥¢±Ñ
Š]Š¹§Ú°µ€F­Ó¹êÅç
±NShare²ŸšìIIS¥DŸ÷€Î¥i
·QœÐ°Ý\\AD\share³o­Ó¥Ø¿ýÅv­­žÓŠpŠóœÕŸã
ÁÂÁ±z
Cloud
smokehouse
2007-06-04 11:12:00 UTC
Permalink
Dear Bernard

其實除了IIS要可以讀寫外
我們的系統還會利用DLL去寫入資料

原本架構我在Windows2000是可行的
所以我才會認為應該是Windows 2003 R2版
在安全性上的不同?

您給我的手冊瞞實用
我會好好看

謝謝您





"Bernard Cheah [MVP]" 來函:
Post by Bernard Cheah [MVP]
The error indicating that the user failed to logon to the remote share.
what you create the UNC mapping in IIS, what user do you specify?
the user need to have read permission on the share and can be authenticate
by the remote server.
Remote storage connectivity in IIS.
http://www.microsoft.com/technet/prodtechnol/windowsserver2003/technologies/webapp/iis/remstorg.mspx
--
Regards,
Bernard Cheah
http://www.iis.net/
http://www.iis-resources.com/
http://msmvps.com/blogs/bernard/
Post by smokehouse
Dear All
另外有個問題想請教大家
我有一台Windows 2003 R2的主機
負責執行ASP與我們公司自家寫的dll元件並安裝IIS
執行我們的元件是利用系統內建帳號
執行IIS是使用IUSR_HostName
另外有一台Windows2003 R2
負責擔任AD 並將目錄分享出來
我們的系統是設計
讓使用者連到IIS主機並利用功能上傳檔案
檔案會存放在AD主機上
所以程式會根據參數位置將上傳檔案經由UNC(例如 \\AD\share\)上傳上去
IIS也會建立一個虛擬目錄是連到 \\AD\share
但是上傳都會出現
錯誤 '8007052e'
我查過這似乎是登入失敗
因此我做了個實驗
將Share移到IIS主機及可
想請問\\AD\share這個目錄權限該如何調整
謝謝您
Cloud
Bernard Cheah [MVP]
2007-06-05 05:03:10 UTC
Permalink
Yes, a lot of new security changes introduced in w2k3.
If IIS is a member server, just specify the connect as user using one of the
AD user account, grant read permissions.

From DLL perspective, it is the same, as long as the user running the
application has the permission, it will be able to write.
--
Regards,
Bernard Cheah
http://www.iis.net/
http://www.iis-resources.com/
http://msmvps.com/blogs/bernard/
Post by smokehouse
Dear Bernard
šä¹ê°£€FIIS­n¥i¥HŪŒg¥~
§Ú­Ìªºšt²ÎÁÙ·|§Q¥ÎDLL¥hŒg€Jžê®Æ
­ì¥»¬[ºc§ÚŠbWindows2000¬O¥iŠæªº
©Ò¥H§Ú€~·|»{¬°À³žÓ¬OWindows 2003 R2ª©
ŠbŠw¥þ©Ê€Wªº€£ŠP?
±zµ¹§Úªº€â¥U¿f¹ê¥Î
§Ú·|ŠnŠn¬Ý
ÁÂÁ±z
"Bernard Cheah [MVP]" šÓšç¡G
Post by Bernard Cheah [MVP]
The error indicating that the user failed to logon to the remote share.
what you create the UNC mapping in IIS, what user do you specify?
the user need to have read permission on the share and can be
authenticate
by the remote server.
Remote storage connectivity in IIS.
http://www.microsoft.com/technet/prodtechnol/windowsserver2003/technologies/webapp/iis/remstorg.mspx
--
Regards,
Bernard Cheah
http://www.iis.net/
http://www.iis-resources.com/
http://msmvps.com/blogs/bernard/
Post by smokehouse
Dear All
¥t¥~Š³­Ó°ÝÃD·QœÐ±Ð€j®a
­t³d°õŠæASP»P§Ú­Ì€œ¥qŠÛ®aŒgªºdll€ž¥óšÃŠwžËIIS
°õŠæ§Ú­Ìªº€ž¥ó¬O§Q¥Îšt²Î€º«Ø±bž¹
°õŠæIIS¬OšÏ¥ÎIUSR_HostName
­t³dŸá¥ôAD šÃ±N¥Ø¿ý€ÀšÉ¥XšÓ
§Ú­Ìªºšt²Î¬O³]­p
ÅýšÏ¥ÎªÌ³sšìIIS¥DŸ÷šÃ§Q¥Î¥\¯à€W¶ÇÀÉ®×
ÀÉ®×·|Šs©ñŠbAD¥DŸ÷€W
©Ò¥Hµ{Š¡·|®ÚŸÚ°ÑŒÆŠìžm±N€W¶ÇÀɮמg¥ÑUNC(šÒŠp \\AD\share\)€W¶Ç€W¥h
Šý¬O€W¶Ç³£·|¥X²{
¿ù»~ '8007052e'
§Ú¬d¹L³oŠü¥G¬Oµn€J¥¢±Ñ
Š]Š¹§Ú°µ€F­Ó¹êÅç
±NShare²ŸšìIIS¥DŸ÷€Î¥i
·QœÐ°Ý\\AD\share³o­Ó¥Ø¿ýÅv­­žÓŠpŠóœÕŸã
ÁÂÁ±z
Cloud
继续阅读narkive:
Loading...