The Samba-Bugzilla – Attachment 150 Details for
Bug 470
Cannot view the Security Properties (ACLs, ownership, etc) on files/directories that are owned by UIDs/GIDs that aren't in /etc/paswd and aren't in the idmap range
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Proposed fix
look (text/plain), 1.08 KB, created by
Jeremy Allison
on 2003-09-17 18:01:08 UTC
(
hide
)
Description:
Proposed fix
Filename:
MIME Type:
Creator:
Jeremy Allison
Created:
2003-09-17 18:01:08 UTC
Size:
1.08 KB
patch
obsolete
>Index: passdb/passdb.c >=================================================================== >RCS file: /data/cvs/samba/source/passdb/passdb.c,v >retrieving revision 1.151.2.51 >diff -u -r1.151.2.51 passdb.c >--- passdb/passdb.c 11 Sep 2003 16:52:10 -0000 1.151.2.51 >+++ passdb/passdb.c 18 Sep 2003 00:59:40 -0000 >@@ -1073,8 +1073,16 @@ > unix_pw = sys_getpwuid( uid ); > > if ( !unix_pw ) { >- DEBUG(4,("local_uid_to_sid: host has know idea of uid %lu\n", (unsigned long)uid)); >- return NULL; >+ DEBUG(4,("local_uid_to_sid: host has no idea of uid %lu\n", (unsigned long)uid)); >+ >+ if ( !lp_enable_rid_algorithm() ) >+ return NULL; >+ >+ DEBUG(8,("local_uid_to_sid: falling back to RID algorithm\n")); >+ >+ sid_copy( psid, get_global_sam_sid() ); >+ sid_append_rid( psid, fallback_pdb_uid_to_user_rid(uid) ); >+ goto out; > } > > if ( !NT_STATUS_IS_OK(pdb_init_sam(&sampw)) ) { >@@ -1101,6 +1109,7 @@ > sid_append_rid( psid, fallback_pdb_uid_to_user_rid(uid) ); > } > >+out: > > DEBUG(10,("local_uid_to_sid: uid (%d) -> SID %s (%s).\n", > (unsigned int)uid, sid_string_static(psid), unix_pw->pw_name));
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 470
:
148
|
149
| 150 |
151