Solved

Java to invoke windows NT ADSI

Posted on 2001-08-10
2
439 Views
Last Modified: 2013-11-24
Hi to all,

  I am running a tomcat server with a java program.  This java application that I coded uses a database to authenticate users.  I was just wondering if I could use the java servlet to invoke the microsoft NT ADSI (Active Directory Services Interface) to extract details of domain users and authenticate the user with the NT security.  A few issues here to be addressed:

1.  How do I use Java to call a Windows DLL? Is it possible?
2.  Besides the ADSI library, is there another library that I could use?  Thanks!
0
Comment
Question by:sb7502428
2 Comments
 
LVL 92

Accepted Solution

by:
objects earned 100 total points
ID: 6371814
> 1.  How do I use Java to call a Windows DLL? Is it possible?

You use JNI (Java Native Interface) to do this. Basically you have to write a JNI DLL which acts as a bridge between Java and the target DLL.

Not aware of any existing products for interfacing Java and ADSI. LDAP may be a possibility.

0
 

Expert Comment

by:CleanupPing
ID: 9061891
sb7502428:
This old question needs to be finalized -- accept an answer, split points, or get a refund.  For information on your options, please click here-> http:/help/closing.jsp#1 
EXPERTS:
Post your closing recommendations!  No comment means you don't care.
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Are you developing a Java application and want to create Excel Spreadsheets? You have come to the right place, this article will describe how you can create Excel Spreadsheets from a Java Application. For the purposes of this article, I will be u…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question