Solved

Password expiration calculation in Active Directory - JNDI

Posted on 2004-10-01
5
505 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
  • 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 500 total points
ID: 12234546
0

Featured Post

Resolve Critical IT Incidents Fast

If your data, services or processes become compromised, your organization can suffer damage in just minutes and how fast you communicate during a major IT incident is everything. Learn how to immediately identify incidents & best practices to resolve them quickly and effectively.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
V.simple question about Android packages and libraries 1 36
How to execute a Python program and gather return output in Java 2 49
by zero exception 10 69
Java string replace 11 61
Java contains several comparison operators (e.g., <, <=, >, >=, ==, !=) that allow you to compare primitive values. However, these operators cannot be used to compare the contents of objects. Interface Comparable is used to allow objects of a cl…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

679 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