Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for subauthority (1.09 sec)

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

                // toString should reconstruct exact textual form
                assertEquals("S-1-5-21-1-2-3-1029", sid.toString());
                // RID is the last subauthority
                assertEquals(1029, sid.getRid());
                // getDomainSid should drop the last subauthority
                assertEquals("S-1-5-21-1-2-3", sid.getDomainSid().toString());
            }
    
            @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.8K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/smb1/trans/nt/NtTransQuerySecurityDescResponseTest.java

            buffer.putInt(0); // SubAuthority
    
            // Group SID at offset 40
            buffer.position(40);
            buffer.put((byte) 0x01); // Revision
            buffer.put((byte) 0x01); // SubAuthorityCount
            buffer.put(new byte[] { 0, 0, 0, 0, 0, 2 }); // IdentifierAuthority
            buffer.putInt(0); // SubAuthority
    
            // DACL at offset 60
            buffer.position(60);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.8K bytes
    - Viewed (0)
  3. src/main/java/jcifs/SID.java

        /**
         * Gets the domain SID for this SID.
         *
         * @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
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 5.4K bytes
    - Viewed (0)
  4. src/main/java/jcifs/smb/SID.java

            this.sub_authority = new int[this.sub_authority_count];
            int i;
            for (i = 0; i < domsid.sub_authority_count; i++) {
                this.sub_authority[i] = domsid.sub_authority[i];
            }
            for (i = domsid.sub_authority_count; i < domsid.sub_authority_count + id.sub_authority_count; i++) {
                this.sub_authority[i] = id.sub_authority[i - domsid.sub_authority_count];
            }
    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/smb1/smb1/SID.java

            this.sub_authority_count = (byte) (domsid.sub_authority_count + 1);
            this.sub_authority = new int[this.sub_authority_count];
            int i;
            for (i = 0; i < domsid.sub_authority_count; i++) {
                this.sub_authority[i] = domsid.sub_authority[i];
            }
            this.sub_authority[i] = rid;
        }
    
        /**
         * Constructs a SID from an RPC sid_t structure.
         *
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 31.5K bytes
    - Viewed (0)
  6. src/test/java/jcifs/SIDTest.java

            assertEquals(1, sid.revision);
            assertEquals(2, sid.sub_authority_count);
            assertEquals(5, sid.identifier_authority[5]);
            assertEquals(32, sid.sub_authority[0]);
            assertEquals(544, sid.sub_authority[1]);
            assertEquals(adminSidString, sid.toString());
        }
    
        /**
         * Test constructor with a SID string containing a hex value.
         *
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13.5K bytes
    - Viewed (0)
  7. src/test/java/jcifs/dcerpc/rpcTest.java

                when(decodeBuffer.dec_ndr_long()).thenReturn((int) originalSid.sub_authority_count, // sub_authority_count
                        originalSid.sub_authority[0], // sub_authorities
                        originalSid.sub_authority[1], originalSid.sub_authority[2]);
                when(decodeBuffer.dec_ndr_small()).thenReturn((int) originalSid.revision, (int) originalSid.sub_authority_count,
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 20.5K bytes
    - Viewed (0)
  8. src/test/java/jcifs/dcerpc/msrpc/lsarpcIntegrationTest.java

            sidArray.sids[0].sid.sub_authority = new int[] { 500 };
    
            sidArray.sids[1] = new lsarpc.LsarSidPtr();
            sidArray.sids[1].sid = new rpc.sid_t();
            sidArray.sids[1].sid.revision = 1;
            sidArray.sids[1].sid.identifier_authority = new byte[] { 0, 0, 0, 0, 0, 5 };
            sidArray.sids[1].sid.sub_authority_count = 1;
            sidArray.sids[1].sid.sub_authority = new int[] { 501 };
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.8K bytes
    - Viewed (0)
  9. src/main/java/jcifs/smb1/dcerpc/rpc.java

                    identifier_authority[_i] = (byte) _src.dec_ndr_small();
                }
                if (sub_authority == null) {
                    if (_sub_authoritys < 0 || _sub_authoritys > 0xFFFF) {
                        throw new NdrException(NdrException.INVALID_CONFORMANCE);
                    }
                    sub_authority = new int[_sub_authoritys];
                }
                _src = _src.derive(_sub_authorityi);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 11.2K bytes
    - Viewed (0)
  10. src/main/java/jcifs/dcerpc/rpc.java

                    this.identifier_authority[_i] = (byte) _src.dec_ndr_small();
                }
                if (this.sub_authority == null) {
                    if (_sub_authoritys < 0 || _sub_authoritys > 0xFFFF) {
                        throw new NdrException(NdrException.INVALID_CONFORMANCE);
                    }
                    this.sub_authority = new int[_sub_authoritys];
                }
                _src = _src.derive(_sub_authorityi);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 11.3K bytes
    - Viewed (0)
Back to top