directory-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Cyril FILLON <>
Subject Re: LDIF file import with userPassword based on SHA512 algorithm
Date Thu, 18 Jan 2018 16:38:07 GMT
Hi all,
Forget the previous request, I did a mistake in messing some configuration files.
However, I have another request, I would like to export the content of my LDAP into an LDIF
file programmatically.I almost achieve this but I miss a couple of things:1. I would like
to ride of the operational attributes during the export2. I would like to have the userPassword
in the same form I entered in the input ldif file, that is to say something like:userpassword:
I am only able to a get byte array from the Attribute.

Any ideas are most welcome. Many thanks in advance.

Cyril F

    Le jeudi 18 janvier 2018 à 17:12:46 UTC+1, Cyril FILLON <>
a écrit :  
 Hello everyone,
I am using ApacheDS 2.0.0-M23.
I am currently loading programmatically an LDIF file with entries like:
dn: cn=Bilbo Baggins,ou=users,dc=mathworks,dc=com,o=Middle-earth
objectclass: person
objectclass: organizationalPerson
objectclass: inetOrgPerson
objectclass: top
cn: Bilbo Baggins
description: Bilbo is the author of The Hobbit and translator of various "works from the elvish"
givenname: Bilbo
sn: Baggins
uid: bbaggins
userpassword: {SHA512}W3IrMH/ObJRJBdEyaR1eSiIUt/6StziSDrP846kEIKGVEcMBCg53ErBU2u9bV7rVnsvZOzKA8hBXj1R/Su1NJQ==
This hash corresponds to pass as password.However I perform a bind it fails.
If I used a SHA-1 hash as follows, it works fine:userpassword: {SHA}nU4eI71bcnBGqeO0t9tXvY1u5oQ=

I also tried with other prefixes like SHA-512, but it does not work as well.

Any ideas are most welcome. Many thanks in advance.

Cyril F
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message