Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 13 for SECURITY_SHARE (0.22 sec)

  1. src/test/java/jcifs/smb1/smb1/SmbComSessionSetupAndXTest.java

        }
    
        @Test
        void testConstructorWithSecurityShare() throws Exception {
            // Test with SECURITY_SHARE mode
            mockTransport.server.security = ServerMessageBlock.SECURITY_SHARE;
    
            SmbComSessionSetupAndX shareSetup = new SmbComSessionSetupAndX(mockSession, mockAndx, mockAuth);
            assertNotNull(shareSetup);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.5K bytes
    - Viewed (0)
  2. src/main/java/jcifs/smb1/smb1/SmbComNegotiateResponse.java

                    + ",securityMode=0x" + Hexdump.toHexString(server.securityMode, 1) + ",security="
                    + (server.security == SECURITY_SHARE ? "share" : "user") + ",encryptedPasswords=" + server.encryptedPasswords
                    + ",maxMpxCount=" + server.maxMpxCount + ",maxNumberVcs=" + server.maxNumberVcs + ",maxBufferSize=" + server.maxBufferSize
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 6K bytes
    - Viewed (0)
  3. src/main/java/jcifs/internal/smb1/com/SmbComNegotiateResponse.java

                    + ",securityMode=0x" + Hexdump.toHexString(this.server.securityMode, 1) + ",security="
                    + (this.server.security == SmbConstants.SECURITY_SHARE ? "share" : "user") + ",encryptedPasswords="
                    + this.server.encryptedPasswords + ",maxMpxCount=" + this.server.smaxMpxCount + ",maxNumberVcs=" + this.server.maxNumberVcs
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 15.8K bytes
    - Viewed (0)
  4. src/main/java/jcifs/smb1/smb1/SmbComTreeConnectAndX.java

            }
            return 0;
        }
    
        @Override
        int writeParameterWordsWireFormat(final byte[] dst, int dstIndex) {
    
            if (session.transport.server.security == SECURITY_SHARE && (session.auth.hashesExternal || session.auth.password.length() > 0)) {
    
                if (session.transport.server.encryptedPasswords) {
                    // encrypted
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 6.6K bytes
    - Viewed (0)
  5. src/main/java/jcifs/internal/smb1/com/SmbComTreeConnectAndX.java

            }
            return 0;
        }
    
        @Override
        protected int writeParameterWordsWireFormat(final byte[] dst, int dstIndex) {
            if (this.server.security == SmbConstants.SECURITY_SHARE && this.ctx.getCredentials() instanceof NtlmPasswordAuthenticator) {
                final NtlmPasswordAuthenticator pwAuth = (NtlmPasswordAuthenticator) this.ctx.getCredentials();
                if (isExternalAuth(pwAuth)) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 7.1K bytes
    - Viewed (0)
  6. src/main/java/jcifs/smb1/smb1/SmbSession.java

                            }
    
                            if (response.isLoggedInAsGuest && !"GUEST".equalsIgnoreCase(auth.username)
                                    && transport.server.security != SmbConstants.SECURITY_SHARE
                                    && auth != NtlmPasswordAuthentication.ANONYMOUS) {
                                throw new SmbAuthException(NtStatus.NT_STATUS_LOGON_FAILURE);
                            }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 20.7K bytes
    - Viewed (0)
  7. src/main/java/jcifs/smb1/smb1/SmbComSessionSetupAndX.java

                    blob = (byte[]) cred;
                } else {
                    throw new SmbException("Unsupported credential type");
                }
            } else if (session.transport.server.security == SECURITY_SHARE) {
                if (!(cred instanceof final NtlmPasswordAuthentication auth)) {
                    throw new SmbException("Unsupported credential type");
                }
                lmHash = new byte[0];
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 7.1K bytes
    - Viewed (0)
  8. src/main/java/jcifs/smb1/smb1/SmbConstants.java

        /** Open function overwrite if exists */
        int OPEN_FUNCTION_OVERWRITE_IF_EXISTS = 0x0020;
    
        /** Process ID */
        int PID = (int) (Math.random() * 65536d);
    
        /** Share level security */
        int SECURITY_SHARE = 0x00;
        /** User level security */
        int SECURITY_USER = 0x01;
    
        /** Command offset in SMB header */
        int CMD_OFFSET = 4;
        /** Error code offset in SMB header */
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 10.3K bytes
    - Viewed (0)
  9. src/test/java/jcifs/SmbConstantsTest.java

        void testProtocolConstants() {
            assertEquals(0x0000, SmbConstants.OPEN_FUNCTION_FAIL_IF_EXISTS);
            assertEquals(0x0020, SmbConstants.OPEN_FUNCTION_OVERWRITE_IF_EXISTS);
            assertEquals(0x00, SmbConstants.SECURITY_SHARE);
            assertEquals(0x01, SmbConstants.SECURITY_USER);
            assertEquals(4, SmbConstants.CMD_OFFSET);
            assertEquals(5, SmbConstants.ERROR_CODE_OFFSET);
            assertEquals(9, SmbConstants.FLAGS_OFFSET);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.3K bytes
    - Viewed (0)
  10. src/test/java/jcifs/smb1/smb1/SmbSessionTest.java

            // Initialize ServerData to avoid NullPointerException
            SmbTransport.ServerData serverData = transport.new ServerData();
            serverData.security = 0; // Set to 0 or appropriate value for SECURITY_SHARE
            serverData.encryptionKey = new byte[8]; // Initialize with empty encryption key
    
            // Configure the mock transport with the server data
            transport.server = serverData;
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.6K bytes
    - Viewed (0)
Back to top