s4:dsdb:ridalloc: use dsdb_module_constrainted_update_uint64() to update rIDAvailablePool
authorStefan Metzmacher <metze@samba.org>
Thu, 8 Jul 2010 10:34:15 +0000 (12:34 +0200)
committerStefan Metzmacher <metze@samba.org>
Fri, 9 Jul 2010 07:27:13 +0000 (09:27 +0200)
metze

source4/dsdb/samdb/ldb_modules/ridalloc.c

index 1b56512f967ccb1fc5cdc8aca79a8f042726d998..d81717259b8fb72b8da6ddde925a50d34b733e7a 100644 (file)
@@ -139,8 +139,8 @@ static int ridalloc_rid_manager_allocate(struct ldb_module *module, struct ldb_d
        /* and new rIDAvailablePool value */
        new_rid_pool = rid_pool_lo | (((uint64_t)rid_pool_hi)<<32);
 
-       ret = dsdb_module_constrainted_update_integer(module, rid_manager_dn, "rIDAvailablePool",
-                                                     rid_pool, new_rid_pool);
+       ret = dsdb_module_constrainted_update_uint64(module, rid_manager_dn, "rIDAvailablePool",
+                                                    &rid_pool, &new_rid_pool);
        if (ret != LDB_SUCCESS) {
                ldb_asprintf_errstring(ldb, "Failed to update rIDAvailablePool - %s",
                                       ldb_errstring(ldb));