Fix normalise module: Skip non-DN attributes
authorAndrew Bartlett <abartlet@samba.org>
Wed, 10 Dec 2008 03:22:23 +0000 (14:22 +1100)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 10 Dec 2008 03:22:23 +0000 (14:22 +1100)
Due to a bug/typo, we were instead skipping all DN attributes, and
blanking the rest.

Andrew Bartlett

Conflicts:

source4/dsdb/samdb/ldb_modules/normalise.c

index 796edec..3d1986c 100644 (file)
@@ -114,7 +114,7 @@ static int normalize_search_callback(struct ldb_request *req, struct ldb_reply *
                                continue;
                        }
                        /* Look to see if this attributeSyntax is a DN */
-                       if (strcmp(attribute->attributeSyntax_oid, "2.5.5.1") == 0) {
+                       if (strcmp(attribute->attributeSyntax_oid, "2.5.5.1") != 0) {
                                continue;
                        }
                        for (j = 0; j < msg->elements[i].num_values; j++) {