From c75386a279bb6de5de2fe59b9414813899535932 Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Sat, 20 Nov 2004 12:07:39 +0000 Subject: [PATCH] cleanup fix to ITS#3303 --- servers/slapd/acl.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/servers/slapd/acl.c b/servers/slapd/acl.c index 259e7e8937..575ea121aa 100644 --- a/servers/slapd/acl.c +++ b/servers/slapd/acl.c @@ -2492,7 +2492,11 @@ aci_mask( return 0; } - /* note: this may fail if a DN contains a valid '#' (unescaped) */ + /* NOTE: this may fail if a DN contains a valid '#' (unescaped); + * just grab all the berval up to its end. + * NOTE: the problem could be solved by providing the DN with + * the embedded '#' encoded as hexpairs: "cn=Foo#Bar" would + * become "cn=Foo\23Bar" and be safely used by aci_mask(). */ #if 0 if ( aci_get_part( aci, 4, '#', &sdn ) < 0 ) { return 0; -- 2.39.5