1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-27 03:21:53 +03:00

r14076: When the backends trusted_domains call comes back with no trusts the

NTSTATUS code will be NT_STATUS_NO_MORE_ENTRIES. In that case store
NT_STATUS_OK in the centry so that the entry does not automatically
deleted upon startup or invalidated upon next query.

Guenther
(This used to be commit 200d456661)
This commit is contained in:
Günther Deschner 2006-03-09 16:08:15 +00:00 committed by Gerald (Jerry) Carter
parent 9f18298bee
commit ba8eff660b

View File

@ -1673,6 +1673,14 @@ do_query:
status = domain->backend->trusted_domains(domain, mem_ctx, num_domains,
names, alt_names, dom_sids);
/* no trusts gives NT_STATUS_NO_MORE_ENTRIES resetting to NT_STATUS_OK
* so that the generic centry handling still applies correctly -
* Guenther*/
if (!NT_STATUS_IS_ERR(status)) {
status = NT_STATUS_OK;
}
/* and save it */
refresh_sequence_number(domain, False);