[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now


Reading LDAP User and MD5 Password with Java

Posted on 2006-04-25
Medium Priority
Last Modified: 2008-02-01

I am trying to locate a Java class that will allow me to access a users name and their MD5 password. I have admin rights.

I want to get a list of all of my users plus their MD5 password.

I need this to produce a list for backup.
Question by:kpmaddenuk
LVL 86

Accepted Solution

CEHJ earned 1000 total points
ID: 16537808
If you're talking about a Unix system, the password file is readable
LVL 30

Assisted Solution

by:Mayank S
Mayank S earned 1000 total points
ID: 16538447
An LDAP authentication routine contain 2 binds. The 1st bind should be as a service account (better not to use the directory-manager account) which does the search for the user's DN. The 2nd one actually binds as the user with the password given, so you need not compare anything. The directory simply returns authentication success or failure (throws AuthenticationException).  

LDAP authentication tutorial - http://java.sun.com/products/jndi/tutorial/ldap/security/ldap.html


Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

INTRODUCTION Working with files is a moderately common task in Java.  For most projects hard coding the file names, using parameters in configuration files, or using command-line arguments is sufficient.   However, when your application has vi…
Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…
Suggested Courses
Course of the Month19 days, 19 hours left to enroll

872 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