Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for withTestNTLMCredentials (0.26 sec)

  1. src/test/java/jcifs/tests/ReadWriteTest.java

            try ( SmbNamedPipe s = new SmbNamedPipe(getFifoPipeUrl(), SmbPipeResource.PIPE_TYPE_WRONLY, withTestNTLMCredentials(getContext()));
                  SmbNamedPipe t = new SmbNamedPipe(getFifoPipeUrl(), SmbPipeResource.PIPE_TYPE_RDONLY, withTestNTLMCredentials(getContext())) ) {
                try ( SmbPipeHandle sp = s.openPipe();
                      SmbPipeHandle tp = t.openPipe() ) {
    Java
    - Registered: Sun Apr 21 00:10:10 GMT 2024
    - Last Modified: Sun Jul 01 13:12:10 GMT 2018
    - 13.2K bytes
    - Viewed (0)
  2. src/test/java/jcifs/tests/SidTest.java

            String sid = getRequiredProperty(TestProperties.TEST_USER_SID);
            SID s = new SID(sid);
            s.resolve(getRequiredProperty(TestProperties.TEST_DOMAIN_DC), withTestNTLMCredentials(getContext()));
            assertEquals(getRequiredProperty(TestProperties.TEST_USER_DOMAIN_SHORT), s.getDomainName());
            assertEquals(getTestUser(), s.getAccountName());
    Java
    - Registered: Sun Apr 21 00:10:10 GMT 2024
    - Last Modified: Sun Jul 01 13:12:10 GMT 2018
    - 4.1K bytes
    - Viewed (0)
  3. src/test/java/jcifs/tests/DfsTest.java

            }
        }
    
    
        @Test
        public void resolveDomains () throws CIFSException {
            CIFSContext context = getContext();
            context = withTestNTLMCredentials(context);
            DfsResolver dfs = context.getDfs();
    
            String testDomain = getTestDomain();
            assertTrue(dfs.isTrustedDomain(context, testDomain));
    Java
    - Registered: Sun Apr 21 00:10:10 GMT 2024
    - Last Modified: Sun Mar 01 09:46:04 GMT 2020
    - 13.5K bytes
    - Viewed (0)
  4. src/test/java/jcifs/tests/EnumTest.java

            }
        }
    
    
        @Test
        public void testShareEnum () throws MalformedURLException, CIFSException {
            try ( SmbFile smbFile = new SmbFile("smb://" + getTestServer(), withTestNTLMCredentials(getContext())) ) {
                String[] list = smbFile.list();
                assertNotNull(list);
                assertTrue("No share found", list.length > 0);
                log.debug(Arrays.toString(list));
            }
    Java
    - Registered: Sun Apr 21 00:10:10 GMT 2024
    - Last Modified: Thu Jan 05 13:09:03 GMT 2023
    - 25.5K bytes
    - Viewed (0)
  5. src/test/java/jcifs/tests/SessionTest.java

                log.error("Exception", e);
                throw e;
            }
        }
    
    
        @Test
        public void transportReuseSimple () throws CIFSException {
            CIFSContext ctx = withTestNTLMCredentials(getContext());
            String loc = getTestShareURL();
            try ( SmbResource f1 = ctx.get(loc) ) {
                f1.exists();
                try ( SmbResource f2 = ctx.get(loc) ) {
                    f2.exists();
    Java
    - Registered: Sun Apr 21 00:10:10 GMT 2024
    - Last Modified: Thu Jan 05 13:09:03 GMT 2023
    - 15.8K bytes
    - Viewed (0)
  6. src/test/java/jcifs/tests/PipeTest.java

        }
    
    
        @Test
        public void testSRVS () throws DcerpcException, IOException {
            try ( DcerpcHandle handle = DcerpcHandle
                    .getHandle("ncacn_np:" + getTestServer() + "[\\PIPE\\srvsvc]", withTestNTLMCredentials(getContext())) ) {
                MsrpcShareEnum rpc = new MsrpcShareEnum(handle.getServerWithDfs());
                handle.sendrecv(rpc);
                assertEquals(0, rpc.retval);
            }
        }
    
    
        @Test
    Java
    - Registered: Sun Apr 21 00:10:10 GMT 2024
    - Last Modified: Sun Jul 01 13:12:10 GMT 2018
    - 3.4K bytes
    - Viewed (0)
  7. src/test/java/jcifs/tests/BaseCIFSTest.java

        protected SmbFile getDefaultShareRoot () throws MalformedURLException {
            return new SmbFile(getTestShareURL(), withTestNTLMCredentials(getContext()));
        }
    
    
        protected SmbResource getDefaultShareRoot ( CIFSContext ctx ) throws MalformedURLException {
            return new SmbFile(getTestShareURL(), withTestNTLMCredentials(ctx));
        }
    
    
        protected void checkConnection ( SmbResource f ) throws CIFSException {
    Java
    - Registered: Sun Apr 21 00:10:10 GMT 2024
    - Last Modified: Sun Jul 01 13:12:10 GMT 2018
    - 8.1K bytes
    - Viewed (0)
  8. src/test/java/jcifs/tests/TimeoutTest.java

    
        @Test
        public void testTimeoutOpenFile () throws IOException, InterruptedException {
            // use separate context here as the settings stick to the transport
            CIFSContext ctx = lowTimeout(withTestNTLMCredentials(getNewContext()));
            try ( SmbFile f = new SmbFile(new SmbFile(getTestShareURL(), ctx), makeRandomName()) ) {
                int soTimeout = ctx.getConfig().getSoTimeout();
                f.createNewFile();
    Java
    - Registered: Sun Apr 21 00:10:10 GMT 2024
    - Last Modified: Sun Jul 01 13:12:10 GMT 2018
    - 12.4K bytes
    - Viewed (0)
  9. src/test/java/jcifs/tests/OplockTests.java

            return getConfigs("smb1", "smb2", "smb30", "smb31");
        }
    
    
        @Test
        public void testOpenOplocked () throws UnknownHostException, IOException {
            CIFSContext c = getContext();
            c = withTestNTLMCredentials(c);
            try ( SmbTransportInternal trans = c.getTransportPool().getSmbTransport(c, getTestServer(), 0, false, true)
                    .unwrap(SmbTransportInternal.class);
    Java
    - Registered: Sun Apr 21 00:10:10 GMT 2024
    - Last Modified: Thu Jan 05 13:09:03 GMT 2023
    - 6.1K bytes
    - Viewed (0)
  10. src/test/java/jcifs/tests/ConcurrencyTest.java

                        e.printStackTrace();
                    }
                }
            });
    
            try {
                CIFSContext c = getContext();
                c = withTestNTLMCredentials(c);
                try ( SmbTransportInternal trans = c.getTransportPool().getSmbTransport(c, getTestServer(), 0, false, true)
                        .unwrap(SmbTransportInternal.class);
    Java
    - Registered: Sun Apr 21 00:10:10 GMT 2024
    - Last Modified: Sun Nov 14 17:40:50 GMT 2021
    - 17.6K bytes
    - Viewed (0)
Back to top