summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2004-02-17 10:11:53 +0000
committerVolker Lendecke <vlendec@samba.org>2004-02-17 10:11:53 +0000
commit07892673ff5962ef1bbffbc72bd1588b83e6f777 (patch)
treef8df0c31726fa608e5c46e70da410c229c2007ab
parent6b7e5090049dcfcbc7db1b43995c5f4b6dbff666 (diff)
downloadsamba-07892673ff5962ef1bbffbc72bd1588b83e6f777.tar.gz
samba-07892673ff5962ef1bbffbc72bd1588b83e6f777.tar.bz2
samba-07892673ff5962ef1bbffbc72bd1588b83e6f777.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 2863b21d8a5933c309c51edb09fbda4e669e4890)
-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;
}
}