The Samba-Bugzilla – Attachment 16168 Details for
Bug 14213
Windows Explorer crashes on S-1-22-* Unix-SIDs when accessing security tab
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Minimal patch to fix the problem?
tmp.diff.txt (text/plain), 2.35 KB, created by
Stefan Metzmacher
on 2020-08-12 15:19:39 UTC
(
hide
)
Description:
Minimal patch to fix the problem?
Filename:
MIME Type:
Creator:
Stefan Metzmacher
Created:
2020-08-12 15:19:39 UTC
Size:
2.35 KB
patch
obsolete
>From 16e836767383d3b657f22a5bab21fff5fc27fd78 Mon Sep 17 00:00:00 2001 >From: Stefan Metzmacher <metze@samba.org> >Date: Wed, 12 Aug 2020 17:08:14 +0200 >Subject: [PATCH] WIP: libcli/security: let dom_sid_lookup_predefined_sid() > behave like Windows > >Windows (172.31.9.133) returns the following: > > #> rpcclient 172.31.9.133 -Uadministrator%A1b2C3d4 -c 'lookupsids S-1-22-1 S-1-22-1-0;lookupsids S-1-22;lookupsids S-1-3-0 S-1-3-99;lookupsids S-1-3' > S-1-22-1 *unknown*\*unknown* (8) > S-1-22-1-0 *unknown*\*unknown* (8) > result was NT_STATUS_INVALID_SID > S-1-3-0 \CREATOR OWNER (5) > S-1-3-99 *unknown*\*unknown* (8) > result was NT_STATUS_INVALID_SID > >While the current Samba (172.31.9.163) returns the following: > > #> rpcclient 172.31.9.163 -Uadministrator%A1b2C3d4 -c 'lookupsids S-1-22-1 S-1-22-1-0;lookupsids S-1-22;lookupsids S-1-3-0 S-1-3-99;lookupsids S-1-3' > result was NT_STATUS_INVALID_SID > result was NT_STATUS_INVALID_SID > S-1-3-0 \CREATOR OWNER (5) > S-1-3-99 *unknown*\*unknown* (8) > S-1-3 *unknown*\*unknown* (8) > >With this change also return the same as Windows: > > #> rpcclient 172.31.9.163 -Uadministrator%A1b2C3d4 -c 'lookupsids S-1-22-1 S-1-22-1-0;lookupsids S-1-22;lookupsids S-1-3-0 S-1-3-99;lookupsids S-1-3' > S-1-22-1 *unknown*\*unknown* (8) > S-1-22-1-0 *unknown*\*unknown* (8) > result was NT_STATUS_INVALID_SID > S-1-3-0 \CREATOR OWNER (5) > S-1-3-99 *unknown*\*unknown* (8) > result was NT_STATUS_INVALID_SID > >BUG: https://bugzilla.samba.org/show_bug.cgi?id=14213 >--- > libcli/security/util_sid.c | 5 +---- > 1 file changed, 1 insertion(+), 4 deletions(-) > >diff --git a/libcli/security/util_sid.c b/libcli/security/util_sid.c >index e47ed04c30f8..415cc9634c70 100644 >--- a/libcli/security/util_sid.c >+++ b/libcli/security/util_sid.c >@@ -919,7 +919,6 @@ NTSTATUS dom_sid_lookup_predefined_sid(const struct dom_sid *sid, > const char **authority_name) > { > size_t di; >- bool match_domain = false; > > *name = NULL; > *type = SID_NAME_UNKNOWN; >@@ -941,8 +940,6 @@ NTSTATUS dom_sid_lookup_predefined_sid(const struct dom_sid *sid, > continue; > } > >- match_domain = true; >- > for (ni = 0; ni < d->num_names; ni++) { > const struct predefined_name_mapping *n = > &d->names[ni]; >@@ -960,7 +957,7 @@ NTSTATUS dom_sid_lookup_predefined_sid(const struct dom_sid *sid, > } > } > >- if (!match_domain) { >+ if (sid->num_auths == 0) { > return NT_STATUS_INVALID_SID; > } > >-- >2.17.1 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 14213
:
15669
|
15672
|
15746
|
15747
| 16168 |
16169
|
16170
|
17991