mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
winbindd: add find_default_route_domain()
On a member server this is just our primary domain. The logic for DCs is not yet implemented, on a DC of a child-domain in a forrest this would be the parent domain. Signed-off-by: Ralph Boehme <slow@samba.org>
This commit is contained in:
parent
40c91150e3
commit
2e644af164
@ -451,6 +451,7 @@ struct winbindd_domain *find_domain_from_sid_noinit(const struct dom_sid *sid);
|
||||
struct winbindd_domain *find_trust_from_sid_noinit(const struct dom_sid *sid);
|
||||
struct winbindd_domain *find_domain_from_sid(const struct dom_sid *sid);
|
||||
struct winbindd_domain *find_our_domain(void);
|
||||
struct winbindd_domain *find_default_route_domain(void);
|
||||
struct winbindd_domain *find_lookup_domain_from_sid(const struct dom_sid *sid);
|
||||
struct winbindd_domain *find_lookup_domain_from_name(const char *domain_name);
|
||||
bool parse_domain_user(const char *domuser, fstring domain, fstring user);
|
||||
|
@ -1366,6 +1366,15 @@ struct winbindd_domain *find_our_domain(void)
|
||||
return NULL;
|
||||
}
|
||||
|
||||
struct winbindd_domain *find_default_route_domain(void)
|
||||
{
|
||||
if (!IS_DC) {
|
||||
return find_our_domain();
|
||||
}
|
||||
DBG_ERR("Routing logic not yet implemented on a DC");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
/* Find the appropriate domain to lookup a name or SID */
|
||||
|
||||
struct winbindd_domain *find_lookup_domain_from_sid(const struct dom_sid *sid)
|
||||
|
Loading…
Reference in New Issue
Block a user