Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 13 for sub_authority_count (2.27 sec)

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

            relativeSid.sub_authority_count = 1;
            relativeSid.sub_authority = new int[] { 1000 };
    
            SID userSid = new SID(domainSid, relativeSid);
            assertEquals(domainSid.sub_authority_count + relativeSid.sub_authority_count, userSid.sub_authority_count);
            assertEquals(1000, userSid.sub_authority[userSid.sub_authority_count - 1]);
        }
    
        /**
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13.5K bytes
    - Viewed (0)
  2. src/main/java/jcifs/smb/SID.java

            this.sub_authority_count = (byte) (domsid.sub_authority_count + id.sub_authority_count);
            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++) {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 16K bytes
    - Viewed (0)
  3. src/main/java/jcifs/smb1/smb1/SID.java

            revision = src[si];
            si++;
            sub_authority_count = src[si++];
            identifier_authority = new byte[6];
            System.arraycopy(src, si, identifier_authority, 0, 6);
            si += 6;
            if (sub_authority_count > 100) {
                throw new RuntimeException("Invalid SID sub_authority_count");
            }
            sub_authority = new int[sub_authority_count];
            for (int i = 0; i < sub_authority_count; i++) {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 31.5K bytes
    - Viewed (0)
  4. src/main/java/jcifs/smb1/dcerpc/rpc.idl

    	 * 
    	 * typedef struct _SID {
    	 *    UCHAR Revision;
    	 *    UCHAR SubAuthorityCount;
    	 *    SID_IDENTIFIER_AUTHORITY IdentifierAuthority;
    	 *    [size_is(SubAuthorityCount)] ULONG SubAuthority[*];
    	 * } SID, *PSID;
    	 */
    
    	typedef struct {
    		uint8_t revision;
    		uint8_t sub_authority_count;
    		uint8_t identifier_authority[6];
    		[size_is(sub_authority_count)] uint32_t sub_authority[*];
    	} sid_t;
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Fri Mar 22 20:39:42 UTC 2019
    - 1.4K bytes
    - Viewed (0)
  5. src/main/java/jcifs/dcerpc/rpc.idl

    	 * 
    	 * typedef struct _SID {
    	 *    UCHAR Revision;
    	 *    UCHAR SubAuthorityCount;
    	 *    SID_IDENTIFIER_AUTHORITY IdentifierAuthority;
    	 *    [size_is(SubAuthorityCount)] ULONG SubAuthority[*];
    	 * } SID, *PSID;
    	 */
    
    	typedef struct {
    		uint8_t revision;
    		uint8_t sub_authority_count;
    		uint8_t identifier_authority[6];
    		[size_is(sub_authority_count)] uint32_t sub_authority[*];
    	} sid_t;
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 1.4K bytes
    - Viewed (0)
  6. src/test/java/jcifs/dcerpc/msrpc/lsarpcIntegrationTest.java

            // Verify SID
            assertNotNull(decodedInfo.sid);
            assertEquals(domainInfo.sid.revision, decodedInfo.sid.revision);
            assertEquals(domainInfo.sid.sub_authority_count, decodedInfo.sid.sub_authority_count);
        }
    
        @Test
        void testLsarDomainInfoEncodeDecodeWithNulls() throws NdrException {
            // Create a domain info with null fields
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.8K 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: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 20.5K bytes
    - Viewed (0)
  8. src/main/java/jcifs/smb1/dcerpc/rpc.java

            public void encode(NdrBuffer _dst) throws NdrException {
                _dst.align(4);
                final int _sub_authoritys = sub_authority_count;
                _dst.enc_ndr_long(_sub_authoritys);
                _dst.enc_ndr_small(revision);
                _dst.enc_ndr_small(sub_authority_count);
                final int _identifier_authoritys = 6;
                final int _identifier_authorityi = _dst.index;
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 11.2K bytes
    - Viewed (0)
  9. src/main/java/jcifs/dcerpc/rpc.java

            public void encode(NdrBuffer _dst) throws NdrException {
                _dst.align(4);
                final int _sub_authoritys = this.sub_authority_count;
                _dst.enc_ndr_long(_sub_authoritys);
                _dst.enc_ndr_small(this.revision);
                _dst.enc_ndr_small(this.sub_authority_count);
                final int _identifier_authoritys = 6;
                final int _identifier_authorityi = _dst.index;
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 11.3K bytes
    - Viewed (0)
  10. src/main/java/jcifs/internal/dtyp/SecurityDescriptor.java

                bufferIndex += 8 + 4 * this.ownerUserSid.sub_authority_count;
            }
    
            if (ownerGOffset > 0) {
                bufferIndex = start + ownerGOffset;
                this.ownerGroupSid = new SID(buffer, bufferIndex);
                bufferIndex += 8 + 4 * this.ownerGroupSid.sub_authority_count;
            }
    
            bufferIndex = start + daclOffset;
    
            if (daclOffset > 0) {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 5.4K bytes
    - Viewed (0)
Back to top