Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for isTrustedDomain (0.07 sec)

  1. src/test/java/jcifs/DfsResolverTest.java

            when(mockContext.getConfig()).thenReturn(mockConfig);
        }
    
        // Test for isTrustedDomain method
        @Test
        void testIsTrustedDomain_DfsDisabled() throws CIFSException {
            when(mockConfig.isDfsDisabled()).thenReturn(true);
            assertFalse(dfsResolver.isTrustedDomain(mockContext, "anyDomain"));
        }
    
        @Test
        void testIsTrustedDomain_NoUserDomain() throws CIFSException {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.5K bytes
    - Viewed (0)
  2. src/test/java/jcifs/smb/DfsImplTest.java

            assertNotNull(dfsImpl);
        }
    
        // Tests for isTrustedDomain
        @Test
        void testIsTrustedDomain_DfsDisabled() throws SmbAuthException {
            // Scenario: DFS is disabled in the configuration.
            when(mockConfig.isDfsDisabled()).thenReturn(true);
            assertFalse(dfsImpl.isTrustedDomain(mockContext, "anydomain.com"));
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.5K bytes
    - Viewed (0)
  3. src/main/java/jcifs/DfsResolver.java

         * @param tf the CIFS context
         * @param domain the domain name to check
         * @return whether the given domain is trusted
         * @throws CIFSException if the operation fails
         */
        boolean isTrustedDomain(CIFSContext tf, String domain) throws CIFSException;
    
        /**
         * Get a connection to the domain controller for a given domain
         *
         * @param tf the CIFS context
         * @param domain the domain name
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 2.4K bytes
    - Viewed (0)
  4. src/test/java/jcifs/smb1/smb1/DfsTest.java

            trustedDomains.put("domain.com", new HashMap());
            cacheEntry.map = trustedDomains;
            dfs._domains = cacheEntry;
    
            assertTrue(dfs.isTrustedDomain("domain.com", auth));
            assertFalse(dfs.isTrustedDomain("otherdomain.com", auth));
        }
    
        @Test
        void testGetDc_Disabled() throws SmbAuthException {
            // Test with disabled DFS
            testDfs.setDisabled(true);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.6K bytes
    - Viewed (0)
  5. src/main/java/jcifs/smb1/smb1/Dfs.java

         * @param auth the authentication credentials
         * @return true if the domain is trusted, false otherwise
         * @throws SmbAuthException if authentication fails
         */
        public boolean isTrustedDomain(String domain, final NtlmPasswordAuthentication auth) throws SmbAuthException {
            final HashMap domains = getTrustedDomains(auth);
            if (domains == null) {
                return false;
            }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 14.2K bytes
    - Viewed (0)
  6. src/main/java/jcifs/smb/SmbEnumerationUtil.java

                throw new SmbException("The requested list operations is invalid: " + u.toString());
            }
    
            final Set<FileEntry> set = new HashSet<>();
    
            if (tc.getDfs().isTrustedDomain(tc, locator.getServer())) {
                /*
                 * The server name is actually the name of a trusted
                 * domain. Add DFS roots to the list.
                 */
                try {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 12.3K bytes
    - Viewed (0)
  7. src/main/java/jcifs/smb/DfsImpl.java

            }
            return null;
        }
    
        /**
         *
         * {@inheritDoc}
         *
         * @see jcifs.DfsResolver#isTrustedDomain(jcifs.CIFSContext, java.lang.String)
         */
        @Override
        public boolean isTrustedDomain(final CIFSContext tf, String domain) throws SmbAuthException {
            synchronized (this.domainsLock) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 29.7K bytes
    - Viewed (0)
  8. src/main/java/jcifs/smb1/smb1/SmbFile.java

            if (getType() != TYPE_SERVER) {
                throw new SmbException("The requested list operations is invalid: " + url.toString());
            }
    
            map = new HashMap();
    
            if (dfs.isTrustedDomain(getServer(), auth)) {
                /* The server name is actually the name of a trusted
                 * domain. Add DFS roots to the list.
                 */
                try {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 112.2K bytes
    - Viewed (0)
Back to top