简体   繁体   English

从Windows到Linux检索Kerberos

[英]Retrieving Kerberos from Windows to Linux

I want to make an intranet app which allows users to browse directories and download files from a Windows share. 我想制作一个允许用户浏览目录并从Windows共享下载文件的Intranet应用程序。

The intranet app is currently Rails, but essentially is hosted on Ubuntu (ie not Windows) Intranet应用程序当前是Rails,但实际上托管在Ubuntu(即非Windows)上

The intranet app has a login, so I know the username of the current user as a string, eg "paul". Intranet应用程序具有登录名,因此我知道当前用户的用户名作为字符串,例如“ paul”。 This would be the same username on the Windows box. 这将是Windows框上的相同用户名。

Is there a way to list and access files using the combination of file permissions set in Windows and the username from the web app, hosted on Linux? 是否可以使用Windows中设置的文件权限和Linux上托管的Web应用程序的用户名的组合来列出和访问文件?

I'm thinking there's perhaps something in WinBind or SMBClient (which I clearly know little about) or something like that? 我在想WinBind或SMBClient中可能有某些东西(我对此几乎一无所知)或类似的东西? The key question I think, is related to being able to access Windows files permissions (including groups and membership of) from Linux. 我认为,关键问题与能够从Linux访问Windows文件权限(包括组和成员资格)有关。

FWIW - I used the Windows utility AccessChk and built a simple web service on the Windows box which takes a username parameter and returns a tree of readable files as JSON which I could then easily access from the intranet Rails app. FWIW-我使用Windows实用程序AccessChk,并在Windows框上构建了一个简单的Web服务,该服务使用用户名参数,并以JSON格式返回可读文件树,然后可以从Intranet Rails应用轻松访问该文件。

Not awesome, but works for intranet. 不太好,但适用于Intranet。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM