s3-netapi: Fix Bug #6309: support remote unjoining of Windows 2003 or greater.
[ira/wip.git] / source3 / utils / net_dom.c
index 132630de554fe8e19b685cddf524e873aaf94902..3bf6a27289ab6890c9101b24573f5915ce3f2f3a 100644 (file)
@@ -38,7 +38,8 @@ static int net_dom_unjoin(struct net_context *c, int argc, const char **argv)
        const char *account = NULL;
        const char *password = NULL;
        uint32_t unjoin_flags = NETSETUP_ACCT_DELETE |
-                               NETSETUP_JOIN_DOMAIN;
+                               NETSETUP_JOIN_DOMAIN |
+                               NETSETUP_IGNORE_UNSUPPORTED_FLAGS;
        struct cli_state *cli = NULL;
        bool do_reboot = false;
        NTSTATUS ntstatus;