]> git.ipfire.org Git - thirdparty/samba.git/commit
winbindd: add struct winbindd_domain_ref infrastructure
authorStefan Metzmacher <metze@samba.org>
Fri, 7 Feb 2025 12:43:10 +0000 (13:43 +0100)
committerRalph Boehme <slow@samba.org>
Sat, 8 Feb 2025 15:26:38 +0000 (15:26 +0000)
commit5d9db5cccc086bfcefa33daa7c03443d0614e982
treecc6d02f07b79b83a9dac179a16d8371008194bb2
parent89a5d0e3dfac0feffc4d7a53dfb8c938ecd684ed
winbindd: add struct winbindd_domain_ref infrastructure

In the next commits it will be possible that
struct winbindd_domain instances become stale
because trusted domains were reloaded.

That means aync state structure should not use
pointers to 'struct winbindd_domain' as they
can become stale!

Instead they should use 'struct winbindd_domain_ref domain'
in the async state and use winbindd_domain_ref_set/get()
to manage the 'struct winbindd_domain' pointer.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/winbindd/winbindd.h
source3/winbindd/winbindd_util.c