Le 18/01/2018 à 17:38, Cyril FILLON a écrit : > 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.
If you don't request operational attributes (either explicitely or with the special '+' element), you should not get back them. What code are you using for the export ? 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: {SHA512}W3IrMH/ObJRJBdEyaR1eSiIUt/6StziSDrP846kEIKGVEcMBCg53ErBU2u9bV7rVnsvZOzKA8hBXj1R/Su1NJQ==Currently I am only able to a get byte array from the Attribute. What you get is most certainly something like userpassword::<blah>, where <blah> is the base 64 encoded of {SHA512}W3IrMH/ObJRJBdEyaR1eSiIUt/6StziSDrP846kEIKGVEcMBCg53ErBU2u9bV7rVnsvZOzKA8hBXj1R/Su1NJQ==, if I'm not wrong. -- Emmanuel Lecharny Symas.com directory.apache.org