summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/winbindd/idmap_autorid_tdb.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/source3/winbindd/idmap_autorid_tdb.c b/source3/winbindd/idmap_autorid_tdb.c
index 4220a9c787..a27f79a707 100644
--- a/source3/winbindd/idmap_autorid_tdb.c
+++ b/source3/winbindd/idmap_autorid_tdb.c
@@ -249,6 +249,12 @@ 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)
+{
+ return idmap_autorid_addrange(db, range, true);
+}
+
static NTSTATUS idmap_autorid_getrange_int(struct db_context *db,
struct autorid_range_config *range)
{
@@ -328,7 +334,7 @@ NTSTATUS idmap_autorid_get_domainrange(struct db_context *db,
return NT_STATUS_NOT_FOUND;
}
- ret = idmap_autorid_addrange(db, range, true);
+ ret = idmap_autorid_acquire_range(db, range);
}
DEBUG(10, ("Using range #%d for domain %s "