summaryrefslogtreecommitdiff
path: root/source3/rpc_server
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2004-02-17 10:12:57 +0000
committerVolker Lendecke <vlendec@samba.org>2004-02-17 10:12:57 +0000
commitc3dc9f8f5a81146d753a50c022df273e5eca5de5 (patch)
tree45c81f04fec8b33481b8a15ce11a1a58602cd1f7 /source3/rpc_server
parent371e8bf7b490c3c9b29bdfd6b2c0d556ad391d95 (diff)
downloadsamba-c3dc9f8f5a81146d753a50c022df273e5eca5de5.tar.gz
samba-c3dc9f8f5a81146d753a50c022df273e5eca5de5.tar.bz2
samba-c3dc9f8f5a81146d753a50c022df273e5eca5de5.zip
In samr_lookup_names Windows does not return WKN_GRP(5) but ALIAS(4) when
you search in BUILTIN. Match that. Volker (This used to be commit 471cf1bf87638953bec4954667bbf8a49c693903)
Diffstat (limited to 'source3/rpc_server')
-rw-r--r--source3/rpc_server/srv_samr_nt.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/source3/rpc_server/srv_samr_nt.c b/source3/rpc_server/srv_samr_nt.c
index 3c9adf4129..c0d352483f 100644
--- a/source3/rpc_server/srv_samr_nt.c
+++ b/source3/rpc_server/srv_samr_nt.c
@@ -1418,7 +1418,12 @@ NTSTATUS _samr_lookup_names(pipes_struct *p, SAMR_Q_LOOKUP_NAMES *q_u, SAMR_R_LO
if (sid_equal(&sid, &pol_sid)) {
rid[i]=local_rid;
- type[i]=local_type;
+
+ /* Windows does not return WKN_GRP here, even
+ * on lookups in builtin */
+ type[i] = (local_type == SID_NAME_WKN_GRP) ?
+ SID_NAME_ALIAS : local_type;
+
r_u->status = NT_STATUS_OK;
}
}