mirror of
https://github.com/samba-team/samba.git
synced 2025-03-12 20:58:37 +03:00
Allow name lookup to fail and fall back to using the "Everyone" SID
as SD owner. Allows smbd to work without winbindd running. Check for security implications ! Jeremy. (This used to be commit 9bd64da1e26a1b4a2df2b0537feb604a40762bb1)
This commit is contained in:
parent
9f12613904
commit
5d8a5d9d0d
@ -1609,11 +1609,13 @@ static SEC_DESC_BUF *construct_default_printer_sdb(void)
|
||||
on the PDC of the domain. */
|
||||
|
||||
if (!winbind_lookup_name("Administrator", &owner_sid, &name_type)) {
|
||||
return NULL; /* Doh */
|
||||
/*
|
||||
* Backup - make owner the everyone sid. This may be a security
|
||||
* hole for print control .... check. JRA.
|
||||
*/
|
||||
sid_copy( &owner_sid, &global_sid_World);
|
||||
}
|
||||
|
||||
|
||||
|
||||
/* The ACL revision number in rpc_secdesc.h differs from the one
|
||||
created by NT when setting ACE entries in printer
|
||||
descriptors. NT4 complains about the property being edited by a
|
||||
|
Loading…
x
Reference in New Issue
Block a user