Bug 13326 - gpo: samba_gpoupdate --unapply only works the first try
Summary: gpo: samba_gpoupdate --unapply only works the first try
Status: RESOLVED FIXED
Alias: None
Product: Samba 4.1 and newer
Classification: Unclassified
Component: Other (show other bugs)
Version: 4.8.0rc2
Hardware: All All
: P5 minor (vote)
Target Milestone: ---
Assignee: Andrew Bartlett
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-03-12 20:02 UTC by David Mulder
Modified: 2020-08-24 18:47 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 David Mulder 2018-03-12 20:02:38 UTC
Applying policy, unapply, apply again, then the unapply no longer works.

The gplog looks like this after the first apply:
key(11) = "TUMBLE-CLI$"
data(393) = "<gp><user name=\22TUMBLE-CLI$\22><guid value=\22{BA9AB417-E384-4A80-888F-9F31966E1AF3}\22 /><applylog><guid count=\220\22 value=\22{BA9AB417-E384-4A80-888F-9F31966E1AF3}\22 /><guid count=\221\22 value=\22{31B2F340-016D-11D2-945F-00C04FB984F9}\22 /></applylog><guid value=\22{31B2F340-016D-11D2-945F-00C04FB984F9}\22><gp_ext name=\22Environment\22><attribute name=\22BLAH\22 /><attribute name=\22TADA\22 /></gp_ext></guid></user></gp>"

And after an unapply:
key(11) = "TUMBLE-CLI$"
data(163) = "<gp><user name=\22TUMBLE-CLI$\22><guid value=\22{BA9AB417-E384-4A80-888F-9F31966E1AF3}\22 /><applylog /><guid value=\22{31B2F340-016D-11D2-945F-00C04FB984F9}\22 /></user></gp>"

Then after a subsequent apply:
key(11) = "TUMBLE-CLI$"
data(237) = "<gp><user name=\22TUMBLE-CLI$\22><guid value=\22{BA9AB417-E384-4A80-888F-9F31966E1AF3}\22 /><applylog><guid count=\220\22 value=\22{BA9AB417-E384-4A80-888F-9F31966E1AF3}\22 /></applylog><guid value=\22{31B2F340-016D-11D2-945F-00C04FB984F9}\22 /></user></gp>"

The log is missing, and unapply no longer works.