diff --git a/core/js/mimetypelist.js b/core/js/mimetypelist.js
index 07ae0efee0a49bab8b36189e26b45cd4e6bf7ea8..b0104b50bef1c820cabdfc1eccce8bd251b5c351 100644
--- a/core/js/mimetypelist.js
+++ b/core/js/mimetypelist.js
@@ -90,8 +90,8 @@ OC.MimeTypeList={
     "text/x-c": "text/code",
     "text/x-c++src": "text/code",
     "text/x-h": "text/code",
-    "text/x-ldif": "text/code",
     "text/x-java-source": "text/code",
+    "text/x-ldif": "text/code",
     "text/x-python": "text/code",
     "text/x-shellscript": "text/code",
     "web": "text/code"
diff --git a/resources/config/mimetypealiases.dist.json b/resources/config/mimetypealiases.dist.json
index daf75453dc8800b485f7ec3aad2fddf52b9e5926..2c2ea28059c477ab3e72525c0ab832b9a6f541cb 100644
--- a/resources/config/mimetypealiases.dist.json
+++ b/resources/config/mimetypealiases.dist.json
@@ -91,6 +91,7 @@
 	"text/x-c++src": "text/code",
 	"text/x-h": "text/code",
 	"text/x-java-source": "text/code",
+	"text/x-ldif": "text/code",
 	"text/x-python": "text/code",
 	"text/x-shellscript": "text/code",
 	"web": "text/code"