?
Solved

NT domain controller authentication using Java

Posted on 2000-03-31
6
Medium Priority
?
412 Views
Last Modified: 2013-12-28
I am using Java Servlets on an NT machine and was wondering how I could go about getting user authentication from the NT domain controller.  
0
Comment
Question by:danGynn
[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
  • 3
  • 3
6 Comments
 
LVL 32

Expert Comment

by:jhance
ID: 2674453
It's quite unclear to me just what you are trying to do.  

If it's to authenticate a remote user against the NT user account database, you'll need to call LogonUser() from advapi32.dll to get a token for that user.  Then what you do with the token depends on what you need to accomplish.

If you need to start an application you would use CreateProcessAsUser().  If you need to access a local resource on behalf of that user, you'll need ImpersonateLoggedOnUser().

How any of this is done from a Java Servlet is beyond me, however.  I'd suspect you need to implement this as a native class or use the JNI from JDK 1.2+
0
 

Author Comment

by:danGynn
ID: 2680117
I solved the problem using the mod_ntlm module for apache.  It uses the .htaccess file and authenticates via the server.
0
 

Author Comment

by:danGynn
ID: 2680118
This question has a deletion request Pending
0
Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

 
LVL 32

Expert Comment

by:jhance
ID: 2681373
This question no longer is pending deletion
0
 
LVL 32

Accepted Solution

by:
jhance earned 400 total points
ID: 2681374
I'd like to point out that my answer is STILL a valid answer to you question.  The fact that you decided on a different course of action doesn't make it less valid.
0
 

Author Comment

by:danGynn
ID: 2681406
Actually, your answer did NOT answer my question.  You mentioned some windows function call, but not how you would use it from a Java servlet.  However, if you are going to cry about it, I'll give you your points.
0

Featured Post

Get real performance insights from real users

Key features:
- Total Pages Views and Load times
- Top Pages Viewed and Load Times
- Real Time Site Page Build Performance
- Users’ Browser and Platform Performance
- Geographic User Breakdown
- And more

Question has a verified solution.

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

Configuring Remote Assistance for use with SCCM
This article shows how to use a free utility called 'Parkdale' to easily test the performance and benchmark any Hard Drive(s) installed in your computer. We also look at RAM Disks and their speed comparisons.
This video Micro Tutorial explains how to clone a hard drive using a commercial software product for Windows systems called Casper from Future Systems Solutions (FSS). Cloning makes an exact, complete copy of one hard disk drive (HDD) onto another d…
In this video, we discuss why the need for additional vertical screen space has become more important in recent years, namely, due to the transition in the marketplace of 4x3 computer screens to 16x9 and 16x10 screens (so-called widescreen format). …

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