Bug 14041 - samba-tool gpo should have refresh subcommand as well
Summary: samba-tool gpo should have refresh subcommand as well
Status: NEW
Alias: None
Product: Samba 4.1 and newer
Classification: Unclassified
Component: Tools (show other bugs)
Version: 4.10.4
Hardware: All All
: P5 normal (vote)
Target Milestone: ---
Assignee: Andrew Bartlett
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-07-15 04:50 UTC by Amit Kumar
Modified: 2020-02-10 14:17 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Amit Kumar 2019-07-15 04:50:07 UTC
This is the sequence followed:
a. Created gpo using samba-tool. GPO created successfully on AD.
# /usr/local/samba/bin/samba-tool gpo create empty-gpo-from-samba-tool -U Administrator
b. Deleted GPO manually from AD.
c. Fetching GPO using samba-tool.

1. Fetch GPO says does not exist
# /usr/local/samba/bin/samba-tool gpo fetch empty-gpo-from-samba-tool
ERROR: GPO 'empty-gpo-from-samba-tool' does not exist
  File "/usr/local/samba/lib64/python3.6/site-packages/samba/netcmd/gpo.py", line 989, in run
    msg = get_gpo_info(self.samdb, gpo)[0]

2. Create GPO says already exist
# /usr/local/samba/bin/samba-tool gpo create empty-gpo-from-samba-tool
...
ERROR: A GPO already existing with name 'empty-gpo-from-samba-tool'

Am I missing something or we need refresh for samba-tool as exists for 'net ads gpo'?