List Info

Thread: MD5 Password being changed to SHA1 and no longer working




MD5 Password being changed to SHA1 and no longer working
user name
2006-02-16 01:47:41
Hi All,

Apologies if this has been raised, I did a bit of searching
without any luck :(

I've recently upgraded to the latest release and one of the
issues
I've experienced is that my passwords which were in md5
work
correctly, however immediately upon logging in they are
changed to a
SHA1 hash with which future logins do not work.

I have tried changing my password before logging out,
however this
doesn't work as the confirm password doesn't work, if I
reset my
password to the md5 hash (via db) then I can change my new
password
doesn't work.

Is there something that I'm missing?

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Django users" group.
To post to this group, send email to django-usersgooglegroups.com
To unsubscribe from this group, send email to
django-users-unsubscribegooglegroups.com
For more options, visit this group at http://gr
oups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---

MD5 Password being changed to SHA1 and no longer working
user name
2006-02-16 03:51:18
On 2/15/06, Milton Waddams <ilikeprivacygmail.com> wrote:
> I've recently upgraded to the latest release and one
of the issues
> I've experienced is that my passwords which were in
md5 work
> correctly, however immediately upon logging in they are
changed to a
> SHA1 hash with which future logins do not work.

Hmmm, I don't recall anybody having this issue, so I
suspect it's
something with your code.  Are you, perchance, subclassing
the
auth.User model or doing anything else custom with the auth
app?

Adrian

--
Adrian Holovaty
holovaty.com | djangoproject.com | chicagocrime.org

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Django users" group.
To post to this group, send email to django-usersgooglegroups.com
To unsubscribe from this group, send email to
django-users-unsubscribegooglegroups.com
For more options, visit this group at http://gr
oups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---

MD5 Password being changed to SHA1 and no longer working
user name
2006-02-16 04:22:02
On 2/16/06, Adrian Holovaty <holovatygmail.com> wrote:
....
> Hmmm, I don't recall anybody having this issue, so I
suspect it's
> something with your code.  Are you, perchance,
subclassing the
> auth.User model or doing anything else custom with the
auth app?

Nope, only thing I'm using auth for is for the auto
generated admin.

I have probed a little deeper to find a solution...

When I change the password using User.set_password() it
changes to
sha1 in the database however when I attempt to login through
the
administration interface it doesn't authenticate.
User.check_password() returns True when supplied with the
correct
password.

For now I've commented out the lines in check_password
which change
the password to sha1 if it isn't sha1 and it appears to be
working
fine for me, when I have time I'll look into it in more
detail.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Django users" group.
To post to this group, send email to django-usersgooglegroups.com
To unsubscribe from this group, send email to
django-users-unsubscribegooglegroups.com
For more options, visit this group at http://gr
oups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---

MD5 Password being changed to SHA1 and no longer working
user name
2006-02-17 06:14:44
I'm only guessing, since while I've been around django,
sha1 has been
used as the passwd hash function.. But could you check that
if the
password actually fits in the space reserved for in the
database? my
point is (if there is any;)) that md5 creates a 32 digit
hash sum and
sha1 creates a 40 digit instead...



Milton Waddams wrote:
> On 2/16/06, Adrian Holovaty <holovatygmail.com> wrote:
> ....
> > Hmmm, I don't recall anybody having this issue,
so I suspect it's
> > something with your code.  Are you, perchance,
subclassing the
> > auth.User model or doing anything else custom with
the auth app?
>
> Nope, only thing I'm using auth for is for the auto
generated admin.
>
> I have probed a little deeper to find a solution...
>
> When I change the password using User.set_password() it
changes to
> sha1 in the database however when I attempt to login
through the
> administration interface it doesn't authenticate.
> User.check_password() returns True when supplied with
the correct
> password.
>
> For now I've commented out the lines in check_password
which change
> the password to sha1 if it isn't sha1 and it appears
to be working
> fine for me, when I have time I'll look into it in
more detail.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Django users" group.
To post to this group, send email to django-usersgooglegroups.com
To unsubscribe from this group, send email to
django-users-unsubscribegooglegroups.com
For more options, visit this group at http://gr
oups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---

MD5 Password being changed to SHA1 and no longer working
user name
2006-02-17 09:26:42
> I'm only guessing, since while I've been around
django, sha1 has been
> used as the passwd hash function.. But could you check
that if the
> password actually fits in the space reserved for in the
database? my
> point is (if there is any;)) that md5 creates a 32
digit hash sum and
> sha1 creates a 40 digit instead...

It's always something really simple!!!!!

thanks 

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Django users" group.
To post to this group, send email to django-usersgooglegroups.com
To unsubscribe from this group, send email to
django-users-unsubscribegooglegroups.com
For more options, visit this group at http://gr
oups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---

[1-5]

about | contact  Other archives ( Real Estate discussion Medical topics )