Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / Security / May 2005

Tip: Looking for answers? Try searching our database.

Help with security in Windows

Thread view: 
Chris - 19 Apr 2005 03:13 GMT
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


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.