All of lore.kernel.org
 help / color / mirror / Atom feed
From: Richard Sharpe <realrichardsharpe-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
To: Marcus Moeller <marcus.moeller-OI3hZJvNYWs@public.gmane.org>
Cc: Jeff Layton <jlayton-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>,
	linux-cifs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: DFS referrals
Date: Sun, 18 Aug 2013 09:08:39 -0700	[thread overview]
Message-ID: <CACyXjPx+tK+ZfVwm8W3sryZsgq3iEjMhrSv6GEbWgtSZ=7rzMg@mail.gmail.com> (raw)
In-Reply-To: <CACyXjPw9_DT=nzznniZS_A6_whkvyUp4WQPm07bAWqmUtKfKhA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>

On Sun, Aug 18, 2013 at 8:57 AM, Richard Sharpe
<realrichardsharpe-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
> On Sun, Aug 18, 2013 at 8:26 AM, Marcus Moeller <marcus.moeller@gmx.ch> wrote:
>> Am 18.08.2013 17:14, schrieb Richard Sharpe:
>>>>>>>
>>>>>>> No, it is not possible to set the same SPN on more than one computer
>>>>>>> object in AD.
>>>>>>>
>>>>>>> What happens here is a combination of DNS magic (there are multiple
>>>>>>> SRV records) and replication of the DFS info between DCs in the AD
>>>>>>> domain.
>>>>>>>
>>>>>>> A client can query any DC for the translation of a DNS namespace.
>>>>>>>
>>>>>>> My use case lives below that level and it is all pretty much working
>>>>>>> (except for XP, which will not do multiple levels of DFS referrals, it
>>>>>>> seems.)
>>>>>>>
>>>>>>> In any event, I might eventually have to use a shared secrets file,
>>>>>>> which overcomes the issue of SPNs.
>>>>>>>
>>>>>>
>>>>>> What SRV records are used? Should we fix mount.cifs to try and query
>>>>>> for an SRV record first and then try to resolve that hostname before
>>>>>> attempting to mount?
>>>>>
>>>>>
>>>>> Those are just for finding the namespace, and I am not sure exactly
>>>>> how it is handled, but if you have a namespace of
>>>>> \\domain.realm\namespace1, I think any DC in that domain can be used
>>>>> to get to the first level.
>>>>>
>>>>
>>>> Bear with me, as I'm pretty clueless as to how AD stuff works.
>>>>
>>>> If all I have is \\domain.realm\namespace1 what should I be doing to
>>>> connect to it at that point? Currently we just treat "domain.realm" as
>>>> a hostname, but evidently that's not quite the right thing to do. Is it?
>>>
>>>
>>> Let me check.
>>>
>>> It might be that Windows returns the IP addresses of all the DCs in
>>> that domain in that case (and, if Sites and Services has been set up
>>> properly, returns them with the closest ones to you first in the
>>> list.) That is, my mentioning of SRV records might be a red herring.
>>>
>>> In that case, if the first one fails, you should simply try the next
>>> one until you find one that responds.
>>
>>
>> Yes, that's how it works. It then tries to reverse lookup the ip address in
>> order to mount the share. As our reverse DNS Setup is somewhat broken, that
>> part fails. I thought that removing the -t option could be a workaround for
>> that, but as the cifs/domain SPN can only be set on one DC, that's no option
>> to.
>
> Well, more precisely, it needs the name in order to generate a service
> ticket. I don't think Windows cares these days what the called-name
> is.

Do you have a capture?

In my experience, the client has to distinguish between a multi-homed
host and a name that refers to a domain.

In the case of a multi-homed host, Windows (at least Win7/Srv 2008)
does not seem to bother to back-translate the IP address used to
connect to a name.

It simply uses the name presented to look for the SPN and thus
generate the ticket.

That is, if you try to connect to
\\somemhomedname.realm.com\share-name and it turns out that there are
multiple IP addresses for somemhomedname.realm.com windows connects on
one of them but uses somemhomedname.realm.com to find the SPN to
generate the ticket.

I have probably deleted my capture so I don't know if it tries to look
for the SRV records to see if that thing is a domain name.

