How to export LDIF with Microsoft LDIFDE

Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.

Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.

*Except Fisheye and Crucible

Summary

We usually need to request information from the LDAP server exported into an LDIF format in order to troubleshoot the LDAP integration with our applications. We have this page with the instructions of how to do this using Apache Directory Studio which is a free LDAP browser with a graphical interface and provides the functionalites to administer, import and export objects. However in some situations the installation of this software is not authorized and as an alternative we can use Microsoft LDIFDE, which is a native command-line tool that can be used to export LDAP information.

Solution

The content on this page relates to platforms which are not supported. Consequently, Atlassian Support cannot guarantee providing any support for it. Please be aware that this material is provided for your information only and using it is done so at your own risk.

  • This is and example of syntax to export an user:

    1 ldifde -f output_file.ldif -s LDAP_server_name -d "dc=example,dc=com" -p subtree -r "(&(objectCategory=person)(sAMAccountName=user_name))"
  • This is and example of syntax to export a group:

    1 ldifde -f output_file.ldif -s LDAP_server_name -d "dc=example,dc=com" -p subtree -r "(&(objectCategory=group)(cn=group_name))"

    ℹ️ In order to use this tool, you should be familiar with LDAP search filters.

Updated on April 8, 2025

Still need help?

The Atlassian Community is here for you.