English 中文(简体)
贾瓦语班能否吸引另一个Windows用户?
原标题:Can a Java class impersonate another Windows user?

I ve a Java servlet category which isaccessed a NetApp rafter for file. 该班在Windows 2003的Tomcat 6.0上运行,并使用主动目录进行校正,认证网络用户。

Tomcat(因此也是与Java servlet各班的网络应用程序)本身设有一个服务账户的<代码>xyz。 NetApp的夹对某些群体有各种许可。

现在,我通过发布《反歧视法》问询,检查网络用户是否是这些团体的一部分:

"cmd.exe /C dsquery user -samid <username> dsget user -memberof -expand|grep -f <filename containing groups>"

这是一种轻率和错误,因为如果有人在NetApp的夹子上增加一个新组,除非我更新小组档案,否则上述指挥将失败。 因此,是否以任何方式冒用在 Java的利用,直接从净申请和通过上述反倾销检查获得档案?

问题回答

Have you taken a look at LDAP libraries for Java such as OpenLDAP, LDAPTemplate, ... ? An interesting read to grasp more context on the issue could be the Tips for LDAP users from Sun





相关问题
Spring Properties File

Hi have this j2ee web application developed using spring framework. I have a problem with rendering mnessages in nihongo characters from the properties file. I tried converting the file to ascii using ...

Logging a global ID in multiple components

I have a system which contains multiple applications connected together using JMS and Spring Integration. Messages get sent along a chain of applications. [App A] -> [App B] -> [App C] We set a ...

Java Library Size

If I m given two Java Libraries in Jar format, 1 having no bells and whistles, and the other having lots of them that will mostly go unused.... my question is: How will the larger, mostly unused ...

How to get the Array Class for a given Class in Java?

I have a Class variable that holds a certain type and I need to get a variable that holds the corresponding array class. The best I could come up with is this: Class arrayOfFooClass = java.lang....

SQLite , Derby vs file system

I m working on a Java desktop application that reads and writes from/to different files. I think a better solution would be to replace the file system by a SQLite database. How hard is it to migrate ...

热门标签