- All Known Implementing Classes:
DfsImpl
public interface DfsResolver
This is an internal API.
- Author:
- mbechler
This interface is intended for internal use.
-
Method Summary
Modifier and TypeMethodDescriptionvoidcache(CIFSContext tc, String path, DfsReferralData dr) Add a referral to the cachegetDc(CIFSContext tf, String domain) Get a connection to the domain controller for a given domainbooleanisTrustedDomain(CIFSContext tf, String domain) Checks if a domain is trusted for DFS operationsresolve(CIFSContext tf, String domain, String root, String path) Resolve the location of a DFS path
-
Method Details
-
isTrustedDomain
Checks if a domain is trusted for DFS operations- Parameters:
tf- the CIFS contextdomain- the domain name to check- Returns:
- whether the given domain is trusted
- Throws:
CIFSException- if the operation fails
-
getDc
Get a connection to the domain controller for a given domain- Parameters:
tf- the CIFS contextdomain- the domain name- Returns:
- connection to the domain controller
- Throws:
CIFSException- if the connection fails
-
resolve
DfsReferralData resolve(CIFSContext tf, String domain, String root, String path) throws CIFSException Resolve the location of a DFS path- Parameters:
domain- the domain for the DFS referralroot- the DFS root sharepath- the DFS path to resolvetf- the CIFS context containing configuration and credentials- Returns:
- the final referral for the given DFS path
- Throws:
CIFSException- if an error occurs during resolutionSmbAuthException- if authentication fails
-
cache
Add a referral to the cache- Parameters:
path- the DFS path for this referraldr- the DFS referral data to cachetc- the CIFS context containing configuration
-