mirror of
https://github.com/samba-team/samba.git
synced 2024-12-25 23:21:54 +03:00
autorid: initialize: store config directly before allocating well knowns.
Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
parent
9e519d97c3
commit
963a05b7e8
@ -641,13 +641,6 @@ static NTSTATUS idmap_autorid_initialize(struct idmap_domain *dom)
|
||||
config->maxranges));
|
||||
}
|
||||
|
||||
status = idmap_autorid_saveconfig(autorid_db, config);
|
||||
|
||||
if (!NT_STATUS_IS_OK(status)) {
|
||||
DEBUG(1, ("Failed to store configuration data!\n"));
|
||||
goto error;
|
||||
}
|
||||
|
||||
DEBUG(5, ("%d domain ranges with a size of %d are available\n",
|
||||
config->maxranges, config->rangesize));
|
||||
|
||||
@ -666,6 +659,12 @@ static NTSTATUS idmap_autorid_initialize(struct idmap_domain *dom)
|
||||
|
||||
dom->private_data = commonconfig;
|
||||
|
||||
status = idmap_autorid_saveconfig(autorid_db, config);
|
||||
if (!NT_STATUS_IS_OK(status)) {
|
||||
DEBUG(1, ("Failed to store configuration data!\n"));
|
||||
goto error;
|
||||
}
|
||||
|
||||
/* preallocate well-known SIDs in the pool */
|
||||
status = idmap_autorid_preallocate_wellknown(dom);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user