[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

Password expiration calculation in Active Directory - JNDI

Posted on 2004-10-01
5
Medium Priority
?
510 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

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Question has a verified solution.

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

By the end of 1980s, object oriented programming using languages like C++, Simula69 and ObjectPascal gained momentum. It looked like programmers finally found the perfect language. C++ successfully combined the object oriented principles of Simula w…
Are you developing a Java application and want to create Excel Spreadsheets? You have come to the right place, this article will describe how you can create Excel Spreadsheets from a Java Application. For the purposes of this article, I will be u…
Viewers learn about the third conditional statement “else if” and use it in an example program. Then additional information about conditional statements is provided, covering the topic thoroughly. Viewers learn about the third conditional statement …
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 …
Suggested Courses

649 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