s4-ldb: '+' can also happen in base64 encoded index DNs
authorAndrew Tridgell <tridge@samba.org>
Tue, 27 Oct 2009 00:44:05 +0000 (11:44 +1100)
committerAndrew Tridgell <tridge@samba.org>
Tue, 27 Oct 2009 00:44:05 +0000 (11:44 +1100)
source4/lib/ldb/common/ldb_dn.c

index 639e8b2837f003f85046b9807dc521b5b4d3cd8a..8beda35f672f80a959d552b75bfd0b97a4191b73 100644 (file)
@@ -767,6 +767,7 @@ static bool ldb_dn_explode(struct ldb_dn *dn)
                                continue;
 
                        case '=':
+                       case '+':
                                /* to main compatibility with earlier
                                versions of ldb indexing, we have to
                                accept the base64 encoded binary index
@@ -779,7 +780,6 @@ static bool ldb_dn_explode(struct ldb_dn *dn)
                                }
                                /* fall through */
                        case '\n':
-                       case '+':
                        case '<':
                        case '>':
                        case '#':