• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 513
  • Last Modified:

Password expiration calculation in Active Directory - JNDI

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
apsvasudevan
Asked:
apsvasudevan
  • 2
1 Solution
 
armoghanCommented:
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
 
apsvasudevanAuthor Commented:
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

Featured Post

Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now