From af2c7c7e9665fc8d7c4e00f2f5e551b5fea94aed Mon Sep 17 00:00:00 2001 From: Benjamin Dauvergne Date: Fri, 27 Apr 2018 16:55:22 +0200 Subject: [PATCH] =?UTF-8?q?ajout=20d'un=20commentaire=20sur=20l'=C3=A9chap?= =?UTF-8?q?pement=20des=20caract=C3=A8res=20dans=20les=20filtres=20LDAP?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/resetdb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/resetdb b/lib/resetdb index e8837b2..22e6cd9 100755 --- a/lib/resetdb +++ b/lib/resetdb @@ -112,6 +112,10 @@ EOF fi # remove the displayname constraint + # NOTE: left parenthesis must be escaped with \28 + # right parenthesis with \29 + # stars with \2a + # backslash with \5c if ldapsearch -H ldapi:// -Y EXTERNAL -b "$DN2" "olcConstraintAttribute=displayName,sn,givenName set \"\\28this/givenName + [ ] + this/sn\\29 & this/displayName\" restrict=\"ldap:///ou=people,$SUFFIX??sub?\\28objectClass=\\2a\\29\"" 2>/dev/null | grep -q ^olcConstraintAttribute ; then cat <$LDIF dn: $DN2