Sorry for the cross-post: I sent this to comp.lang.java.programmer, and did
not get a response.
Can anyone point me to a primer on accessing Windows file security
information from within Java?
Here's the issue: my java app needs to access a variety of files on an
intranet. The app will have a high level of privilege; it will be able to
see everything. But it should only show the files to users who have
permission to see them. So we'll need to have users log in, find out what
their roles are, and then somehow find out any security information that's
attached to the file, and filter the list of files appropriately.
I guess I need a way to query the operating system, and ask if a particular
user can see a particular file. I suspect native code is required. Can
anyone get me started?
email.shanu@gmail.com - 10 May 2005 02:42 GMT
Hi,
You might want to google on "Active Directory java"
Active Directory will let u access all the information that you are
looking for.
If you are open to using microsoft's java virtual machine. Here is a
pointer
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/adsi/adsi/progr
amming_adsi_with_javacom.asp
~Shahnawaz
http://www.codecougar.com