diff --git a/source3/include/idmap_autorid_tdb.h b/source3/include/idmap_autorid_tdb.h index 52bee565199..fb3a4c49828 100644 --- a/source3/include/idmap_autorid_tdb.h +++ b/source3/include/idmap_autorid_tdb.h @@ -82,6 +82,9 @@ NTSTATUS idmap_autorid_setrange(struct db_context *db, uint32_t domain_range_index, uint32_t rangenum); +NTSTATUS idmap_autorid_acquire_range(struct db_context *db, + struct autorid_range_config *range); + /** * Delete a domain#index <-> range maping from the database. * The mapping is specified by the sid and index. diff --git a/source3/winbindd/idmap_autorid_tdb.c b/source3/winbindd/idmap_autorid_tdb.c index 2f09f6cc7e2..3386380cda4 100644 --- a/source3/winbindd/idmap_autorid_tdb.c +++ b/source3/winbindd/idmap_autorid_tdb.c @@ -298,8 +298,8 @@ NTSTATUS idmap_autorid_setrange(struct db_context *db, return status; } -static NTSTATUS idmap_autorid_acquire_range(struct db_context *db, - struct autorid_range_config *range) +NTSTATUS idmap_autorid_acquire_range(struct db_context *db, + struct autorid_range_config *range) { return idmap_autorid_addrange(db, range, true); }