- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 12 for SamrAliasHandle (2.41 sec)
-
src/main/java/jcifs/smb1/dcerpc/msrpc/SamrAliasHandle.java
/** * Handle for Security Account Manager (SAM) alias operations. * This class represents an open handle to a SAM alias and provides * operations for managing alias membership and properties. */ public class SamrAliasHandle extends rpc.policy_handle { DcerpcHandle handle; /** * Creates a new SAM alias handle. * * @param handle the DCE/RPC handle for communication
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 2.4K bytes - Viewed (0) -
src/main/java/jcifs/dcerpc/msrpc/SamrAliasHandle.java
/** * Handle for Security Account Manager (SAM) alias operations. * This class represents an open handle to a SAM alias and provides * operations for managing alias membership and properties. */ public class SamrAliasHandle extends rpc.policy_handle implements AutoCloseable { private final DcerpcHandle handle; private boolean opened; /** * Creates a new SAM alias handle. *
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 2.5K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/msrpc/SamrAliasHandleTest.java
rpc.retval = 0; // Simulate success return null; }).when(mockDcerpcHandle).sendrecv(any(MsrpcSamrOpenAlias.class)); // Act SamrAliasHandle aliasHandle = new SamrAliasHandle(mockDcerpcHandle, mockSamrDomainHandle, access, rid); // Assert assertNotNull(aliasHandle); // Verify that sendrecv was called with the correct MsrpcSamrOpenAlias object
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 6.2K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/msrpc/MsrpcGetMembersInAliasTest.java
/** * Tests for the MsrpcGetMembersInAlias class. */ class MsrpcGetMembersInAliasTest { private SamrAliasHandle aliasHandle; private LsarSidArray sids; @BeforeEach void setUp() { // Create mock objects for the constructor parameters aliasHandle = mock(SamrAliasHandle.class); sids = mock(LsarSidArray.class); } /**
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 2.1K bytes - Viewed (0) -
src/test/java/jcifs/MsrpcGetMembersInAliasTest.java
import org.mockito.Mock; import org.mockito.MockitoAnnotations; import jcifs.dcerpc.msrpc.MsrpcGetMembersInAlias; import jcifs.dcerpc.msrpc.SamrAliasHandle; import jcifs.dcerpc.msrpc.lsarpc; class MsrpcGetMembersInAliasTest { @Mock private SamrAliasHandle mockAliasHandle; @Mock private lsarpc.LsarSidArray mockSids; @BeforeEach void setUp() {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 1.6K bytes - Viewed (0) -
src/main/java/jcifs/smb1/dcerpc/msrpc/MsrpcGetMembersInAlias.java
* Creates a new request to get members of an alias. * * @param aliasHandle the handle to the alias * @param sids the SID array to store the member SIDs */ public MsrpcGetMembersInAlias(final SamrAliasHandle aliasHandle, final lsarpc.LsarSidArray sids) { super(aliasHandle, sids); this.sids = sids; ptype = 0; flags = DCERPC_FIRST_FRAG | DCERPC_LAST_FRAG; }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 1.6K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/msrpc/MsrpcSamrOpenAliasTest.java
import org.junit.jupiter.api.Test; import org.mockito.Mock; import org.mockito.MockitoAnnotations; class MsrpcSamrOpenAliasTest { @Mock private SamrDomainHandle mockDomainHandle; @Mock private SamrAliasHandle mockAliasHandle; @BeforeEach void setUp() { MockitoAnnotations.openMocks(this); } @Test @DisplayName("Should correctly initialize MsrpcSamrOpenAlias with provided parameters")
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 2.5K bytes - Viewed (0) -
src/main/java/jcifs/dcerpc/msrpc/MsrpcGetMembersInAlias.java
* Creates a new request to get members of an alias. * * @param aliasHandle the handle to the alias * @param sids the SID array to store the member SIDs */ public MsrpcGetMembersInAlias(final SamrAliasHandle aliasHandle, final lsarpc.LsarSidArray sids) { super(aliasHandle, sids); this.sids = sids; this.ptype = 0; this.flags = DCERPC_FIRST_FRAG | DCERPC_LAST_FRAG; }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 1.6K bytes - Viewed (0) -
src/main/java/jcifs/smb1/dcerpc/msrpc/MsrpcSamrOpenAlias.java
* @param rid the relative identifier of the alias * @param aliasHandle the alias handle to be populated */ public MsrpcSamrOpenAlias(final SamrDomainHandle handle, final int access, final int rid, final SamrAliasHandle aliasHandle) { super(handle, access, rid, aliasHandle); ptype = 0; flags = DCERPC_FIRST_FRAG | DCERPC_LAST_FRAG; }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 1.6K bytes - Viewed (0) -
src/main/java/jcifs/smb/SIDCacheImpl.java
final SamrDomainHandle domainHandle = new SamrDomainHandle(handle, policyHandle, 0x00000200, domsid.unwrap(sid_t.class)); try (SamrAliasHandle aliasHandle = new SamrAliasHandle(handle, domainHandle, 0x0002000c, rid)) { rpc = new MsrpcGetMembersInAlias(aliasHandle, sidarray); handle.sendrecv(rpc); if (rpc.retval != 0) {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Mon Aug 25 14:34:10 UTC 2025 - 13.6K bytes - Viewed (0)