* Implement 'net groupmap set' and 'net groupmap cleanup'.
* Add 'net rpc group [add|del]mem' for domain groups and aliases.
* Fix wb_delgrpmem (wbinfo -o)
+ * As a DC we should not reply to lsalookupnames on DCNAME\\user
o Herb Lewis <herb@samba.org>
/* If we are looking up a domain user, make sure it is
for the local machine only */
- if (strequal(global_myname(), domain)) {
- local_lookup = True;
- } else if (lp_server_role() == ROLE_DOMAIN_PDC ||
- lp_server_role() == ROLE_DOMAIN_BDC) {
- if (strequal(domain, lp_workgroup())) {
- local_lookup = True;
- }
- }
-
- if (local_lookup) {
+ if (strequal(domain, get_global_sam_name())) {
if (local_lookup_name(name, psid, name_type)) {
DEBUG(10,
("lookup_name: (local) [%s]\\[%s] -> SID %s (type %s: %u)\n",