mirror of
https://github.com/samba-team/samba.git
synced 2024-12-22 13:34:15 +03:00
s3:winbindd: list users/groups of our own domain as AD DC
The AD users/groups of the local domain of an AD DC only exist via winbindd and not in /etc/passwd or /etc/group. This also matches the behaviour of the source4/winbind code. Bug: https://bugzilla.samba.org/show_bug.cgi?id=11183 Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
This commit is contained in:
parent
e1aca8d69e
commit
9eb64502f0
@ -267,7 +267,6 @@
|
||||
^samba4.winbind.struct.getdcname\(s4member:local\)
|
||||
^samba.blackbox.wbinfo\(s4member:local\).wbinfo -r against s4member\(s4member:local\)
|
||||
^samba.blackbox.wbinfo\(s4member:local\).wbinfo --user-sids against s4member\(s4member:local\)
|
||||
^samba4.winbind.struct.getpwent\(ad_dc:local\)
|
||||
^samba.wbinfo_simple.\(s4member:local\).--user-groups
|
||||
^samba.nss.test using winbind\(s4member:local\)
|
||||
#
|
||||
@ -277,6 +276,9 @@
|
||||
^samba3.local.nss.reentrant enumeration crosschecks\(ad_dc_ntvfs:local\)
|
||||
^samba3.local.nss.reentrant enumeration\(ad_dc_ntvfs:local\)
|
||||
^samba3.local.nss.enumeration\(ad_dc_ntvfs:local\)
|
||||
^samba3.local.nss.reentrant enumeration crosschecks\(ad_dc:local\)
|
||||
^samba3.local.nss.reentrant enumeration\(ad_dc:local\)
|
||||
^samba3.local.nss.enumeration\(ad_dc:local\)
|
||||
#
|
||||
# These fail only if we run the unix.whoami test before them
|
||||
# in the member and ad_member environments. ==> Strange!!!
|
||||
|
@ -87,10 +87,13 @@ struct winbindd_domain *wb_next_domain(struct winbindd_domain *domain)
|
||||
domain = domain->next;
|
||||
}
|
||||
|
||||
if ((domain != NULL)
|
||||
&& sid_check_is_our_sam(&domain->sid)) {
|
||||
if ((domain != NULL) &&
|
||||
(lp_server_role() != ROLE_ACTIVE_DIRECTORY_DC) &&
|
||||
sid_check_is_our_sam(&domain->sid))
|
||||
{
|
||||
domain = domain->next;
|
||||
}
|
||||
|
||||
return domain;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user