Reading LDAP User and MD5 Password with Java

Posted on 2006-04-25
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

    If you're talking about a Unix system, the password file is readable
    LVL 30

    Assisted Solution

    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 -


    Featured Post

    Highfive Gives IT Their Time Back

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Join & Write a Comment

    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…
    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…
    Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
    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…

    734 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

    23 Experts available now in Live!

    Get 1:1 Help Now