• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Tim Cooke
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
Saloon Keepers:
  • Piet Souris
Bartenders:

Java - NT Authorization

 
Ranch Hand
Posts: 126
Oracle
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi folks,
In a certain project, I have to give access to users with respect to their NT authorizations. I am not sure about the technologies I could use for the same.
In other words I want to access NT auth. info from java.
If u know it please let me know
regards
nitz
 
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It sounds like the Java technology you need is Java Native Methods. This technology allows you to access the native Windows API functions. So assuming you understood this technology and also understand the appropriate Windows API calls and some C/C++ programming, you should be able to pull this off.
I would start off by identifying the appropriate Windows API functions relating to NT security. I would test these APIs using C/C++ to make sure you can access the data you need. Then I would read Chapter 11 in Horstmann's Core Java Volume 2 to learn Java Native Methods. Then I would put everything together, accessing the Windows API via Java. What you want to do should be doable, but not trivial, depending on your background.
 
Author
Posts: 6055
8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You could also use PAM, Pluggable Authentication Module. It was designed for exactly this purpose, and would also make your code more flexibile, since you can create a PAM module for other access control systems, in addition to NT.
--Mark
[email protected]
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic