summaryrefslogtreecommitdiffstats
path: root/source/libsmb
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2002-01-11 04:50:45 +0000
committerAndrew Bartlett <abartlet@samba.org>2002-01-11 04:50:45 +0000
commitab8ff85f03b25a0dfe4ab63886a10da81207393c (patch)
tree468844b6bd6073f6197e5051fc5e864687209c54 /source/libsmb
parentda4db0373b65d975d5129715d6b1fa725b188766 (diff)
downloadsamba-ab8ff85f03b25a0dfe4ab63886a10da81207393c.tar.gz
samba-ab8ff85f03b25a0dfe4ab63886a10da81207393c.tar.xz
samba-ab8ff85f03b25a0dfe4ab63886a10da81207393c.zip
Fix up 'net ads join' to delete and rejoin if the account already exists.
This fixes up a problem where a machine would join (or downgrade by trust password change) to NT4 membership and not be able to regain full ADS membership until a 'net ads leave'. Andrew Bartlett
Diffstat (limited to 'source/libsmb')
-rw-r--r--source/libsmb/cliconnect.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/libsmb/cliconnect.c b/source/libsmb/cliconnect.c
index a3b22485cf7..7649a88ffdd 100644
--- a/source/libsmb/cliconnect.c
+++ b/source/libsmb/cliconnect.c
@@ -1257,7 +1257,7 @@ again:
if (!cli_negprot(cli))
{
DEBUG(1,("failed negprot\n"));
- nt_status = cli_nt_error(cli);
+ nt_status = NT_STATUS_UNSUCCESSFUL;
cli_shutdown(cli);
return nt_status;
}