Solved

Password expiration calculation in Active Directory - JNDI

Posted on 2004-10-01
5
498 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
Comment Utility
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
Comment Utility
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
Comment Utility
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

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…
Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
Video by: Michael
Viewers learn about how to reduce the potential repetitiveness of coding in main by developing methods to perform specific tasks for their program. Additionally, objects are introduced for the purpose of learning how to call methods in Java. Define …
The viewer will learn how to implement Singleton Design Pattern in Java.

772 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now