Bug 13555 - samba_gpoupdate case-sensitively checks for GPT.INI
Summary: samba_gpoupdate case-sensitively checks for GPT.INI
Status: RESOLVED FIXED
Alias: None
Product: Samba 4.1 and newer
Classification: Unclassified
Component: Tools (show other bugs)
Version: 4.8.3
Hardware: All All
: P5 normal (vote)
Target Milestone: ---
Assignee: Andrew Bartlett
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-08-02 01:44 UTC by Alex MacCuish
Modified: 2021-03-09 17:45 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alex MacCuish 2018-08-02 01:44:06 UTC
For some reason, my Policies folder as GPOs with a mix of GPT.INI and gpt.ini (different cases). samba_gpoupdate only looks for GPT.INI (uppercase), and therefore fails with file not found on lower case varients. My temp workaround was simply to rename all gpt.inis to uppercase.

Error is:

Traceback (most recent call last):
  File "/usr/local/samba/sbin/samba_gpoupdate", line 177, in <module>
    apply_gp(lp, creds, test_ldb, logger, store, gp_extensions)
  File "/usr/local/samba/sbin/samba_gpoupdate", line 77, in apply_gp
    version = int(gpo.gpo_get_sysvol_gpt_version(local_path)[1])
samba.NTSTATUSError: (3221225487, '{File Not Found} The file %hs does not exist.')
Comment 1 David Mulder 2021-03-09 17:45:02 UTC
This was fixed in 57faf35cf836e675e088b3a6e6e455c1309fd4ea