summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2009-04-30 23:37:26 +0200
committerGünther Deschner <gd@samba.org>2009-04-30 23:40:09 +0200
commitab4b8c9c0438bc5afca17e3ebf05dde6f98bc0aa (patch)
treefe3ad7880959252f52a8e0e67684a5cba73db12a /source3
parent26b9c9370ce047ecc732082b2b554ffc295ae406 (diff)
downloadsamba-ab4b8c9c0438bc5afca17e3ebf05dde6f98bc0aa.tar.gz
samba-ab4b8c9c0438bc5afca17e3ebf05dde6f98bc0aa.tar.bz2
samba-ab4b8c9c0438bc5afca17e3ebf05dde6f98bc0aa.zip
s3-netapi: Fix Bug #6309: support remote unjoining of Windows 2003 or greater.
Found by David Markey <admin@dmarkey.com>. Thanks! Guenther
Diffstat (limited to 'source3')
-rw-r--r--source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c3
-rw-r--r--source3/utils/net_dom.c3
2 files changed, 4 insertions, 2 deletions
diff --git a/source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c b/source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c
index 8164b7456b..629a447a24 100644
--- a/source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c
+++ b/source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c
@@ -655,7 +655,8 @@ static void callback_do_join(GtkWidget *widget,
unjoin_creds_required = TRUE;
join_creds_required = FALSE;
unjoin_flags = NETSETUP_JOIN_DOMAIN |
- NETSETUP_ACCT_DELETE;
+ NETSETUP_ACCT_DELETE |
+ NETSETUP_IGNORE_UNSUPPORTED_FLAGS;
}
if (try_unjoin) {
diff --git a/source3/utils/net_dom.c b/source3/utils/net_dom.c
index 132630de55..3bf6a27289 100644
--- a/source3/utils/net_dom.c
+++ b/source3/utils/net_dom.c
@@ -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;