r7204: Also fall back to different password set methods on WRITE_FAULT, as
authorAndrew Bartlett <abartlet@samba.org>
Fri, 3 Jun 2005 00:39:31 +0000 (00:39 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:17:26 +0000 (13:17 -0500)
NT4 apparently returns this.

Andrew Bartlett
(This used to be commit 06b1416c3162a525eac9626957dd3e4adf1d257e)

source4/libnet/libnet_passwd.c

index 9613df75f39e154b6214b5220254e0dd2d0082da..bd4d8fc26efc669038b9b6577f45414b548620bc 100644 (file)
@@ -481,7 +481,7 @@ static NTSTATUS libnet_SetPassword_samr_handle(struct libnet_context *ctx, TALLO
        for (i=0; i < ARRAY_SIZE(levels); i++) {
                r->generic.level = levels[i];
                status = libnet_SetPassword(ctx, mem_ctx, r);
-               if (!NT_STATUS_EQUAL(status, NT_STATUS_INVALID_INFO_CLASS)) {
+               if (!NT_STATUS_EQUAL(status, NT_STATUS_INVALID_INFO_CLASS) && !NT_STATUS_EQUAL(status, NT_STATUS_NET_WRITE_FAULT)) {
                        break;
                }
        }