https://bugs.openldap.org/show_bug.cgi?id=10321

--- Comment #6 from Howard Chu <[email protected]> ---
slapd is only unescaping the bytes in the filter that correspond to printable
characters. You can prove that the result is bytewise identical to the original
input.

use "xxd -r -p" on the original input to generate the value in its decoded
form. it will be an 1161 byte file.

Use this program on the text that slapd logged to generate the value in its
decoded form. It will be an identical 1161 byte file.

#include <stdio.h>

int main() {
        int c;
        while ((c = fgetc(stdin)) != EOF) {
                if (c == '\n')
                        continue;
                if (c == '\\') {
                        scanf("%02x", &c);
                }
                putchar(c);
        }
}

-- 
You are receiving this mail because:
You are on the CC list for the issue.

Reply via email to