?
Solved

Password expiration calculation in Active Directory - JNDI

Posted on 2004-10-01
5
Medium Priority
?
509 Views
Last Modified: 2010-05-18
Hi,

 I would like to compute when password expires in Active Directory using Java/JNDI. I;m using Microsoft Active Directory Server. When a user logs in to the application, a message should be displayed like "Your Password expieres in X days". If anyone could help me with sample code, I would appreciate.

Thanks
V
0
Comment
Question by:apsvasudevan
[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
5 Comments
 
LVL 18

Expert Comment

by:armoghan
ID: 12224074
Create a DLL using the following link and use JNI to get it
or make an EXE file and give it the command line paramters and get the response using Runtime.getRuntime.exec("cmd / xyz.exe")


http://www.error-bank.com/microsoft.public.dotnet.general/133891_Thread.aspx
0
 

Author Comment

by:apsvasudevan
ID: 12226609
Thanks for your reply, but i really cannot use DLL in my application as my app is running in UNIX environment. If you could help me with getting maxPwdAge attribute's value from the domain using Java that will be great!
0
 
LVL 18

Accepted Solution

by:
armoghan earned 2000 total points
ID: 12234546
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

I had a project requirement for a displaying a user workbench .This workbench would consist multiple data grids .In each grid the user will be able to see a large number of data. These data grids should allow the user to 1. Sort 2. Export the …
Introduction Java can be integrated with native programs using an interface called JNI(Java Native Interface). Native programs are programs which can directly run on the processor. JNI is simply a naming and calling convention so that the JVM (Java…
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
Suggested Courses
Course of the Month9 days, 7 hours left to enroll

762 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