Authentication through transitive trusts
Antti Tikkanen
antti.tikkanen at hut.fi
Fri Jul 18 20:55:53 GMT 2003
On Fri, 18 Jul 2003, Marc Kaplan wrote:
> Ken,
>
> I looked at this again, and what I'm seeing is that Samba is successful
> enumerating all of the sequence numbers, users, and groups from the
> transitive trusts, but like you said -- client's cannot authenticate. I'm
> seeing the same thing as you, Win2k client is using NTLMSSP rather than
> Kerberos. Though it is important to note that my Win2k clients from all
> domains (not just transitive trusts) are using NTLMSSP to authenticate. I
> need to go back an try this with the latest Samba, since I'm using a dated
> version, but since you're seeing the same thing, I would guess that nothing
> has changed.
>
> win2k->win2k uses Kerberos, and win2k->nt4 users NTLMSSP, so it seems like
> the win2k box thinks the Samba Server is a downlevel client (or at least
> only supports NTLM).
Hi,
I don't know if this advice is valid here, but here goes. You might want
to check that the machine account for your Samba server has an entry for
the Kerberos Service Principal Name that the W2k clients are doing
KRB_AS_REQ's for.
I had problems adding my Samba server with a DNS name like
samba.example.com to a Windows domain windows.example.com, and had to add
a few SPN's (HOST/samba.example.com and CIFS/samba.example.com) manually
to get the W2k clients to use Kerberos. (I don't know if this is even
supposed to work without manual tricks?)
You can see the machine account SPN's with ldapsearch like this:
--clip--
% ldapsearch -Hldap://dc01.windows.example.com \
-b "dc=windows,dc=example,dc=com" -s sub cn=samba \
servicePrincipalName
SASL/GSSAPI authentication started
SASL SSF: 56
SASL installing layers
# extended LDIF
#
# LDAPv3
# base <dc=windows,dc=example,dc=com> with scope sub
# filter: cn=samba
# requesting: servicePrincipalName
#
# samba, Computers, windows.example.com
dn: CN=samba,CN=Computers,DC=windows,DC=example,DC=com
servicePrincipalName: HOST/samba.example.com # added manually
servicePrincipalName: CIFS/samba.example.com # added manually
servicePrincipalName: CIFS/samba.windows.example.com
servicePrincipalName: CIFS/samba
servicePrincipalName: HOST/samba.windows.example.com
servicePrincipalName: HOST/samba
--clip--
To see what SPN the client wants, use Ethereal. The KRB_AS_REQ should be
right after the negprot reply from Samba. If the KDC reply contains an
error instead of a service ticket, the client will fall back to using
NTLMSSP.
Antti
--
Antti.Tikkanen at hut.fi
Helsinki University of Technology
Computing Centre
More information about the samba-technical
mailing list