Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for Truong (0.25 sec)

  1. src/main/java/jcifs/smb/DfsImpl.java

            }
            if ( this._domains != null )
                return this._domains.map;
            try {
                String authDomain = tf.getCredentials().getUserDomain();
                // otherwise you end up with a wrong server name for kerberos
                // seems to be correct according to
                // https://lists.samba.org/archive/samba-technical/2009-August/066486.html
    Java
    - Registered: Sun Apr 28 00:10:09 GMT 2024
    - Last Modified: Thu Jan 05 13:07:29 GMT 2023
    - 29.1K bytes
    - Viewed (0)
  2. src/test/java/jcifs/tests/SessionTest.java

                }
            }
        }
    
    
        @Test
        public void testAuthErrorNoConnLeak () throws Exception {
            CIFSContext cifsContext = getNewContext().withCredentials(new NtlmPasswordAuthenticator("wrong", "wrong", "wrong"));
            try ( SmbFile f = new SmbFile("smb://" + getTestServer() + "/IPC$/test", cifsContext); ) {
                f.connect();
                assertFalse(true);
            }
            catch ( SmbAuthException e ) {
    Java
    - Registered: Sun Apr 28 00:10:09 GMT 2024
    - Last Modified: Thu Jan 05 13:09:03 GMT 2023
    - 15.8K bytes
    - Viewed (0)
  3. src/main/java/jcifs/internal/smb2/ServerMessageBlock2Request.java

            int len = super.encode(dst, dstIndex);
            int exp = size();
            int actual = getLength();
            if ( exp != actual ) {
                throw new IllegalStateException(String.format("Wrong size calculation have %d expect %d", exp, actual));
            }
            return len;
        }
    
    
        /**
         * {@inheritDoc}
         *
         * @see jcifs.internal.smb2.ServerMessageBlock2#getResponse()
    Java
    - Registered: Sun Apr 28 00:10:09 GMT 2024
    - Last Modified: Sun Jul 01 13:12:10 GMT 2018
    - 6.2K bytes
    - Viewed (0)
  4. src/main/java/jcifs/smb/NtStatus.java

        public static final int NT_STATUS_USER_EXISTS = 0xC0000063;
        public static final int NT_STATUS_NO_SUCH_USER = 0xC0000064;
        public static final int NT_STATUS_WRONG_PASSWORD = 0xC000006a;
        public static final int NT_STATUS_LOGON_FAILURE = 0xC000006d;
        public static final int NT_STATUS_ACCOUNT_RESTRICTION = 0xC000006e;
        public static final int NT_STATUS_INVALID_LOGON_HOURS = 0xC000006f;
    Java
    - Registered: Sun Apr 28 00:10:09 GMT 2024
    - Last Modified: Sat Jun 01 10:09:29 GMT 2019
    - 11.9K bytes
    - Viewed (0)
  5. src/main/java/jcifs/internal/smb1/AndXServerMessageBlock.java

                 */
    
                if ( this.wordCount > 2 ) {
                    readParameterWordsWireFormat(buffer, bufferIndex + 4);
    
                    /*
                     * The SMB_COM_NT_CREATE_ANDX response wordCount is wrong. There's an
                     * extra 16 bytes for some "Offline Files (CSC or Client Side Caching)"
                     * junk. We need to bump up the wordCount here so that this method returns
    Java
    - Registered: Sun Apr 28 00:10:09 GMT 2024
    - Last Modified: Mon Nov 28 10:56:27 GMT 2022
    - 14.3K bytes
    - Viewed (0)
  6. src/main/java/jcifs/smb/SmbTransportImpl.java

            }
            switch ( resp.getErrorCode() ) {
            case NtStatus.NT_STATUS_OK:
                cont = true;
                break;
            case NtStatus.NT_STATUS_ACCESS_DENIED:
            case NtStatus.NT_STATUS_WRONG_PASSWORD:
            case NtStatus.NT_STATUS_LOGON_FAILURE:
            case NtStatus.NT_STATUS_ACCOUNT_RESTRICTION:
            case NtStatus.NT_STATUS_INVALID_LOGON_HOURS:
            case NtStatus.NT_STATUS_INVALID_WORKSTATION:
    Java
    - Registered: Sun Apr 28 00:10:09 GMT 2024
    - Last Modified: Wed Jan 18 23:47:00 GMT 2023
    - 67K bytes
    - Viewed (0)
  7. src/main/java/jcifs/smb1/smb1/SmbTransport.java

            switch( resp.errorCode ) {
                case NtStatus.NT_STATUS_OK:
                    break;
                case NtStatus.NT_STATUS_ACCESS_DENIED:
                case NtStatus.NT_STATUS_WRONG_PASSWORD:
                case NtStatus.NT_STATUS_LOGON_FAILURE:
                case NtStatus.NT_STATUS_ACCOUNT_RESTRICTION:
                case NtStatus.NT_STATUS_INVALID_LOGON_HOURS:
    Java
    - Registered: Sun Apr 28 00:10:09 GMT 2024
    - Last Modified: Fri Mar 22 21:10:40 GMT 2019
    - 31.2K bytes
    - Viewed (0)
  8. src/main/java/jcifs/smb/SmbFile.java

                    try {
                        h.send(seekReq, seekResp);
                        if ( log.isDebugEnabled() && seekResp.getOffset() != fileSize ) {
                            log.debug(String.format("Open returned wrong size %d != %d", fileSize, seekResp.getOffset()));
                        }
                        fileSize = seekResp.getOffset();
                    }
                    catch ( Exception e ) {
    Java
    - Registered: Sun Apr 28 00:10:09 GMT 2024
    - Last Modified: Mon Mar 13 12:00:57 GMT 2023
    - 81.6K bytes
    - Viewed (0)
  9. src/main/java/jcifs/internal/smb2/ServerMessageBlock2Response.java

         */
        @Override
        public boolean verifySignature ( byte[] buffer, int i, int size ) {
            // observed too that signatures on error responses are sometimes wrong??
            // Looks like the failure case also is just reflecting back the signature we sent
    
            // with SMB3's negotiation validation it's no longer possible to ignore this (on the validation response)
    Java
    - Registered: Sun Apr 28 00:10:09 GMT 2024
    - Last Modified: Sun Aug 05 09:45:59 GMT 2018
    - 7.4K bytes
    - Viewed (0)
  10. src/test/java/jcifs/tests/TimeoutTest.java

            return new NSOverrideWrapper(ctx, wrapper);
        }
    
    
        @Test
        public void testMultiHostFailoverTimeout () throws MalformedURLException, CIFSException, UnknownHostException {
            // this could inject wrong DFS cache entries
            CIFSContext newContext = getNewContext();
            try ( SmbResource root = getDefaultShareRoot(failHostInjecting(medConnectTimeout(newContext), "10.255.255.1")) ) {
                root.exists();
    Java
    - Registered: Sun Apr 28 00:10:09 GMT 2024
    - Last Modified: Sun Jul 01 13:12:10 GMT 2018
    - 12.4K bytes
    - Viewed (0)
Back to top