Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 140 for reauth (0.08 seconds)

  1. src/test/java/jcifs/smb/SmbSessionInternalTest.java

        @Test
        @DisplayName("reauthenticate throws CIFSException when underlying call fails")
        void reauthenticate_throws() throws CIFSException {
            doThrow(new CIFSException("reauth failed")).when(session).reauthenticate();
            CIFSException ex = assertThrows(CIFSException.class, () -> session.reauthenticate());
            assertTrue(ex.getMessage().contains("failed"));
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 6.8K bytes
    - Click Count (0)
  2. src/main/java/jcifs/smb/SmbSessionImpl.java

                        request.setDigest(getDigest());
                    }
    
                    if (request instanceof RequestWithPath rpath) {
                        ((RequestWithPath) request).setFullUNCPath(getTargetDomain(), getTargetHost(), rpath.getFullUNCPath());
                    }
    
                    try {
                        if (log.isTraceEnabled()) {
                            log.trace("Request " + request);
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sun Aug 31 08:00:57 GMT 2025
    - 68.9K bytes
    - Click Count (0)
  3. src/test/java/jcifs/internal/smb2/Smb3KeyDerivationTest.java

        }
    
        @Test
        @DisplayName("Should derive unique keys for different preauth values")
        void testDeriveKeys_UniquePreauthValues() {
            // Given
            byte[] preauth1 = new byte[64];
            byte[] preauth2 = new byte[64];
            new SecureRandom().nextBytes(preauth1);
            new SecureRandom().nextBytes(preauth2);
            int dialect = Smb2Constants.SMB2_DIALECT_0311;
    
            // When
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 17.5K bytes
    - Click Count (0)
  4. src/main/java/jcifs/smb/PreauthIntegrityService.java

                if (enforceIntegrity) {
                    throw new CIFSException("No preauth integrity context found for session: " + sessionId);
                }
                log.warn("No preauth integrity context for session {}, skipping update", sessionId);
                return;
            }
    
            if (!context.isValid()) {
                throw new CIFSException("Preauth integrity context is invalid for session: " + sessionId);
            }
    
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sun Aug 31 08:00:57 GMT 2025
    - 12.1K bytes
    - Click Count (0)
  5. src/main/java/jcifs/internal/smb2/nego/PreauthIntegrityNegotiateContext.java

        private int[] hashAlgos;
        private byte[] salt;
    
        /**
         * Constructs a preauth integrity negotiate context with the specified parameters.
         *
         * @param config the SMB configuration
         * @param hashAlgos the supported hash algorithms
         * @param salt the salt value for preauth integrity
         */
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 4.4K bytes
    - Click Count (0)
  6. src/test/java/jcifs/internal/smb2/nego/NegotiateContextRequestTest.java

            void testDifferentContextTypes() {
                PreauthIntegrityNegotiateContext preauth = new PreauthIntegrityNegotiateContext();
                EncryptionNegotiateContext encryption = new EncryptionNegotiateContext();
    
                assertNotEquals(preauth.getContextType(), encryption.getContextType());
                assertEquals(0x1, preauth.getContextType());
                assertEquals(0x2, encryption.getContextType());
            }
    
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 18.8K bytes
    - Click Count (0)
  7. src/test/java/jcifs/internal/smb2/nego/Smb2NegotiateResponseTest.java

            assertNotNull(enc);
            assertTrue(enc instanceof EncryptionNegotiateContext);
    
            // Test preauth context
            NegotiateContextResponse preauth = Smb2NegotiateResponse.createContext(PreauthIntegrityNegotiateContext.NEGO_CTX_PREAUTH_TYPE);
            assertNotNull(preauth);
            assertTrue(preauth instanceof PreauthIntegrityNegotiateContext);
    
            // Test unknown context
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 32.5K bytes
    - Click Count (0)
  8. .github/workflows/tests.yml

              MYSQL_RANDOM_ROOT_PASSWORD: "yes"
            ports:
              - 9910:3306
            options: >-
              --health-cmd "mysqladmin ping -ugorm -pgorm"
              --health-interval 10s
              --health-start-period 10s
              --health-timeout 5s
              --health-retries 10
    
        steps:
        - name: Set up Go 1.x
          uses: actions/setup-go@v5
          with:
            go-version: ${{ matrix.go }}
    
    Created: Sun Apr 05 09:35:12 GMT 2026
    - Last Modified: Mon Mar 23 10:05:06 GMT 2026
    - 9K bytes
    - Click Count (0)
  9. src/main/java/jcifs/internal/smb1/com/SmbComTreeConnectAndX.java

            return 4;
        }
    
        @SuppressWarnings("deprecation")
        private static boolean isExternalAuth(final NtlmPasswordAuthenticator pwAuth) {
            return pwAuth instanceof jcifs.smb.NtlmPasswordAuthentication
                    && !((jcifs.smb.NtlmPasswordAuthentication) pwAuth).areHashesExternal() && pwAuth.getPassword().isEmpty();
        }
    
        @Override
        protected int writeBytesWireFormat(final byte[] dst, int dstIndex) {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 7.1K bytes
    - Click Count (0)
  10. src/test/java/jcifs/smb/PreauthIntegrityServiceTest.java

        }
    
        @AfterEach
        public void tearDown() {
            if (preauthService != null) {
                preauthService.cleanup();
            }
        }
    
        @Test
        @DisplayName("Test preauth salt generation")
        public void testPreauthSaltGeneration() {
            byte[] salt1 = preauthService.generatePreauthSalt();
            byte[] salt2 = preauthService.generatePreauthSalt();
    
            assertNotNull(salt1);
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sun Aug 31 08:00:57 GMT 2025
    - 11.1K bytes
    - Click Count (0)
Back to Top