试题详情
- 多项选择题You develop a Web application that writes data to a file on a server. You restrict access to the file to specific Windows users. The Web application runs as CONTOSO/ASPNET. You deny anonymous access to the application in IIS. You add the following XML segment in the Web.config file.You need to ensure that the application meets the following requirements:It must impersonate the user when it writes data to the file.It must run as CONTOSO/ASPNET when a user does not access the file. Which two actions should you perform? ()
A、Use the following XML segment in the Web.config file. <identity impersonate="false"/>
B、Use the following XML segment in the Web.config file. <identity impersonate="true"/>
C、Use the following code segment to access the file. Dim wp As WindowsPrincipal = _CType(HttpContext.Current.User, WindowsPrincipal) Dim wi As WindowsIdentity = WindowsIdentity.GetCurrent() Dim wic As WindowsImpersonationContext = wi.Impersonate()' Access the file herewic.Undo()
D、Use the following code segment to access the file. Dim wi As WindowsIdentity = WindowsIdentity.GetCurrent()Dim wic As WindowsImpersonationContext = _WindowsIdentity.Impersonate(wi.Token)' Access the file herewic.Undo()
- A,C
关注下方微信公众号,在线模考后查看
热门试题
- You are t
- You are
- A Windows Communica
- 您管理着一台运行Windows&ens
- 你正在实现DB1数据库从SQL1到SQL
- You have a server t
- Your network contai
- You need
- Network topolo
- You are the domain
- Your network consis
- You are a network a
- Youinstallawirelessr
- Your company uses M
- You are cr
- You are t
- You have
- You are the network
- YouhaveaservernamedS
- Your company