summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2004-08-19 15:27:07 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:58:12 -0500
commit011ff131f81a10ae124be8aefb053e57933f3f72 (patch)
treebeb736c8a6fd687162beda97a8128d3382ba2f37 /source4
parentb2f39d19e3f10f141752be98b41eb1c7622fa760 (diff)
downloadsamba-011ff131f81a10ae124be8aefb053e57933f3f72.tar.gz
samba-011ff131f81a10ae124be8aefb053e57933f3f72.tar.bz2
samba-011ff131f81a10ae124be8aefb053e57933f3f72.zip
r1928: give up on NT_STATUS_PASSWORD_RESTRICTION
(NOTE: this code pass isn't called yet, because pidl mixes the NTSTATUS of transport and request layer, and will be fixed soon) metze (This used to be commit 84c06d9ab0366772f71be088c53da9618e2555fe)
Diffstat (limited to 'source4')
-rw-r--r--source4/libnet/libnet_passwd.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source4/libnet/libnet_passwd.c b/source4/libnet/libnet_passwd.c
index c6ef7b7d3f..97c06e3efd 100644
--- a/source4/libnet/libnet_passwd.c
+++ b/source4/libnet/libnet_passwd.c
@@ -102,6 +102,9 @@ static NTSTATUS libnet_ChangePassword_rpc(struct libnet_context *ctx, TALLOC_CTX
r->rpc.in.domain_name, r->rpc.in.account_name,
nt_errstr(status));
/* TODO: give the reason of the reject */
+ if (NT_STATUS_EQUAL(status, NT_STATUS_PASSWORD_RESTRICTION)) {
+ goto disconnect;
+ }
goto ChangePasswordUser2;
}