Revert "s4-schema: Set ATTID in schema cache from "msDS-IntId""
authorKamen Mazdrashki <kamen.mazdrashki@postpath.com>
Thu, 7 Jan 2010 03:08:49 +0000 (05:08 +0200)
committerAndrew Tridgell <tridge@samba.org>
Fri, 8 Jan 2010 02:03:04 +0000 (13:03 +1100)
This reverts commit 4e8ad284f5813413fdec8426f11e24570d22549b.

source4/dsdb/schema/schema_init.c

index 48da80c7f1999eb4b3ce75cbe4e05e02ef1512b5..77e4d3590df741cba9a59c57eb718ae6f7c97a9d 100644 (file)
@@ -558,19 +558,14 @@ WERROR dsdb_attribute_from_ldb(struct ldb_context *ldb,
                /* set an invalid value */
                attr->attributeID_id = 0xFFFFFFFF;
        } else {
-               /* check if msDS-IntId element is set */
-               attr->attributeID_id = samdb_result_uint(msg, "msDS-IntId", 0xFFFFFFFF);
-               if (attr->attributeID_id == 0xFFFFFFFF) {
-                       /* msDS-IntId is not set, make */
-                       status = dsdb_schema_pfm_make_attid(schema->prefixmap,
-                                                           attr->attributeID_oid,
-                                                           &attr->attributeID_id);
-                       if (!W_ERROR_IS_OK(status)) {
-                               DEBUG(0,("%s: '%s': unable to map attributeID %s: %s\n",
-                                       __location__, attr->lDAPDisplayName, attr->attributeID_oid,
-                                       win_errstr(status)));
-                               return status;
-                       }
+               status = dsdb_schema_pfm_make_attid(schema->prefixmap,
+                                                   attr->attributeID_oid,
+                                                   &attr->attributeID_id);
+               if (!W_ERROR_IS_OK(status)) {
+                       DEBUG(0,("%s: '%s': unable to map attributeID %s: %s\n",
+                               __location__, attr->lDAPDisplayName, attr->attributeID_oid,
+                               win_errstr(status)));
+                       return status;
                }
        }
        GET_GUID_LDB(msg, "schemaIDGUID", attr, schemaIDGUID);