diff options
author | Andrew Bartlett <abartlet@samba.org> | 2013-06-15 23:01:44 +1000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2013-06-20 15:30:00 +0200 |
commit | 88c72fceb1c86752c52651bdea5b116806dd92c5 (patch) | |
tree | 13524805d4e49fdf52d5f7bc6852b3f2898647ff /source4/winbind/wb_dom_info.c | |
parent | d4091c5809f174b68714fa50fa501c99617c016e (diff) | |
download | samba-88c72fceb1c86752c52651bdea5b116806dd92c5.tar.gz samba-88c72fceb1c86752c52651bdea5b116806dd92c5.tar.bz2 samba-88c72fceb1c86752c52651bdea5b116806dd92c5.zip |
s4-winbind: Add special case for BUILTIN domain
This should mean that lookups for the BUILTIN domain cause less trouble
then they have in the past, because they will no longer go via the
trusted domain handler.
Andrew Bartlett
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Thu Jun 20 15:30:00 CEST 2013 on sn-devel-104
Diffstat (limited to 'source4/winbind/wb_dom_info.c')
-rw-r--r-- | source4/winbind/wb_dom_info.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/source4/winbind/wb_dom_info.c b/source4/winbind/wb_dom_info.c index e2b5defa52..8c08c73a8f 100644 --- a/source4/winbind/wb_dom_info.c +++ b/source4/winbind/wb_dom_info.c @@ -67,9 +67,10 @@ struct composite_context *wb_get_dom_info_send(TALLOC_CTX *mem_ctx, state->info->sid = dom_sid_dup(state->info, sid); if (state->info->sid == NULL) goto failed; - if ((lpcfg_server_role(service->task->lp_ctx) != ROLE_DOMAIN_MEMBER) && + if (dom_sid_equal(sid, &global_sid_Builtin) || + ((lpcfg_server_role(service->task->lp_ctx) != ROLE_DOMAIN_MEMBER) && dom_sid_equal(sid, service->primary_sid) && - service->sec_channel_type != SEC_CHAN_RODC) { + service->sec_channel_type != SEC_CHAN_RODC)) { struct interface *ifaces = NULL; load_interface_list(state, service->task->lp_ctx, &ifaces); |