Bug 13326 - gpo: samba_gpoupdate --unapply only works the first try
gpo: samba_gpoupdate --unapply only works the first try
Status: NEW
Product: Samba 4.1 and newer
Classification: Unclassified
Component: Other
4.8.0rc2
All All
: P5 minor
: ---
Assigned To: Andrew Bartlett
Samba QA Contact
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2018-03-12 20:02 UTC by David Mulder
Modified: 2018-03-12 20:02 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.