r9793: Be more verbose, check for errors in upgrade script.
[sfrench/samba-autobuild/.git] / source4 / dsdb / samdb / ldb_modules / samldb.c
index 6b6c8bd55daf42b410934e8bae458914645294e9..3266c89e2d3cfacdee66b67b1ec23aedfcc423e7 100644 (file)
@@ -541,7 +541,8 @@ static int samldb_add_record(struct ldb_module *module, const struct ldb_message
 
        ldb_debug(module->ldb, LDB_DEBUG_TRACE, "samldb_add_record\n");
 
 
        ldb_debug(module->ldb, LDB_DEBUG_TRACE, "samldb_add_record\n");
 
-       if (strcmp(msg->dn->components[0].name, "@SPECIAL") == 0) { /* do not manipulate our control entries */
+       
+       if (ldb_dn_is_special(msg->dn)) { /* do not manipulate our control entries */
                return ldb_next_add_record(module, msg);
        }
 
                return ldb_next_add_record(module, msg);
        }