Solved

NT domain controller authentication using Java

Posted on 2000-03-31
6
406 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
What Is Transaction Monitoring and who needs it?

Synthetic Transaction Monitoring that you need for the day to day, which ensures your business website keeps running optimally, and that there is no downtime to impact your customer experience.

 
LVL 32

Expert Comment

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

Accepted Solution

by:
jhance earned 200 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

Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

Question has a verified solution.

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

Configuring Remote Assistance for use with SCCM
An introduction to the wonderful sport of Scam Baiting.  Learn how to help fight scammers by beating them at their own game. This great pass time helps the world, while providing an endless source of entertainment. Enjoy!
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
Windows 8 came with a dramatically different user interface known as Metro. Notably missing from that interface was a Start button and Start Menu. Microsoft responded to negative user feedback of the Metro interface, bringing back the Start button a…

717 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