Re: Kerberos authentication NOT in AD



Windows supports Unix Kerberos realms natively. You should be able to set up
an external trust with the Kerberos realm (a good starting point is
http://www.washington.edu/computing/support/windows/UWdomains/crossRealm.html)
and then you can p/invoke LogonUser with the username and password. You'll
also need to set up an account in your local AD to represent the foreign
realm user, but it's pretty easy to script such a thing or get fancy and use
something like MIIS to keep the account objects in sync.

Hope this helps.

Dave

"Joe Kaplan" wrote:

I'm not sure where the piece of code is that gives you a high level Kerberos
wrapper that runs on Windows. I'm pretty sure all of the APIs are there in
Windows to do it yourself, but I'm not an expert at this.

If the code exists on the Unix side, then a web service wrapper hosted on
Apache on the Unix side would be probably be pretty easy to put together as
well.

Maybe someone else here will post on the thread and provide some ideas. You
might also try asking how to do non-AD Kerberos auth in Windows without .NET
in the microsoft.public.platformsdk.security newsgroup and see what they
say. If a native solution can be created easily, it probably would not be
hard to p/invoke that from .NET to get your integration.

Best of luck,

Joe K.

--
Joe Kaplan-MS MVP Directory Services Programming
Co-author of "The .NET Developer's Guide to Directory Services Programming"
http://www.directoryprogramming.net
--
"Gary" <Gary@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:EE7D0FDA-F14F-4712-8C85-CF79017254D0@xxxxxxxxxxxxxxxx
You're right -- I haven't been able to find that piece of code anywhere.
All
the code there seem to be more building block-type examples that I don't
need. I'm not concerned about port access, but I don't have a lot of help
from the folks that manage the Kerberos realm, as they're all UNIX guys.
This is a new app, so I'm not doing any authentication as of yet (I've
done
straight AD/Windows authentication and SQL Server/Forms authentication in
the
past). I'm just trying to not have usernames/passwords stored in multiple
data sources.

If you've got a lead as to where such a piece of code might be I'd greatly
appreciate it.

"Joe Kaplan" wrote:

If you want to do forms auth and use plaintext credentials (instead of
trying to make this work with integrated Windows auth), then this should
be
something that is pretty doable.

The trick is to find a piece of code running somewhere that can take a
username and password and authenticate it against your Kerb realm. Then,
you just need an appropriate wrapper around that which can be used to
call
it remotely from your ASP.NET app.

The web service approach makes a lot of sense for your remoting wrapper,
but
there are other ways to do that. If you can get some Windows code that
can
do the authentication for you, I would think you could do this as an
in-process call directly from ASP.NET in the forms authentication event
handler. This would require having appropriate port 88 access to the
kerb
realm from the web server, obviously.

How are you able to authenticate programmatically now?

Joe K.

--
Joe Kaplan-MS MVP Directory Services Programming
Co-author of "The .NET Developer's Guide to Directory Services
Programming"
http://www.directoryprogramming.net
--
"Gary" <Gary@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:9B8F838D-62D5-4B4F-A3D0-357183419ACE@xxxxxxxxxxxxxxxx
I'm looking for the second one. This is a UNIX realm, and I just can't
find
anything. I did find IISPassword
<http://www.troxo.com/products/iispassword/>, but that only does basic
authentication, and I also took a look at MADAM
<http://msdn2.microsoft.com/en-us/library/aa479391.aspx>, but that
doesn't
seem to work either. What would be nice to do would be to use forms
authentication to pass the user credentials to a web service that could
authenticate against the Kerberos realm, but all the SOAP examples out
there
are really confusing.

Thanks!

"Joe Kaplan" wrote:

I don't have a lot of experience with doing this, but I'm curious if
you
want this integration to work at the Windows level such that you can
log
in
to Windows with an external Kerb realm (possible) and thus get that
support
from IIS, or if you want to find a Kerberos stack for .NET that you
can
integrate at the app level?

I imagine that either approach could work, but you'd be skinning the
cat
two
totally different ways.

Joe K.

--
Joe Kaplan-MS MVP Directory Services Programming
Co-author of "The .NET Developer's Guide to Directory Services
Programming"
http://www.directoryprogramming.net
--
"Gary" <Gary@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:03F78D62-DB86-43EE-BB25-E392A6826C73@xxxxxxxxxxxxxxxx
I'm trying to authenticate against a non-Active Directory Kerberos
realm
for
an ASP.NET application. I've seen so much stuff out there it's not
even
funny -- is there a halfway easy solution?

Thanks.









.



Relevant Pages

  • Re: Windows Authentication method on IIS6
    ... The microsoft.public.windows.server.* groups deal with Windows 2003 ... The microsoft.public.inetserver.* groups deal with IIS ... > the authentication button, ... You can configure either one or multiple realm names on a server running IIS ...
    (microsoft.public.win2000.security)
  • Re: Outlook using RPC over HTTPS does not authenticate using the Kerberos Realm
    ... NTLM authentication works fine for domain authentication. ... However, I still cannot authenticate using a Kerberos Realm account, event if I logged into Windows using those credentials. ... Microsoft CSS Online Newsgroup Support ...
    (microsoft.public.exchange.admin)
  • Re: AW: Proof of authenticity of TGT
    ... in the same windows domain and not in the same kerberos realm. ... But I'd be really surprised if a Windows KDC couldn't be convinced to ...
    (comp.protocols.kerberos)
  • Re: cross-realm authentication problem
    ... Windows client are in KLIENT.UIB.NO, Windows user accounts are in UIB.NO, Unix/Linux machines and accounts are in UNIX.UIB.NO. ... I have one web server running RHEL4, apache 2.0.52 and Kerberos 1.3.4 as provided by Redhat, self-compiled mod_auth_kerb 5.4, and another running RHEL5, apache 2.2.3 and Kerberos 1.6.1 as provided by Redhat, self-compiled mod_auth_kerb 5.4. ... After authenticating against UIB.NO on a Linux machine (which have UNIX.UIB.NO as primary realm in krb5.conf) cross-realm authentication works fine. ... But using a Windows machine where the user is authenticated in UIB.NO I get cross-realm authentication only to the web server running RHEL4, not the one running RHEL5, I never even get a ticket for UNIX.UIB.NO from AD when trying to access the RHEL5 server web page. ...
    (comp.protocols.kerberos)
  • Kerberos and AAA stds
    ... I think that authentication operations should be centralized. ... a single entity to obtain authentication for users from local realm and roaming ... AS to perform a DNS lookup to contact a remote realm's KDC. ... EAP protocol and deliver the EAP packets to the local AAA server using an AAA ...
    (comp.protocols.kerberos)