diff --git a/ocis-pkg/ldap/ldap.go b/ocis-pkg/ldap/ldap.go index 9276c470989..cfa452f1a5d 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 6925facb712..d3ee3152cfb 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\