s4-ldb: accept the binary DN OIDs in extended DN modules
authorAndrew Tridgell <tridge@samba.org>
Thu, 24 Sep 2009 14:06:03 +0000 (07:06 -0700)
committerAndrew Tridgell <tridge@samba.org>
Fri, 2 Oct 2009 02:05:59 +0000 (12:05 +1000)
source4/dsdb/samdb/ldb_modules/extended_dn_out.c
source4/dsdb/samdb/ldb_modules/extended_dn_store.c

index f93090ace9589853e7c49a7f81d561bec95f0a3f..bb5e3795dbccec98abd715a991f6e49390f55245 100644 (file)
@@ -340,7 +340,8 @@ static int extended_callback(struct ldb_request *req, struct ldb_reply *ares)
                }
 
                /* 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 &&
+                   strcmp(attribute->attributeSyntax_oid, "2.5.5.7") != 0) {
                        continue;
                }
 
@@ -617,7 +618,8 @@ static int extended_dn_out_dereference_init(struct ldb_module *module)
                        NULL
                };
 
-               if (strcmp(cur->syntax->attributeSyntax_oid, "2.5.5.1") != 0) {
+               if (strcmp(cur->syntax->attributeSyntax_oid, "2.5.5.1") != 0 &&
+                   strcmp(cur->syntax->attributeSyntax_oid, "2.5.5.7") != 0) {
                        continue;
                }
                dereference_control->dereference
index 3234f6f269d0665e5e06156aab38b1bc223e7bd6..122a9bb2b7d648897674fa53ce9ee1818f94d023 100644 (file)
@@ -303,7 +303,8 @@ static int extended_dn_add(struct ldb_module *module, struct ldb_request *req)
                }
 
                /* We only setup an extended DN GUID on these particular DN objects */
-               if (strcmp(schema_attr->attributeSyntax_oid, "2.5.5.1") != 0) {
+               if (strcmp(schema_attr->attributeSyntax_oid, "2.5.5.1") != 0 &&
+                   strcmp(schema_attr->attributeSyntax_oid, "2.5.5.7") != 0) {
                        continue;
                }
 
@@ -376,7 +377,8 @@ static int extended_dn_modify(struct ldb_module *module, struct ldb_request *req
                }
 
                /* We only setup an extended DN GUID on these particular DN objects */
-               if (strcmp(schema_attr->attributeSyntax_oid, "2.5.5.1") != 0) {
+               if (strcmp(schema_attr->attributeSyntax_oid, "2.5.5.1") != 0 &&
+                   strcmp(schema_attr->attributeSyntax_oid, "2.5.5.7") != 0) {
                        continue;
                }