RSS

タグ : identity

[ASP.NET] 別権限のユーザーで実行

Web.Configで
(<configuration><system.web>内)
<identity impersonate="true" userName="zzzzz" password="xxxxxx"/>
ただし、パスワードが設定してあるユーザーでのみ有効。

※ドメインユーザーの場合はドメイン属性とか domain/zzzzz とかいうユーザ名になるやも。
認証モードがwindowsである必要があると思う。(デフォルトはwindows)
→ <authentication mode="Windows" />

identityに関する一般的な説明
→ http://www.microsoft.com/japan/msdn/net/security/SecNetAP05.aspx

アプリケーションレベルで偽装
→ http://support.microsoft.com/default.aspx?scid=kb;ja;306158