Solved

Java to invoke windows NT ADSI

Posted on 2001-08-10
2
460 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Learn by Doing. Anytime. Anywhere.

Do you like to learn by doing?
Our labs and exercises give you the chance to do just that: Learn by performing actions on real environments.

Hands-on, scenario-based labs give you experience on real environments provided by us so you don't have to worry about breaking anything.

Question has a verified solution.

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

Java had always been an easily readable and understandable language.  Some relatively recent changes in the language seem to be changing this pretty fast, and anyone that had not seen any Java code for the last 5 years will possibly have issues unde…
Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
Viewers learn about the third conditional statement “else if” and use it in an example program. Then additional information about conditional statements is provided, covering the topic thoroughly. Viewers learn about the third conditional statement …
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.

718 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