php - 在 IIS 上使用 Windows 身份验证的 PHP opendir() 授权问题
问题描述
我在 IIS 上有一个启用了 Windows 身份验证的站点,我正在尝试使用 opendir() 函数访问目录。
一旦通过具有目录 opendir() 权限的域用户进行身份验证,我就会返回Warning: opendir(\\myserver\myshare\mydirectory): Access is denied. (code: 5).
我无法理解的是,如果在该站点上的 IIS 上我设置了物理路径: > Connect as...设置为特定用户而不是应用程序用户它可以工作
我注意到 get_current_user() 返回Myuser使用application user和myuser使用application user。
为什么我不能访问目录?
解决方案
推荐阅读
- php - CakePHP - 在 beforeFilter() AppController 方法中访问 $this->request->getData() 数组
- extjs - 如何使用 EXTJ 从元素的 lastChild 中删除类名
- javascript - 解析查询包含方法不包括预期的所有数据
- c++ - 二叉树基准测试结果
- java - 扩展类没有正确构造;双重错误,但我不明白为什么
- ionic-framework - 无法从 Ionic Cli 4.1.2 构建离子版本 1
- neo4j - Neo4j:不知道如何将图形映射到 Spring Data bean
- java - 如何使用多个参数化数据源
- ios - Xcode 10 迁移错误
- php - 我的 WordPress 插件执行时间过长