[PATCH] libads - Add net ads leave --keep-account option

Andreas Schneider asn at samba.org
Fri Jul 6 15:13:42 UTC 2018

On Friday, 6 July 2018 17:02:47 CEST Ralph Böhme via samba-technical wrote:
> On Fri, Jun 29, 2018 at 10:26:13AM -0400, Justin Stephenson via samba-
technical wrote:
> >Please see attached patch to add the --keep-account net ads leave argument,
> >allowing to leave the domain without removing the machine account object.
> I'm not sure I understand how the test can work. It uses local ldbsearch to
> check the account is still there after an net ads leave --keep-account. How
> can the ldbsearch work on a member?

439:plantestsuite("samba4.blackbox.net_ads(ad_dc:client)", "ad_dc:client", 
[os.path.join(bbdir, "test_net_ads.sh"), '$DC_SERVER', '$DC_USERNAME', 

The env is an 'ad_dc' client. So we have access to the ad_dc ldb files because 
we are in the matrix! ;-)

Better ideas to verify that the account exits are welcome.


Andreas Schneider                      asn at samba.org
Samba Team                             www.samba.org
GPG-ID:     8DFF53E18F2ABC8D8F3C92237EE0FC4DCC014E3D

More information about the samba-technical mailing list