Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for DcerpcHandle (0.06 sec)

  1. src/main/java/jcifs/dcerpc/DcerpcHandle.java

        /**
         * Constructs a DcerpcHandle with the specified CIFS context
         *
         * @param tc
         *            the CIFS context for this handle
         */
        public DcerpcHandle(final CIFSContext tc) {
            this.transportContext = tc;
            this.binding = null;
        }
    
        /**
         * Constructs a DcerpcHandle with the specified CIFS context and binding
         *
         * @param tc
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 15.9K bytes
    - Viewed (0)
  2. src/main/java/jcifs/smb1/dcerpc/DcerpcHandle.java

     * This class manages DCE/RPC protocol bindings and communications over SMB transport.
     */
    public abstract class DcerpcHandle implements DcerpcConstants {
    
        /**
         * Default constructor for DcerpcHandle.
         * Initializes the DCE/RPC handle for protocol operations.
         */
        protected DcerpcHandle() {
            // Default constructor
        }
    
        /* Bindings are in the form:
         * proto:\\server[key1=val1,key2=val2]
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 11.7K bytes
    - Viewed (0)
  3. src/test/java/jcifs/dcerpc/DcerpcPipeHandleTest.java

            // Inject the binding using reflection
            Field bindingField = DcerpcHandle.class.getDeclaredField("binding");
            bindingField.setAccessible(true);
            bindingField.set(handle, mockDcerpcBinding);
    
            // Inject the CIFSContext using reflection
            Field tcField = DcerpcHandle.class.getDeclaredField("transportContext");
            tcField.setAccessible(true);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 21K bytes
    - Viewed (0)
  4. src/main/java/jcifs/smb/SIDCacheImpl.java

            }
        }
    
        void resolveSids0(final String authorityServerName, final CIFSContext tc, final jcifs.SID[] sids) throws CIFSException {
            synchronized (this.sidCache) {
                try (DcerpcHandle handle = DcerpcHandle.getHandle("ncacn_np:" + authorityServerName + "[\\PIPE\\lsarpc]", tc)) {
                    String server = authorityServerName;
                    final int dot = server.indexOf('.');
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Mon Aug 25 14:34:10 UTC 2025
    - 13.6K bytes
    - Viewed (0)
  5. src/test/java/jcifs/dcerpc/DcerpcHandleTest.java

    import jcifs.CIFSException;
    import jcifs.dcerpc.ndr.NdrBuffer;
    import jcifs.dcerpc.ndr.NdrException;
    
    /**
     * Comprehensive test suite for DcerpcHandle class
     * Tests binding parsing, handle creation, bind operations, and communication
     */
    @ExtendWith(MockitoExtension.class)
    @DisplayName("DcerpcHandle Test Suite")
    class DcerpcHandleTest {
    
        @Mock
        private CIFSContext mockContext;
    
        @Mock
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.3K bytes
    - Viewed (0)
  6. src/test/java/jcifs/smb/SIDCacheImplTest.java

            }
        }
    
        @Test
        @DisplayName("resolveSids(DcerpcHandle,...) populates acct, domain and type for known types")
        void resolveSids_populatesFields_happyPath() throws Exception {
            SIDCacheImpl cache = new SIDCacheImpl(mock(CIFSContext.class));
            DcerpcHandle handle = mock(DcerpcHandle.class);
            LsaPolicyHandle policy = mock(LsaPolicyHandle.class);
    
            // Prepare input SIDs
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14K bytes
    - Viewed (0)
  7. src/main/java/jcifs/smb/SmbEnumerationUtil.java

        /**
         *
         */
        private SmbEnumerationUtil() {
        }
    
        private static DcerpcHandle getHandle(final CIFSContext ctx, final SmbResourceLocator loc, final Address address, final String ep)
                throws MalformedURLException, DcerpcException {
            return DcerpcHandle.getHandle(String.format("ncacn_np:%s[endpoint=%s,address=%s]", loc.getServer(), ep, address.getHostAddress()),
                    ctx);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 12.3K bytes
    - Viewed (0)
  8. src/main/java/jcifs/smb1/smb1/SID.java

        static void resolveSids0(final String authorityServerName, final NtlmPasswordAuthentication auth, final SID[] sids) throws IOException {
            DcerpcHandle handle = null;
            LsaPolicyHandle policyHandle = null;
    
            synchronized (sid_cache) {
                try {
                    handle = DcerpcHandle.getHandle("ncacn_np:" + authorityServerName + "[\\PIPE\\lsarpc]", auth);
                    String server = authorityServerName;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 31.5K bytes
    - Viewed (0)
  9. src/main/java/jcifs/internal/witness/WitnessRpcClient.java

    import java.io.IOException;
    import java.net.InetAddress;
    import java.util.List;
    
    import org.slf4j.Logger;
    import org.slf4j.LoggerFactory;
    
    import jcifs.CIFSContext;
    import jcifs.dcerpc.DcerpcHandle;
    
    /**
     * Client implementation for the SMB Witness RPC protocol (MS-SWN).
     * Provides communication with witness servers for monitoring SMB resource availability.
     */
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 24 00:12:28 UTC 2025
    - 12.1K bytes
    - Viewed (0)
  10. docs/smb3-features/06-witness-protocol-design.md

    ### 4.4 Witness RPC Client
    ```java
    package jcifs.internal.witness;
    
    import jcifs.dcerpc.*;
    import jcifs.dcerpc.rpc.*;
    
    public class WitnessRpcClient implements AutoCloseable {
        private final DcerpcHandle handle;
        private final InetAddress serverAddress;
        private final CIFSContext context;
        
        // Witness RPC interface
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 02:53:50 UTC 2025
    - 42K bytes
    - Viewed (0)
Back to top