映射到iseries的服务驱动器不在同一个域上 [英] service mapped to iseries drive not on the same domain
问题描述
我正在处理一个从目录执行枚举文件的服务。我让它在本地工作但是我需要它能够从iSeries主机上的映射驱动器获取文件。大型机不在域上,因此它有一个单独的用户。我可以从服务器将驱动器映射到大型机并进行浏览。但是,如果我尝试通过服务访问共享,我会收到一条消息,指出该目录不可用。
我是否可以设置安全性来访问服务目录通过映射驱动器与LocalSystem,LocalService或网络用户?
有没有办法冒充用户映射驱动器并使用UNC路径?
提前感谢任何建议
I am working on a service that does an enumeratefiles from a directory. I have it working locally however I need it to be able to get the files from a mapped drive on an iSeries mainframe. The mainframe is not on the domain so it has a seperate user. I can map a drive to the mainframe from the server and browse. However if I try to access the share via service, I get a message that the directory is not available.
Is there security I can set for the service to access the directory via the mapped drive with LocalSystem, LocalService or Network user?
Is there a way to impersonate the user that I map the drive with and use the UNC Path?
Thanks in advance for any advice
推荐答案
感谢您的回复。我尝试在你的答案中实现listproject模拟列表但是没有用。我最终在iseries上创建了一个模拟AD帐户用户名/密码的用户。它现在有效。这两个帐户只需要在密码上同步。
Thanks for the response. I tried implementing the codeproject impersonation listd in your answer but didn't work. I ended up creating a user on the iseries that emulated the username/password of the AD account. It works now. The two accounts just have to be synced on passwords going forward.
这篇关于映射到iseries的服务驱动器不在同一个域上的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!