Bug 36566 - idmap not initialized properly on RODC => sysvol permisions broken in domain
idmap not initialized properly on RODC => sysvol permisions broken in domain
Status: RESOLVED WONTFIX
Product: UCS
Classification: Unclassified
Component: Samba4
UCS 4.2
Other Linux
: P5 normal (vote)
: ---
Assigned To: Samba maintainers
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-11-11 13:17 CET by Arvid Requate
Modified: 2020-07-03 20:52 CEST (History)
1 user (show)

See Also:
What kind of report is it?: Bug Report
What type of bug is this?: 3: Simply Wrong: The implementation doesn't match the docu
Who will be affected by this bug?: 1: Will affect a very few installed domains
How will those affected feel about the bug?: 3: A User would likely not purchase the product
User Pain: 0.051
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional):
Max CVSS v3 score:
requate: Patch_Available+


Attachments
RODC_idmap_and_sysvol.patch (775 bytes, patch)
2014-11-11 15:55 CET, Arvid Requate
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Arvid Requate univentionstaff 2014-11-11 13:17:56 CET
In a new installation of UCS 4.0 with Samba/AD I discovered unresolvable POSIX IDs in the sysvol fACLs. This affected all DCs and RODCs in the domain. After running saba-tool ntacl sysvolreset the situation was fixed.

# file: var/lib/samba/sysvol/ar40pt2.qa/Policies//{6AC1786C-016F-11D2-945F-00C04FB984F9}/MACHINE
# owner: 3000004
# group: 3000004
user::rwx
user:3000002:rwx
user:3000003:r-x
group::rwx
group:3000004:rwx
group:3000011:rwx
group:3000013:r-x
mask::rwx
other::---
default:user::rwx
default:user:3000002:rwx
default:user:3000003:r-x
default:user:3000004:rwx
default:group::---
default:group:3000004:rwx
default:group:3000011:rwx
default:group:3000013:r-x
default:mask::rwx
default:other::--


Maybe it's due to the RODC, which still has these POSIX IDs in it's idmap.ldb:
===========================================================================
root@rodc54:~# ldbsearch -H /var/lib/samba/private/idmap.ldb xidnumber=3000004
WARNING: No path in service IPC$ - making it unavailable!
NOTE: Service IPC$ is flagged unavailable.
# record 1
dn: CN=S-1-5-32-545
cn: S-1-5-32-545
objectClass: sidMap
objectSid: S-1-5-32-545
type: ID_TYPE_BOTH
xidNumber: 3000004
distinguishedName: CN=S-1-5-32-545
===========================================================================


My current guess is, that we need to adjust the RODC cas in the univention-samba4 joinscript to also run

/usr/lib/univention-directory-listener/system/samba4-idmap.py --direct-resync 2>/dev/null

which is missing currently. After running it manually the idmap seems to be updated properly. At least we should also fix this here.
Comment 1 Arvid Requate univentionstaff 2014-11-11 15:55:10 CET
Created attachment 6347 [details]
RODC_idmap_and_sysvol.patch
Comment 2 Ingo Steuwer univentionstaff 2020-07-03 20:52:41 CEST
This issue has been filed against UCS 4.2.

UCS 4.2 is out of maintenance and many UCS components have changed in later releases. Thus, this issue is now being closed.

If this issue still occurs in newer UCS versions, please use "Clone this bug" or reopen it and update the UCS version. In this case please provide detailed information on how this issue is affecting you.