-- 
Regards,
Richard Sharpe
(何以解憂?唯有杜康。--曹操)

  parent reply	other threads:[~2013-08-18 16:08 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <51DBD032.10305@gmx.ch>
     [not found] ` <20130709054702.15550964@tlielax.poochiereds.net>
     [not found]   ` <51DBDDEA.9040702@gmx.ch>
     [not found]     ` <20130709081027.450b1849@corrin.poochiereds.net>
     [not found]       ` <51F664FB.5090507@gmx.ch>
     [not found]         ` <51F664FB.5090507-OI3hZJvNYWs@public.gmane.org>
2013-07-29 13:07           ` DFS referrals Jeff Layton
     [not found]             ` <20130729090759.62d15e2e-4QP7MXygkU+dMjc06nkz3ljfA9RmPOcC@public.gmane.org>
2013-07-29 13:45               ` Marcus Moeller
     [not found]                 ` <51F6720C.3060500-OI3hZJvNYWs@public.gmane.org>
2013-07-29 14:34                   ` Jeff Layton
     [not found]                     ` <20130729103445.6629cece-9yPaYZwiELC+kQycOl6kW4xkIHaj4LzF@public.gmane.org>
2013-07-29 14:39                       ` Marcus Moeller
     [not found]                         ` <51F67EB0.40502-OI3hZJvNYWs@public.gmane.org>
2013-07-30  5:45                           ` Marcus Moeller
     [not found]                             ` <51F75300.9000703-OI3hZJvNYWs@public.gmane.org>
2013-07-30 11:35                               ` Marcus Moeller
     [not found]                                 ` <51F7A513.1090806-OI3hZJvNYWs@public.gmane.org>
2013-07-30 12:01                                   ` Jeff Layton
     [not found]                                     ` <20130730080116.76df98db-4QP7MXygkU+dMjc06nkz3ljfA9RmPOcC@public.gmane.org>
2013-07-30 13:58                                       ` Marcus Moeller
     [not found]                                         ` <51F7C67A.6020009-OI3hZJvNYWs@public.gmane.org>
2013-07-30 14:17                                           ` Jeff Layton
     [not found]                                             ` <20130730101730.71549ec8-9yPaYZwiELC+kQycOl6kW4xkIHaj4LzF@public.gmane.org>
2013-08-13  9:00                                               ` Marcus Moeller
     [not found]                                                 ` <5209F598.1000101-OI3hZJvNYWs@public.gmane.org>
2013-08-13 14:42                                                   ` Jeff Layton
2013-08-13 15:00                                                   ` Richard Sharpe
     [not found]                                                     ` <CACyXjPyu+uKW5THRRimpJMLS35KFJRoi_Ck6QLqUP2LZ7nh1+w-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2013-08-13 15:32                                                       ` Jeff Layton
     [not found]                                                         ` <20130813113210.649866dd-9yPaYZwiELC+kQycOl6kW4xkIHaj4LzF@public.gmane.org>
2013-08-17 22:11                                                           ` Richard Sharpe
     [not found]                                                             ` <CACyXjPy69oa02aDp7ZLZx2WbJkXifxnp8yyfSHuBNSw5nBRTYw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2013-08-18 13:10                                                               ` Jeff Layton
     [not found]                                                                 ` <20130818091011.7c2cc8b1-9yPaYZwiELC+kQycOl6kW4xkIHaj4LzF@public.gmane.org>
2013-08-18 15:14                                                                   ` Richard Sharpe
     [not found]                                                                     ` <CACyXjPzY8bi_m7iJ52RwvFNLYic+YyW_YenBmrirQmG0kS0Y9g-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2013-08-18 15:23                                                                       ` Richard Sharpe
2013-08-18 15:26                                                                       ` Marcus Moeller
     [not found]                                                                         ` <5210E7AD.1030408-OI3hZJvNYWs@public.gmane.org>
2013-08-18 15:57                                                                           ` Richard Sharpe
     [not found]                                                                             ` <CACyXjPw9_DT=nzznniZS_A6_whkvyUp4WQPm07bAWqmUtKfKhA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2013-08-18 16:08                                                                               ` Richard Sharpe [this message]
     [not found]                                                                                 ` <CACyXjPx+tK+ZfVwm8W3sryZsgq3iEjMhrSv6GEbWgtSZ=7rzMg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2013-08-18 17:23                                                                                   ` Marcus Moeller
2013-08-19 11:11                                                                                   ` Jeff Layton
     [not found]                                                                                     ` <20130819071133.5680e53c-4QP7MXygkU+dMjc06nkz3ljfA9RmPOcC@public.gmane.org>
2013-08-19 13:37                                                                                       ` Tom Talpey

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CACyXjPx+tK+ZfVwm8W3sryZsgq3iEjMhrSv6GEbWgtSZ=7rzMg@mail.gmail.com' \
    --to=realrichardsharpe-re5jqeeqqe8avxtiumwx3w@public.gmane.org \
    --cc=jlayton-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org \
    --cc=linux-cifs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=marcus.moeller-OI3hZJvNYWs@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.