/* Unix SMB/CIFS implementation. dcerpc torture tests Copyright (C) Andrew Tridgell 2003 Copyright (C) Andrew Bartlett flags & DCERPC_SCHANNEL_ANY)) { status = dcerpc_bind_auth_schannel(p, pipe_uuid, pipe_version, domain, username, password); } else if (username && username[0] && (binding->flags & (DCERPC_SIGN | DCERPC_SEAL))) { status = dcerpc_bind_auth_ntlm(p, pipe_uuid, pipe_version, domain, username, password); } else { status = dcerpc_bind_auth_none(p, pipe_uuid, pipe_version); } if (NT_STATUS_IS_OK(status)) { DEBUG(0,("(incorrectly) allowed re-bind to uuid %s - %s\n", pipe_uuid, nt_errstr(status))); ret = False; } else { ret = True; } printf("\n"); talloc_destroy(mem_ctx); torture_rpc_close(p); return ret; }