In samr_lookup_names Windows does not return WKN_GRP(5) but ALIAS(4) when
authorVolker Lendecke <vlendec@samba.org>
Tue, 17 Feb 2004 10:12:57 +0000 (10:12 +0000)
committerVolker Lendecke <vlendec@samba.org>
Tue, 17 Feb 2004 10:12:57 +0000 (10:12 +0000)
you search in BUILTIN. Match that.

Volker

source/rpc_server/srv_samr_nt.c

index 3c9adf4129d3e4c19910eb5c548b02a394439496..c0d352483f0bb68ed2aed346a6552d358d5dc886 100644 (file)
@@ -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;
                        }
                }