diff --git a/ocis-pkg/ldap/ldap.go b/ocis-pkg/ldap/ldap.go
index 9276c4709..cfa452f1a 100644
--- a/ocis-pkg/ldap/ldap.go
+++ b/ocis-pkg/ldap/ldap.go
@@ -26,7 +26,7 @@ var (
">", "\\>",
";", "\\;",
"=", "\\=",
- "\000", "\\\000",
+ "\000", "\\00",
)
)
diff --git a/ocis-pkg/ldap/ldap_test.go b/ocis-pkg/ldap/ldap_test.go
index 6925facb7..d3ee3152c 100644
--- a/ocis-pkg/ldap/ldap_test.go
+++ b/ocis-pkg/ldap/ldap_test.go
@@ -20,6 +20,6 @@ var _ = Describe("ldap", func() {
Entry("only one space", " ", "\\ "),
Entry("two spaces", " ", "\\ \\ "),
Entry("ending with space", "foobar ", "foobar\\ "),
- Entry("containing multiple special chars", `f+o>o,bo\,b\o,bo\,b\