[linux-cifs-client] Domain based DFS namespace works?

Igor Mammedov niallain at gmail.com
Tue Feb 10 09:57:25 GMT 2009


Suresh Jayaraman wrote:
> Jeff Layton wrote:
>> On Mon, 09 Feb 2009 18:29:33 +0530
>> Suresh Jayaraman <sjayaraman at suse.de> wrote:
>>
>>> Hi all,
>>>
>>> It's not clear to me whether complete domain based DFS namespace support
>>> is available or not with linux cifs implementation. For e.g.
>>>
>>> Suppose there are two Win2k3 servers (dfs1, dfs2) and a seperate win2k3
>>> PDC as AD (ad.domain). Both dfs1 and dfs2 are part of ad. dfs1 has a
>>> namespace 'ns 'and referral link 'ref' present in dfs2.
>>>
>>> If I try to mount the DFS namespace using AD domain, is it expected to work?
>>>      mount -t cifs //ad.domain/ns /mnt -o user=Administrator
>>> (note that I'm trying to mount the referral directly)
>>>
>>> In one of our setup it doesn't seem to be working. But I'm not sure
>>> whether it's a configuration issue or not.
> 
>> I doubt that will work unless ad.domain happens to resolve to an
>> address somehow. The mount.cifs program doesn't have support for
>> recognizing an AD domain in the host portion of the UNC.
> 
> I think this is not happening now. The client should contact AD server
> to know about the DFS root (since in domain based DFS namespace, the AD
> is aware of the DFS namespaces). Yeah, obviously the mount.cifs should
> recognize that it's a AD domain first.

I our AD setup AD domain name resolves to a bunch of IP addresses of domain
controllers. So I guess it is a matter of a proper configuration of AD domain
and DNS.
Here is description of DNS usage by AD:
http://technet.microsoft.com/en-us/library/cc759550.aspx

Adding deps to mount.cifs on ldap libs may not be a good idea, instead of 
we can try to add SRV records support in mount.cifs. This way mount.cifs
could ask for a domain controller by sending a query for SRV record
_ldap._tcp.AdDnsDomainName.

-- 

Best regards,

-------------------------
Igor Mammedov,
niallain "at" gmail.com






More information about the linux-cifs-client mailing list