/* 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]) { uint8_t auth_type; if (binding->flags & DCERPC_AUTH_SPNEGO) { auth_type = DCERPC_AUTH_TYPE_SPNEGO; } else { auth_type = DCERPC_AUTH_TYPE_NTLMSSP; } status = dcerpc_bind_auth_password(p, pipe_uuid, pipe_version, domain, username, password, auth_type, binding->authservice); } else { status = dcerpc_bind_auth_none(p, pipe_uuid, pipe_version); } if (NT_STATUS_IS_OK(status)) { printf("(incorrectly) allowed re-bind to uuid %s - %s\n", pipe_uuid, nt_errstr(status)); ret = False; } else { printf("\n"); ret = True; } talloc_free(mem_ctx); torture_rpc_close(p); return ret; }