Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 215 for grpc (0.03 sec)

  1. src/test/java/jcifs/dcerpc/msrpc/SamrAliasHandleTest.java

            // Arrange
            int access = 1;
            int rid = 100;
    
            // Mock the behavior of sendrecv for MsrpcSamrOpenAlias
            doAnswer(invocation -> {
                MsrpcSamrOpenAlias rpc = invocation.getArgument(0);
                rpc.retval = 0; // Simulate success
                return null;
            }).when(mockDcerpcHandle).sendrecv(any(MsrpcSamrOpenAlias.class));
    
            // Act
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 6.2K bytes
    - Viewed (0)
  2. src/main/java/jcifs/dcerpc/msrpc/SamrDomainHandle.java

                throws IOException {
            this.handle = handle;
            final MsrpcSamrOpenDomain rpc = new MsrpcSamrOpenDomain(policyHandle, access, sid, this);
            handle.sendrecv(rpc);
            if (rpc.retval != 0) {
                throw new SmbException(rpc.retval, false);
            }
            this.opened = true;
        }
    
        @Override
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 2.5K bytes
    - Viewed (0)
  3. src/test/java/jcifs/SIDTest.java

         *
         * @throws SmbException if the SID string is invalid
         */
        @Test
        void testGetDomainSid() throws SmbException {
            // Create a mock RPC SID to simulate a user SID
            rpc.sid_t rpcSid = new rpc.sid_t();
            rpcSid.revision = 1;
            rpcSid.sub_authority_count = 5; // Fixed: should be 5 for domain SID with RID
            rpcSid.identifier_authority = new byte[] { 0, 0, 0, 0, 0, 5 };
    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/SIDCacheImpl.java

                        rpc = new MsrpcGetMembersInAlias(aliasHandle, sidarray);
                        handle.sendrecv(rpc);
                        if (rpc.retval != 0) {
                            throw new SmbException(rpc.retval, false);
                        }
                        final SID[] sids = new SID[rpc.sids.num_sids];
    
                        final String origin_server = handle.getServer();
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Mon Aug 25 14:34:10 UTC 2025
    - 13.6K bytes
    - Viewed (0)
  5. cmd/bucket-policy.go

    	// `jwt:groups` works.
    	if grpsVal, ok := claims["groups"]; ok {
    		if grpsIs, ok := grpsVal.([]any); ok {
    			grps := []string{}
    			for _, gI := range grpsIs {
    				if g, ok := gI.(string); ok {
    					grps = append(grps, g)
    				}
    			}
    			if len(grps) > 0 {
    				args["groups"] = grps
    			}
    		}
    	}
    
    	// if not claim groups are available use the one with auth.Credentials
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 7.9K bytes
    - Viewed (0)
  6. src/main/java/jcifs/dcerpc/msrpc/SamrAliasHandle.java

                throws IOException {
            this.handle = handle;
            final MsrpcSamrOpenAlias rpc = new MsrpcSamrOpenAlias(domainHandle, access, rid, this);
            handle.sendrecv(rpc);
            if (rpc.retval != 0) {
                throw new SmbException(rpc.retval, false);
            }
            this.opened = true;
        }
    
        @Override
        public synchronized void close() throws IOException {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 2.5K bytes
    - Viewed (0)
  7. src/main/java/jcifs/smb1/dcerpc/msrpc/SamrAliasHandle.java

            this.handle = handle;
            final MsrpcSamrOpenAlias rpc = new MsrpcSamrOpenAlias(domainHandle, access, rid, this);
            handle.sendrecv(rpc);
            if (rpc.retval != 0) {
                throw new SmbException(rpc.retval, false);
            }
        }
    
        /**
         * Closes this SAM alias handle.
         *
         * @throws IOException if an I/O error occurs during handle closure
         */
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 2.4K bytes
    - Viewed (0)
  8. src/main/java/jcifs/dcerpc/msrpc/LsaPolicyHandle.java

            this.handle = handle;
            if (server == null) {
                server = "\\\\";
            }
            final MsrpcLsarOpenPolicy2 rpc = new MsrpcLsarOpenPolicy2(server, access, this);
            handle.sendrecv(rpc);
            if (rpc.retval != 0) {
                throw new SmbException(rpc.retval, false);
            }
            this.opened = true;
        }
    
        @Override
        public synchronized void close() throws IOException {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 2.3K bytes
    - Viewed (0)
  9. src/test/java/jcifs/dcerpc/msrpc/lsarpcTest.java

            lsarpc.LsarDnsDomainInfo dnsDomainInfo = new lsarpc.LsarDnsDomainInfo();
            dnsDomainInfo.name = new rpc.unicode_string();
            dnsDomainInfo.dns_domain = new rpc.unicode_string();
            dnsDomainInfo.dns_forest = new rpc.unicode_string();
            dnsDomainInfo.domain_guid = new rpc.uuid_t();
            dnsDomainInfo.sid = mock(rpc.sid_t.class);
    
            when(mockNdrBuffer.dec_ndr_short()).thenReturn(10, 20, 12, 24, 14, 28);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 60.8K bytes
    - Viewed (0)
  10. src/test/java/jcifs/dcerpc/msrpc/SamrDomainHandleTest.java

            // Arrange
            int access = 0x01; // Example access value
            // Simulate successful RPC call
            doAnswer(invocation -> {
                MsrpcSamrOpenDomain rpc = invocation.getArgument(0);
                rpc.retval = 0; // Success
                return null;
            }).when(mockDcerpcHandle).sendrecv(any(MsrpcSamrOpenDomain.class));
    
            // Act
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8.9K bytes
    - Viewed (0)
Back to top