Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 31 - 40 of 100 for sid (0.01 seconds)

  1. src/test/java/jcifs/pac/PacLogonInfoTest.java

        private static final String TEST_DOMAIN = "TESTDOMAIN";
        private static final String TEST_SERVER = "SERVER01";
    
        private SID domainSid;
        private SID userSid;
    
        @BeforeEach
        void setUp() throws Exception {
            domainSid = new SID("S-1-5-21-1-2-3");
            userSid = new SID("S-1-5-21-1-2-3-1000");
        }
    
        private void writeLittleEndianShort(DataOutputStream dos, short value) throws IOException {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 12.3K bytes
    - Click Count (0)
  2. src/main/java/jcifs/internal/dtyp/ACE.java

     * "The .NET Developer's Guide to Windows Security" (which is also
     * available online).
     * <p>
     * Direct ACEs are evaluated first in order. The SID of the user performing
     * the operation and the desired access bits are compared to the SID
     * and access mask of each ACE. If the SID matches, the allow/deny flags
     * and access mask are considered. If the ACE is a "deny"
     * ACE and <i>any</i> of the desired access bits match bits in the access
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 5.6K bytes
    - Click Count (0)
  3. src/test/java/jcifs/dcerpc/rpcTest.java

        }
    
        @Nested
        @DisplayName("SID Tests")
        class SidTests {
    
            @Test
            @DisplayName("Should encode SID correctly")
            void testSidTEncode() throws NdrException {
                // Given: A SID with test values
                rpc.sid_t sid = new rpc.sid_t();
                sid.revision = (byte) 1;
                sid.sub_authority_count = (byte) 2;
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 20.5K bytes
    - Click Count (0)
  4. src/main/java/jcifs/internal/smb1/trans2/Trans2FindFirst2Response.java

            super(config, SMB_COM_TRANSACTION2, SmbComTransaction.TRANS2_FIND_FIRST2);
        }
    
        /**
         * Gets the search ID for this response.
         *
         * @return the sid
         */
        public final int getSid() {
            return this.sid;
        }
    
        /**
         * Checks if this is the end of the search results.
         *
         * @return the isEndOfSearch
         */
        public final boolean isEndOfSearch() {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 6.2K bytes
    - Click Count (0)
  5. src/main/java/jcifs/smb1/dcerpc/msrpc/LsarSidArrayX.java

    package jcifs.smb1.dcerpc.msrpc;
    
    import jcifs.smb1.smb1.SID;
    
    class LsarSidArrayX extends lsarpc.LsarSidArray {
    
        LsarSidArrayX(final SID[] sids) {
            this.num_sids = sids.length;
            this.sids = new lsarpc.LsarSidPtr[sids.length];
            for (int si = 0; si < sids.length; si++) {
                this.sids[si] = new lsarpc.LsarSidPtr();
                this.sids[si].sid = sids[si];
            }
        }
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 07:14:38 GMT 2025
    - 409 bytes
    - Click Count (0)
  6. src/test/java/jcifs/internal/dtyp/SecurityDescriptorTest.java

            // Owner SID offset
            if (includeOwner) {
                SMBUtil.writeInt4(currentOffset, buffer, offset + 4);
                prepareSimpleSid(buffer, offset + currentOffset);
                currentOffset += 20; // Simple SID size
            } else {
                SMBUtil.writeInt4(0, buffer, offset + 4);
            }
    
            // Group SID offset
            if (includeGroup) {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 18.6K bytes
    - Click Count (0)
  7. src/main/java/jcifs/dcerpc/msrpc/LsarSidArrayX.java

    import jcifs.dcerpc.rpc.sid_t;
    import jcifs.smb.SID;
    
    class LsarSidArrayX extends lsarpc.LsarSidArray {
    
        LsarSidArrayX(final jcifs.SID[] sids) {
            this.num_sids = sids.length;
            this.sids = new lsarpc.LsarSidPtr[sids.length];
            for (int si = 0; si < sids.length; si++) {
                this.sids[si] = new lsarpc.LsarSidPtr();
                this.sids[si].sid = sids[si].unwrap(sid_t.class);
            }
        }
    
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 07:14:38 GMT 2025
    - 1.5K bytes
    - Click Count (0)
  8. src/main/java/jcifs/smb1/smb1/ACE.java

         * @return the access mask for this ACE
         */
        public int getAccessMask() {
            return access;
        }
    
        /**
         * Return the SID associated with this ACE.
         * @return the SID for this ACE
         */
        public SID getSID() {
            return sid;
        }
    
        int decode(final byte[] buf, int bi) {
            allow = buf[bi] == (byte) 0x00;
            bi++;
            flags = buf[bi++] & 0xFF;
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 8.8K bytes
    - Click Count (0)
  9. src/test/java/jcifs/SmbResourceTest.java

                when(mockResource.getOwnerGroup(true)).thenReturn(mockSID);
    
                // When
                SID ownerUser1 = mockResource.getOwnerUser();
                SID ownerUser2 = mockResource.getOwnerUser(false);
                SID ownerGroup1 = mockResource.getOwnerGroup();
                SID ownerGroup2 = mockResource.getOwnerGroup(true);
    
                // Then
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 35K bytes
    - Click Count (0)
  10. src/main/java/jcifs/smb1/smb1/SecurityDescriptor.java

            bufferIndex += 2;
            final int ownerUOffset = ServerMessageBlock.readInt4(buffer, bufferIndex); // offset to owner sid
            bufferIndex += 4;
            final int ownerGOffset = ServerMessageBlock.readInt4(buffer, bufferIndex); // offset to group sid
            bufferIndex += 4;
            final int saclOffset = ServerMessageBlock.readInt4(buffer, bufferIndex); // offset to sacl
            bufferIndex += 4;
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 4.5K bytes
    - Click Count (0)
Back to Top