s4-smbtorture: skip wbcChangeUserPassword test when no oldpass is set in environment.
[kamenim/samba.git] / nsswitch / libwbclient / tests / wbclient.c
index f3f45be561760435a2afa04090d48c63bfcbdd85..e2b3794d06f97381c49b1abccd2ddd894eb8b84d 100644 (file)
@@ -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);