diff options
author | Michael Adam <obnox@samba.org> | 2014-03-19 23:50:20 +0100 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2014-04-03 00:26:28 +0200 |
commit | 963a05b7e8072ddbc310fb9b1e610356b5c8228e (patch) | |
tree | 35db35c276a5e37f7ee90e88bbe2511dee9c64f8 /source3/winbindd | |
parent | 9e519d97c36c951c47f41648529b7d5502b898a0 (diff) | |
download | samba-963a05b7e8072ddbc310fb9b1e610356b5c8228e.tar.gz samba-963a05b7e8072ddbc310fb9b1e610356b5c8228e.tar.xz samba-963a05b7e8072ddbc310fb9b1e610356b5c8228e.zip |
autorid: initialize: store config directly before allocating well knowns.
Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source3/winbindd')
-rw-r--r-- | source3/winbindd/idmap_autorid.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/source3/winbindd/idmap_autorid.c b/source3/winbindd/idmap_autorid.c index 35b4b68ba56..963d73b0e48 100644 --- a/source3/winbindd/idmap_autorid.c +++ b/source3/winbindd/idmap_autorid.c @@ -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); |