How to export LDIF with Microsoft LDIFDE

Still need help?

The Atlassian Community is here for you.

Ask the community

Purpose

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 for JIRA Applications. Consequently, Atlassian 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:

    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:

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

    (info) In order to use this tool, you should be familiar with LDAP search filters.

Last modified on Mar 21, 2024

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.