Solved

NT domain controller authentication using Java

Posted on 2000-03-31
6
389 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
  • 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
Connect further...control easier

With the ATEN CE624, you can now enjoy a high-quality visual experience powered by HDBaseT technology and the convenience of a single Cat6 cable to transmit uncompressed video with zero latency and multi-streaming for dual-view applications where remote access is required.

 
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

Easy, flexible multimedia distribution & control

Coming soon!  Ideal for large-scale A/V applications, ATEN's VM3200 Modular Matrix Switch is an all-in-one solution that simplifies video wall integration. Easily customize display layouts to see what you want, how you want it in 4k.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
robocopy 33 115
PDF to JPG 13 56
Can I reformat a computer with the free windows 10 uprgrade? 3 42
Where to download python requests library 6 25
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
How to record audio from input sources to your PC ā€“ connected devices, connected preamp to record vinyl discs, streaming media, that play through your audio card: Vista, Windows 7, Windows 8, Windows 8.1 and Windows 10 ā€“ both 32 bit & 64.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). Uā€¦
This Micro Tutorial will give you a basic overview of Windows DVD Burner through its features and interface. This will be demonstrated using Windows 7 operating system.

856 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