防止 Office 使用 MSDAIPP
我有一个驱动器号安装到 webdav url(使用基本身份验证),我在执行 net use 命令时传递凭据。这一切都工作正常,当查看我的 tcpdump 时,我可以看到 Microsoft-WebDAV-MiniRedir 如何完成每个请求。而且每次都正确传递凭据。
但是,当我打开 Office 文件时,请求不再由 Microsoft-WebDAV-MIniRedir 完成,而是由 MSDAIPP(Microsoft 数据访问互联网发布提供商)完成。显然,office 开始直接访问 webdav,因为 Office 内置了 webdav 支持(即 MSDAIPP)。
但是,在使用 miniredir 创建安装时传递了我的凭据,MSDAIPP 没有我的凭据。所以办公室会亲自要求提供凭据。
我希望 Office 本身不访问 webdav,而只是通过驱动器盘符访问它(在这种情况下,它将由 miniredir 处理)。
我 100% 确定这是问题所在,我可以使用记事本或其他工具打开 .doc 文件并保存它。所以我确信这与 MSDAIPP 的接管有关。
由于我正在开发一款会自动为用户创建 webdav 驱动器号的产品,因此用户本身实际上并不知道他的凭据(它们是生成的)。因此,用户在办公室填写凭据是不可接受的。
能够自动将凭据传递给 MSDAIPP 也很好。
提前致谢。
I have a drive letter mounted to a webdav url (using basic authentication), I pass the credentials when executing the net use command. This is all working fine, when looking at my tcpdump i can see how every request is done by Microsoft-WebDAV-MiniRedir. Also the credentials are correctly passed every time.
However when I open an office file the request are no longer done by Microsoft-WebDAV-MIniRedir but by MSDAIPP (Microsoft Data Access Internet Publishing Provider). Clearly office starts accessing the webdav directly, since office has build in webdav support (ie MSDAIPP).
However my credentials are passed while creating the mount using the miniredir, MSDAIPP does not have my credentials. So office will ask for the credentials himself.
I want office to not access webdav himself but just to access it through the driveletter (in which case it will be handeld by the miniredir).
I'm 100% sure this is the problem, I can open the .doc file using notepad or whatever and save it. So I'm certain it has to do with MSDAIPP taking over.
Since I'm working on a product which will automaticly create a webdav drive letter for the user, the user itself is actually unaware of his credentials (they are generated). Therefore it is unacceptable for the users to fill in their credentials in office.
Being able to automaticly pass the credentials to MSDAIPP would also be fine.
Thanks in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
据我所知,这是 Microsoft Office 的限制,没有任何解决方案。使用基本或摘要式身份验证时,Microsoft Office 将始终要求提供凭据。
我看到以下解决方法:
查询字符串,它将被 MS Office 截断),如下所示:
http://serv/SessionID1234567890/folder/document.doc
。在这种情况下不会要求身份验证。
As far as I know this is a Microsoft Office limitation and there is no any solution. Microsoft Office will always ask for credentials when using Basic or Digest authentication.
I see the following workarounds:
the query string, it will be truncated by MS Office), like this:
http://serv/SessionID1234567890/folder/document.doc
.will not ask for authentication in this case.