Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 315 for getRid (0.05 sec)

  1. src/test/java/org/codelibs/fess/helper/SambaHelperTest.java

        }
    
        private static final SID USER_SID = new SID() {
    
            @Override
            public SID getDomainSid() {
                return null;
            }
    
            @Override
            public int getRid() {
                return 0;
            }
    
            @Override
            public String toDisplayString() {
                return getDomainName() + "\\" + getAccountName();
            }
    
            @Override
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Jul 19 23:49:30 UTC 2025
    - 14.7K bytes
    - Viewed (0)
  2. src/test/java/jcifs/smb/SIDTest.java

            }
    
            @Test
            @DisplayName("getRid throws for domain SIDs")
            void testGetRidForDomainThrows() {
                byte[] ident = new byte[] { 0, 0, 0, 0, 0, 5 };
                SID domain = new SID(buildSidT((byte) 1, ident, 10, 20), jcifs.SID.SID_TYPE_DOMAIN, "DOM", null, false);
                IllegalArgumentException ex = assertThrows(IllegalArgumentException.class, domain::getRid);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.8K bytes
    - Viewed (0)
  3. src/test/java/jcifs/SIDTest.java

            rpcSid.sub_authority = new int[] { 21, 123, 456, 789, 1000 };
    
            SID userSid = new SID(rpcSid, SID.SID_TYPE_USER, "MYDOMAIN", "user", false);
            assertEquals(1000, userSid.getRid());
        }
    
        /**
         * Test getting the RID from a domain SID.
         *
         * @throws SmbException if the SID string is invalid
         */
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13.5K bytes
    - Viewed (0)
  4. src/main/java/jcifs/smb/SID.java

        }
    
        /**
         * Get the RID
         *
         * This is the last subauthority identifier
         *
         * @return the RID
         */
        @Override
        public int getRid() {
            if (getType() == SID_TYPE_DOMAIN) {
                throw new IllegalArgumentException("This SID is a domain sid");
            }
            return this.sub_authority[this.sub_authority_count - 1];
        }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 16K bytes
    - Viewed (0)
  5. src/main/java/jcifs/SID.java

         *
         * @return domain SID
         */
        SID getDomainSid();
    
        /**
         * Get the RID
         *
         * This is the last subauthority identifier
         *
         * @return the RID
         */
        int getRid();
    
        /**
         * Return a String representing this SID ideal for display to
         * users. This method should return the same text that the ACL
         * editor in Windows would display.
         * <p>
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 5.4K bytes
    - Viewed (0)
  6. fess-crawler/src/main/java/org/codelibs/fess/crawler/client/smb/SmbClient.java

                    for (final ACE ace : aces) {
                        if (logger.isDebugEnabled()) {
                            logger.debug("ACE:{}", ace);
                        }
                        processAllowedSIDs(file, ace.getSID(), ace.isAllow() ? sidAllowSet : sidDenySet);
                    }
                    responseData.addMetaData(SMB_ALLOWED_SID_ENTRIES, sidAllowSet.toArray(new SID[sidAllowSet.size()]));
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Thu Sep 18 09:30:45 UTC 2025
    - 22.5K bytes
    - Viewed (0)
  7. src/main/java/jcifs/smb1/smb1/SID.java

        }
    
        /**
         * Gets the RID (relative identifier) of this SID.
         *
         * @return the RID
         */
        public int getRid() {
            if (getType() == SID_TYPE_DOMAIN) {
                throw new IllegalArgumentException("This SID is a domain sid");
            }
            return sub_authority[sub_authority_count - 1];
        }
    
        /**
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 31.5K bytes
    - Viewed (0)
  8. src/test/java/jcifs/internal/smb1/ServerMessageBlockTest.java

            void testTidProperty() {
                assertEquals(0xFFFF, testBlock.getTid());
                testBlock.setTid(0x1234);
                assertEquals(0x1234, testBlock.getTid());
            }
    
            @Test
            @DisplayName("Test PID property")
            void testPidProperty() {
                testBlock.setPid(0x5678);
                assertEquals(0x5678, testBlock.getPid());
            }
    
            @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 36.2K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/smb1/trans/nt/SmbComNtCancelTest.java

        class ConstructorTests {
    
            private Configuration mockConfig;
    
            @BeforeEach
            void setUp() {
                mockConfig = mock(Configuration.class);
                when(mockConfig.getPid()).thenReturn(12345);
            }
    
            @Test
            @DisplayName("Should initialize with correct command and MID")
            void testConstructorInitialization() throws Exception {
                // Given
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 12.8K bytes
    - Viewed (0)
  10. src/main/java/jcifs/internal/smb1/AndXServerMessageBlock.java

                this.andx.setFlags(getFlags());
                this.andx.setFlags2(getFlags2());
                this.andx.setTid(getTid());
                this.andx.setPid(getPid());
                this.andx.setUid(getUid());
                this.andx.setMid(getMid());
                this.andx.setUseUnicode(this.isUseUnicode());
    
                if (this.andx instanceof AndXServerMessageBlock) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 15.8K bytes
    - Viewed (0)
Back to top