[28531] in Kerberos

home help back first fref pref prev next nref lref last post

Re: Kerberos.app AD UPN & SAM authentication issue

daemon@ATHENA.MIT.EDU (Michael B Allen)
Thu Oct 4 23:58:26 2007

Message-ID: <78c6bd860710042058k2758f34dsd69ff5d94ec41617@mail.gmail.com>
Date: Thu, 4 Oct 2007 23:58:04 -0400
From: "Michael B Allen" <ioplex@gmail.com>
To: "Russ Allbery" <rra@stanford.edu>
In-Reply-To: <874ph62rhs.fsf@windlord.stanford.edu>
MIME-Version: 1.0
Content-Disposition: inline
Cc: kerberos@mit.edu
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Errors-To: kerberos-bounces@mit.edu

On 10/4/07, Russ Allbery <rra@stanford.edu> wrote:
> "Michael B Allen" <ioplex@gmail.com> writes:
>
> > Active Directory does not use the userPrincipalName attribute to do
> > Kerberos authentication. It uses sAMAccountName@dnsRoot.
>
> I just tested against our Active Directory with an account that had both
> userPrincipalName and sAMAccountName set to different values and was able
> to authenticate using either of the two names via kinit from a Debian
> system.  Either returned valid tickets for the principal name that I used,
> and both had the same password and hence were using the same Active
> Directory record.

Hey Russ,

Ok, I messed this up a little.

Windows clients always use sAMAccountName@dnsRoot to intiate Kerberos
authentication but, you're right too, AD will accept the
userPrincipalName. To demonstrate this, try logging into a Windows
workstation joined to an AD domain using the userPrincipalName. Then
run kerbtray and look at the Client Principal Name. You'll see the
sAMAccountName@dnsRoot form. The only way it could get a TGT like that
is if it translated the userPrincipalName to sAMAccountName@dnsRoot
before it requested the it.

So my conclusion was wrong, Kerberos.app should work for Ben. Not sure
why it doesn't.

Note that this creates issues for apps that use the client principal
name as an identity used to search for stuff or hang data on in a DB
(same thing) because now there are two possible identities. This is
why all of our products normalize on the sAMAccountName. Otherwise,
with our MediaWiki plugin for example, the same user could end up with
two accounts.

Mike

-- 
Michael B Allen
PHP Active Directory SPNEGO SSO
http://www.ioplex.com/
________________________________________________
Kerberos mailing list           Kerberos@mit.edu
https://mailman.mit.edu/mailman/listinfo/kerberos

home help back first fref pref prev next nref lref last post