[Date Prev][Date Next]
(ITS#3465) character escaping in strings
Full_Name: Janusz Grabowski
OS: Debian Linux
Submission from: (NULL) (18.104.22.168)
According to RFC2253 characters: ",", "+", """, "\", "<", ">",";" in strings
needs escaping by prefixing it with '\' (backslash).
But it is not possible to add the following simple ldif file to LDAP directory
dn: ou=test \"test\",dc=example,dc=com
ou: test \"test\"
bdb_add: entry failed schema check: value of naming attribute 'ou' is not
present in entry (64)
send_ldap_result: conn=0 op=1 p=3
send_ldap_result: err=64 matched="" text="value of naming attribute 'ou' is not
present in entry"
After some debuging I found that function value_find_ex() defined in
servers/slapd/value.c try to match 'ou' attribute value using value_match()
(defined in the same file) passing two differend values of 'ou' as arguments
[test \"test\"] as stored value and [test "test"] as asserted value, so matching
new take a place.
I dont understand why one of this values is normalized and second is not??