summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2010-07-08 15:58:12 +0200
committerGünther Deschner <gd@samba.org>2010-07-08 15:59:44 +0200
commit309ad2b08f2964c30fd71af027b7c94f5d761e4a (patch)
tree3bfafc2ab756bf0ecb9197fee71503e1304f6a46
parent10c60f237223f805566a66293418bd1cf04a8f5e (diff)
downloadsamba-309ad2b08f2964c30fd71af027b7c94f5d761e4a.tar.gz
samba-309ad2b08f2964c30fd71af027b7c94f5d761e4a.tar.bz2
samba-309ad2b08f2964c30fd71af027b7c94f5d761e4a.zip
s4-smbtorture: skip wbcChangeUserPassword test when no oldpass is set in environment.
Guenther
-rw-r--r--nsswitch/libwbclient/tests/wbclient.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/nsswitch/libwbclient/tests/wbclient.c b/nsswitch/libwbclient/tests/wbclient.c
index f3f45be561..e2b3794d06 100644
--- a/nsswitch/libwbclient/tests/wbclient.c
+++ b/nsswitch/libwbclient/tests/wbclient.c
@@ -601,6 +601,11 @@ static bool test_wbc_change_password(struct torture_context *tctx)
struct wbcChangePasswordParams params;
+ if (oldpass == NULL) {
+ torture_skip(tctx,
+ "skipping wbcChangeUserPassword test as old password cannot be retrieved\n");
+ }
+
ZERO_STRUCT(params);
E_md4hash(oldpass, old_nt_hash);