.ldif LDIF address book
Text & source code
| MIME type | text/x-ldif |
|---|---|
| Description | LDIF address book |
| Acronym | LDIF – LDAP Data Interchange Format |
| Category | Text & source code |
| Signature (magic bytes) | 64 6E 3A 20 63 6E 3D (dn: cn=)64 6E 3A 20 6D 61 69 6C 3D (dn: mail=) |
| Based on | text/plain |
Frequently asked questions
What is a .ldif file?
A .ldif file is a “LDIF address book” (MIME type text/x-ldif). LDIF stands for LDAP Data Interchange Format.
How do I open a .ldif file?
With any text editor – Notepad++, Visual Studio Code, or gedit and vim on Linux. The file contains readable text, possibly source code or configuration.
How can you tell a genuine .ldif file?
By the bytes at the start of the file, the signature (magic bytes): 64 6E 3A 20 63 6E 3D (dn: cn=) and 64 6E 3A 20 6D 61 69 6C 3D (dn: mail=). On Linux and macOS, file --mime-type example.ldif checks the real type regardless of the extension.
Which format is .ldif based on?
Technically a .ldif file is a subtype of “Plain text document” (text/plain), so programs for that base format can often read it too.
Which MIME type belongs to .ldif?
The MIME type is text/x-ldif. In the Apache web server: AddType text/x-ldif .ldif; in nginx: types { text/x-ldif ldif; }.