Re: Validating Users With Expired Passwords





On Wednesday, January 18, 2006 06:37:44 AM -0800 wiltbank@xxxxxxxxx wrote:

> In a nutshell, I need to take a username and an expired password and
> see if that truely was the users' last pasword.

You haven't said what Kerberos server you're using, so I'll assume you're
using either the MIT or Heimdal servers. If the server in question is a
Microsoft server, then parts of what I'm about to say my be significantly
different...

Most servers keep separate "last password change" and "last modified"
timestamps for each principal. The former refers specifically to the
principal changing its own password (not having it changed by an admin).
If you want this information to be correct for auditing purposes, then you
want to submit a password change request on the user's behalf, rather than
verifying the old password and making a change on your own authority.

Conveniently, this approach is also generally easier -- you just collect
the username, old password, and new password, and then attempt a password
change just as if you were the user. If the old password they gave was
invalid, then the request will fail.

If for some reason you feel you need to validate the password yourself,
then you will want to do it correctly. That means not just getting a
ticket, but getting a ticket for a service whose secret key you know, so
that you can verify that the ticket is legitimate. Without this step, an
attacker can give you any random string as the "old password", and then
forge the response you get from the Kerberos server to make you think the
password is valid. Offhand, I don't know of a way to do this from Perl;
maybe someone else here knows of a stable set of perl modules providing
access to the Kerberos API.


> Once I'm able to
> validate the users' expired information, I already have a system in
> place that will change their password through a web-based form... It's
> just the authentication with expired credentials that's killing.

This is likely because the KDC will not issue tickets to a principal with
an expired password -- doing so would sort of defeat the purpose of having
the password expire in the first place. Once a password is expired, the
KDC will only issue initial tickets for services which are flagged as
password-changing services.


-- Jeffrey T. Hutzelman (N3NHS) <jhutz+@xxxxxxx>
Sr. Research Systems Programmer
School of Computer Science - Research Computing Facility
Carnegie Mellon University - Pittsburgh, PA

________________________________________________
Kerberos mailing list Kerberos@xxxxxxx
https://mailman.mit.edu/mailman/listinfo/kerberos

.



Relevant Pages

  • Re: expiring user account passwords
    ... > active directory) to automatically expire every 90 day's. ... > accounts and user accounts that access these servers via front page server ... > access to there ftp data or front page data on the server without any ... How do the ftp users and front page server ...
    (microsoft.public.inetserver.iis.security)
  • Re: News entries diappear after a while - header expiration?
    ... that if your server makes a mistake and sends an unnecessarily high ... header embeds the message sequence number in it. ... > NOT seem to expire. ... And that otherwise invisible msg. ...
    (microsoft.public.windows.inetexplorer.ie6_outlookexpress)
  • Re: Vincent: Exchange 2003 Trial Expire - Timebomb
    ... As you said I can restart the service and I thought ... server was "stopped" and didn't crash that option doesn't work. ... > is about to expire. ... > is to look at the Exchange Setup Progress Log found in the root of the ...
    (microsoft.public.exchange2000.setup.installation)
  • Re: IMF Will Not Update
    ... Microsoft Exchange Server 2003: Update for Intelligent Message Filter for Exchange Server 2003: 2006.11.09 ... If you miss the "window," the updates "expire" and then you have to wait another 2 weeks for the next lot of updates to come along. ... Make sure your SBS Server is running Microsoft Update. ...
    (microsoft.public.windows.server.sbs)
  • Re: Password questions/problems
    ... Win 2k Server on the server, and the workstations are all Win Xp Pro. ... > admin password or something like that was set to expire today and did they ... Are the users using domain accounts or is it a workgroup environment? ...
    (microsoft.public.win2000.security)