public SamrAliasHandle(DcerpcHandle handle, SamrDomainHandle domainHandle, int access, int rid) throws IOException { MsrpcSamrOpenAlias rpc = new MsrpcSamrOpenAlias(domainHandle, access, rid, this); handle.sendrecv(rpc); if (rpc.retval != 0) throw new SmbException(rpc.retval, false); }
public SamrDomainHandle(DcerpcHandle handle, SamrPolicyHandle policyHandle, int access, rpc.sid_t sid) throws IOException { MsrpcSamrOpenDomain rpc = new MsrpcSamrOpenDomain(policyHandle, access, sid, this); handle.sendrecv(rpc); if (rpc.retval != 0) throw new SmbException(rpc.retval, false); }
public LsaPolicyHandle ( DcerpcHandle handle, String server, int access ) throws IOException { this.handle = handle; if ( server == null ) { server = "\\\\"; } MsrpcLsarOpenPolicy2 rpc = new MsrpcLsarOpenPolicy2(server, access, this); handle.sendrecv(rpc); if ( rpc.retval != 0 ) { throw new SmbException(rpc.retval, false); } this.opened = true; }
public SamrAliasHandle(DcerpcHandle handle, SamrDomainHandle domainHandle, int access, int rid) throws IOException { MsrpcSamrOpenAlias rpc = new MsrpcSamrOpenAlias(domainHandle, access, rid, this); handle.sendrecv(rpc); if (rpc.retval != 0) throw new SmbException(rpc.retval, false); }
public LsaPolicyHandle(DcerpcHandle handle, String server, int access) throws IOException { if (server == null) server = "\\\\"; MsrpcLsarOpenPolicy2 rpc = new MsrpcLsarOpenPolicy2(server, access, this); handle.sendrecv(rpc); if (rpc.retval != 0) throw new SmbException(rpc.retval, false); }
public LsaPolicyHandle(DcerpcHandle handle, String server, int access) throws IOException { if (server == null) server = "\\\\"; MsrpcLsarOpenPolicy2 rpc = new MsrpcLsarOpenPolicy2(server, access, this); handle.sendrecv(rpc); if (rpc.retval != 0) throw new SmbException(rpc.retval, false); }
public SamrDomainHandle ( DcerpcHandle handle, SamrPolicyHandle policyHandle, int access, rpc.sid_t sid ) throws IOException { this.handle = handle; MsrpcSamrOpenDomain rpc = new MsrpcSamrOpenDomain(policyHandle, access, sid, this); handle.sendrecv(rpc); if ( rpc.retval != 0 ) { throw new SmbException(rpc.retval, false); } this.opened = true; }
public SamrAliasHandle ( DcerpcHandle handle, SamrDomainHandle domainHandle, int access, int rid ) throws IOException { this.handle = handle; MsrpcSamrOpenAlias rpc = new MsrpcSamrOpenAlias(domainHandle, access, rid, this); handle.sendrecv(rpc); if ( rpc.retval != 0 ) { throw new SmbException(rpc.retval, false); } this.opened = true; }
@Override public synchronized void close () throws IOException { if ( this.opened ) { this.opened = false; MsrpcSamrCloseHandle rpc = new MsrpcSamrCloseHandle(this); this.handle.sendrecv(rpc); if ( rpc.retval != 0 ) { throw new SmbException(rpc.retval, false); } } } }
@Override public synchronized void close () throws IOException { if ( this.opened ) { this.opened = false; MsrpcSamrCloseHandle rpc = new MsrpcSamrCloseHandle(this); this.handle.sendrecv(rpc); if ( rpc.retval != 0 ) { throw new SmbException(rpc.retval, false); } } } }
public SamrAliasHandle(DcerpcHandle handle, SamrDomainHandle domainHandle, int access, int rid) throws IOException { MsrpcSamrOpenAlias rpc = new MsrpcSamrOpenAlias(domainHandle, access, rid, this); handle.sendrecv(rpc); if (rpc.retval != 0) throw new SmbException(rpc.retval, false); }
public SamrDomainHandle(DcerpcHandle handle, SamrPolicyHandle policyHandle, int access, rpc.sid_t sid) throws IOException { MsrpcSamrOpenDomain rpc = new MsrpcSamrOpenDomain(policyHandle, access, sid, this); handle.sendrecv(rpc); if (rpc.retval != 0) throw new SmbException(rpc.retval, false); }
public SamrDomainHandle ( DcerpcHandle handle, SamrPolicyHandle policyHandle, int access, rpc.sid_t sid ) throws IOException { this.handle = handle; MsrpcSamrOpenDomain rpc = new MsrpcSamrOpenDomain(policyHandle, access, sid, this); handle.sendrecv(rpc); if ( rpc.retval != 0 ) { throw new SmbException(rpc.retval, false); } this.opened = true; }
@Override public synchronized void close () throws IOException { if ( this.opened ) { this.opened = false; MsrpcLsarClose rpc = new MsrpcLsarClose(this); this.handle.sendrecv(rpc); if ( rpc.retval != 0 ) { throw new SmbException(rpc.retval, false); } } } }
public LsaPolicyHandle(DcerpcHandle handle, String server, int access) throws IOException { if (server == null) server = "\\\\"; MsrpcLsarOpenPolicy2 rpc = new MsrpcLsarOpenPolicy2(server, access, this); handle.sendrecv(rpc); if (rpc.retval != 0) throw new SmbException(rpc.retval, false); }
public SamrDomainHandle(DcerpcHandle handle, SamrPolicyHandle policyHandle, int access, rpc.sid_t sid) throws IOException { MsrpcSamrOpenDomain rpc = new MsrpcSamrOpenDomain(policyHandle, access, sid, this); handle.sendrecv(rpc); if (rpc.retval != 0) throw new SmbException(rpc.retval, false); }
@Override public synchronized void close () throws IOException { if ( this.opened ) { this.opened = false; samr.SamrCloseHandle rpc = new MsrpcSamrCloseHandle(this); this.handle.sendrecv(rpc); if ( rpc.retval != 0 ) { throw new SmbException(rpc.retval, false); } } } }
@Override public synchronized void close () throws IOException { if ( this.opened ) { this.opened = false; MsrpcLsarClose rpc = new MsrpcLsarClose(this); this.handle.sendrecv(rpc); if ( rpc.retval != 0 ) { throw new SmbException(rpc.retval, false); } } } }
static FileEntry[] doMsrpcShareEnum ( CIFSContext ctx, SmbResourceLocator loc, Address address ) throws IOException { try ( DcerpcHandle handle = DcerpcHandle.getHandle("ncacn_np:" + getRPCTarget(ctx, loc, address) + "[\\PIPE\\srvsvc]", ctx) ) { MsrpcShareEnum rpc = new MsrpcShareEnum(loc.getServer()); handle.sendrecv(rpc); if ( rpc.retval != 0 ) { throw new SmbException(rpc.retval, true); } return rpc.getEntries(); } }
static FileEntry[] doDfsRootEnum ( CIFSContext ctx, SmbResourceLocator loc, Address address ) throws IOException { try ( DcerpcHandle handle = DcerpcHandle.getHandle("ncacn_np:" + getRPCTarget(ctx, loc, address) + "[\\PIPE\\netdfs]", ctx) ) { MsrpcDfsRootEnum rpc = new MsrpcDfsRootEnum(loc.getServer()); handle.sendrecv(rpc); if ( rpc.retval != 0 ) { throw new SmbException(rpc.retval, true); } return rpc.getEntries(); } }