public DcerpcPipeHandle(String url, SmbExtendedAuthenticator auth) throws UnknownHostException, MalformedURLException, DcerpcException { url = init(url); pipe = new SmbNamedPipe(url, pipeFlags, auth); }
public DcerpcPipeHandle(String url, NtlmPasswordAuthentication auth) throws UnknownHostException, MalformedURLException, DcerpcException { url = init(url); pipe = new SmbNamedPipe(url, pipeFlags, auth); }
/** * * {@inheritDoc} * * @see jcifs.CIFSContext#getPipe(java.lang.String, int) */ @Override public SmbPipeResource getPipe ( String url, int pipeType ) throws CIFSException { try { return new SmbNamedPipe(url, pipeType, this); } catch ( MalformedURLException e ) { throw new CIFSException("Invalid URL " + url, e); } }
/** * * {@inheritDoc} * * @see jcifs.CIFSContext#getPipe(java.lang.String, int) */ @Override public SmbPipeResource getPipe ( String url, int pipeType ) throws CIFSException { try { return new SmbNamedPipe(url, pipeType, this); } catch ( MalformedURLException e ) { throw new CIFSException("Invalid URL " + url, e); } }
/** * * {@inheritDoc} * * @see jcifs.CIFSContext#getPipe(java.lang.String, int) */ @Override public SmbPipeResource getPipe ( String url, int pipeType ) throws CIFSException { try { return new SmbNamedPipe(url, pipeType, this); } catch ( MalformedURLException e ) { throw new CIFSException("Invalid URL " + url, e); } }
/** * * {@inheritDoc} * * @see jcifs.CIFSContext#getPipe(java.lang.String, int) */ @Override public SmbPipeResource getPipe ( String url, int pipeType ) throws CIFSException { try { return new SmbNamedPipe(url, pipeType, this); } catch ( MalformedURLException e ) { throw new CIFSException("Invalid URL " + url, e); } }
public DcerpcPipeHandle(String url, NtlmPasswordAuthentication auth) throws UnknownHostException, MalformedURLException, DcerpcException { binding = DcerpcHandle.parseBinding(url); url = "smb://" + binding.server + "/IPC$/" + binding.endpoint.substring(6); String params = "", server, address; server = (String)binding.getOption("server"); if (server != null) params += "&server=" + server; address = (String)binding.getOption("address"); if (server != null) params += "&address=" + address; if (params.length() > 0) url += "?" + params.substring(1); pipe = new SmbNamedPipe(url, /* This 0x20000 bit is going to get chopped! */ (0x2019F << 16) | SmbNamedPipe.PIPE_TYPE_RDWR | SmbNamedPipe.PIPE_TYPE_DCE_TRANSACT, auth); }
public DcerpcPipeHandle(String url, NtlmPasswordAuthentication auth) throws UnknownHostException, MalformedURLException, DcerpcException { binding = DcerpcHandle.parseBinding(url); url = "smb://" + binding.server + "/IPC$/" + binding.endpoint.substring(6); String params = "", server, address; server = (String)binding.getOption("server"); if (server != null) params += "&server=" + server; address = (String)binding.getOption("address"); if (server != null) params += "&address=" + address; if (params.length() > 0) url += "?" + params.substring(1); pipe = new SmbNamedPipe(url, /* This 0x20000 bit is going to get chopped! */ (0x2019F << 16) | SmbNamedPipe.PIPE_TYPE_RDWR | SmbNamedPipe.PIPE_TYPE_DCE_TRANSACT, auth); }
public DcerpcPipeHandle(String url, NtlmPasswordAuthentication auth) throws UnknownHostException, MalformedURLException, DcerpcException { binding = DcerpcHandle.parseBinding(url); url = "smb://" + binding.server + "/IPC$/" + binding.endpoint.substring(6); String params = "", server, address; server = (String)binding.getOption("server"); if (server != null) params += "&server=" + server; address = (String)binding.getOption("address"); if (server != null) params += "&address=" + address; if (params.length() > 0) url += "?" + params.substring(1); pipe = new SmbNamedPipe(url, /* This 0x20000 bit is going to get chopped! */ (0x2019F << 16) | SmbNamedPipe.PIPE_TYPE_RDWR | SmbNamedPipe.PIPE_TYPE_DCE_TRANSACT, auth); }
/** * @param url * @param tc * @param unshared * @throws DcerpcException * @throws MalformedURLException */ public DcerpcPipeHandle ( String url, CIFSContext tc, boolean unshared ) throws DcerpcException, MalformedURLException { super(tc, DcerpcHandle.parseBinding(url)); this.pipe = new SmbNamedPipe(makePipeUrl(), pipeFlags, unshared, tc); this.handle = this.pipe.openPipe().unwrap(SmbPipeHandleInternal.class); }
/** * @param url * @param tc * @param unshared * @throws DcerpcException * @throws MalformedURLException */ public DcerpcPipeHandle ( String url, CIFSContext tc, boolean unshared ) throws DcerpcException, MalformedURLException { super(tc, DcerpcHandle.parseBinding(url)); this.pipe = new SmbNamedPipe(makePipeUrl(), pipeFlags, unshared, tc); this.handle = this.pipe.openPipe().unwrap(SmbPipeHandleInternal.class); }
public Endpoint attach(PresentationSyntax syntax) throws IOException { if (attached) throw new RpcException("Transport already attached."); //with the first flag an access denied exception occurs //with the second one file not found. so changing code here. /*pipe = new SmbNamedPipe(address, (0x2019f << 16) | SmbNamedPipe.PIPE_TYPE_RDWR | SmbNamedPipe.PIPE_TYPE_DCE_TRANSACT); * */ pipe = new SmbNamedPipe(address, SmbNamedPipe.PIPE_TYPE_DCE_TRANSACT); in2 = pipe.getInputStream(); out = pipe.getNamedPipeOutputStream(); in = pipe.getNamedPipeInputStream(); attached = true; return new ConnectionOrientedEndpoint(this, syntax); }
public Endpoint attach(PresentationSyntax syntax) throws IOException { if (attached) throw new RpcException("Transport already attached."); //with the first flag an access denied exception occurs //with the second one file not found. so changing code here. /*pipe = new SmbNamedPipe(address, (0x2019f << 16) | SmbNamedPipe.PIPE_TYPE_RDWR | SmbNamedPipe.PIPE_TYPE_DCE_TRANSACT); * */ pipe = new SmbNamedPipe(address, SmbNamedPipe.PIPE_TYPE_DCE_TRANSACT); in2 = pipe.getInputStream(); out = pipe.getNamedPipeOutputStream(); in = pipe.getNamedPipeInputStream(); attached = true; return new ConnectionOrientedEndpoint(this, syntax); }
public Endpoint attach ( PresentationSyntax syntax ) throws IOException { if ( attached ) throw new RpcException ( "Transport already attached." ); //with the first flag an access denied exception occurs //with the second one file not found. so changing code here. /*pipe = new SmbNamedPipe(address, (0x2019f << 16) | SmbNamedPipe.PIPE_TYPE_RDWR | SmbNamedPipe.PIPE_TYPE_DCE_TRANSACT); * */ pipe = new SmbNamedPipe ( address, SmbNamedPipe.PIPE_TYPE_DCE_TRANSACT ); in2 = pipe.getInputStream (); out = pipe.getNamedPipeOutputStream (); in = pipe.getNamedPipeInputStream (); attached = true; return new ConnectionOrientedEndpoint ( this, syntax ); }
url.append(namedPipePath); setPipe(new SmbNamedPipe(url.toString(), SmbNamedPipe.PIPE_TYPE_RDWR, auth));