Page 1 of 1

Streaming breaks after password change

Posted: Wed Feb 20, 2008 8:08 pm
by jdppm7
After changing your password, streaming doesn't seem to work. Error messages pile up in you apache error log: "Error, unable to authenticate user." If you log out and log back in the problem is fixed.

I haven't had time to dive into the code to find the problem, but if I run across the solution I'll fix it.

Zoneminde 1.23.1, SuSE 10.3, Apache 2.2.4, PHP 5.2.5

Posted: Wed Feb 20, 2008 10:44 pm
by zoneminder
Yes, the authentication key is based on the password and generated when you log in. You always have to log out and back in again when you change passwords. This isn't a bug but perhaps could be better explained.

Possible change

Posted: Thu Feb 21, 2008 12:55 am
by jdppm7
I guess i didn't realize that. Sorry if it was a waste of time.

I'll see if I could write a patch that would correct that behavior and submit it for others.

Posted: Thu Feb 21, 2008 8:42 am
by robi
Why is that a problem? It's a useful security feature, why destroy it?

Posted: Thu Feb 21, 2008 2:31 pm
by jdppm7
Really? I don't see how that's a useful security feature at all. Care to elaborate?

Posted: Thu Feb 21, 2008 3:17 pm
by robi
I think it is, but hey, everyone has his own opinion. Perhaps a checkbox in options would allow one to skip using this.

It would make things less secure... because now changing the password is an easy way to prevent one's access to a stream, and it would break the stream immediately, as it does now.
Why do you need to change password while you're watching it? Why is it a problem to re-login?

Actually this is not a bug, this is so by design, and it works just the way it should.