mirror of
https://github.com/samba-team/samba.git
synced 2025-02-26 21:57:41 +03:00
winbind: Remove find_builtin_domain helper function
There was only one caller, and the function was pretty small anyway. This makes a "git grep find_domain_from" more obvious :-) Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Uri Simchoni <uri@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org> Autobuild-User(master): Volker Lendecke <vl@samba.org> Autobuild-Date(master): Mon Jan 2 21:52:02 CET 2017 on sn-devel-144
This commit is contained in:
parent
7981c6f9b5
commit
ec62194567
@ -159,7 +159,7 @@ static void wb_gettoken_gotlocalgroups(struct tevent_req *subreq)
|
||||
* Now expand the builtin groups
|
||||
*/
|
||||
|
||||
domain = find_builtin_domain();
|
||||
domain = find_domain_from_sid(&global_sid_Builtin);
|
||||
if (domain == NULL) {
|
||||
tevent_req_nterror(req, NT_STATUS_INTERNAL_ERROR);
|
||||
return;
|
||||
|
@ -483,7 +483,6 @@ struct winbindd_domain *find_domain_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_root_domain(void);
|
||||
struct winbindd_domain *find_builtin_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);
|
||||
|
@ -994,18 +994,6 @@ struct winbindd_domain *find_root_domain(void)
|
||||
return find_domain_from_name( ours->forest_name );
|
||||
}
|
||||
|
||||
struct winbindd_domain *find_builtin_domain(void)
|
||||
{
|
||||
struct winbindd_domain *domain;
|
||||
|
||||
domain = find_domain_from_sid(&global_sid_Builtin);
|
||||
if (domain == NULL) {
|
||||
smb_panic("Could not find BUILTIN domain");
|
||||
}
|
||||
|
||||
return domain;
|
||||
}
|
||||
|
||||
/* Find the appropriate domain to lookup a name or SID */
|
||||
|
||||
struct winbindd_domain *find_lookup_domain_from_sid(const struct dom_sid *sid)
|
||||
|
Loading…
x
Reference in New Issue
Block a user