When I enable OPT_USE_AUTH, I get essentially locked out of the web interface. The behavior is strange though, I'm not getting an invalid username/password message:
- The screen briefly flashes to the normal "logging in" and then goes right back to the login page.
- In /var/log/messages the only thing I see is "Oct 9 15:47:42 localhost web_php[75464]: INF [Login successful for user "admin"]"
- There are no messages in the /var/log/httpd/error_log
- When I use incorrect credentials, I get "Invalid username or password." as you would expect. But this message isn't displayed when I use the correct credentials.
Code: Select all
mysql -uroot -p -e "update zm.Config set Value=0 where name like '%OPT_USE_AUTH';"
- Used a different browser.
- Before enabling OPT_USE_AUTH, editing the admin user and assigning a new password.
- Before enabling OPT_USE_AUTH, adding a new user and trying those credentials.
- Dropping the zm database and re-running zm_create.sql
I already prototyped this build in a virtual machine and didn't run into this problem. The only difference I can think of on the production build I'm working on is that I've followed these instructions to put my events and images directories on a different partition. And that part is working great, I have a cam setup and it's recording events just fine. Everything works perfect before I enable auth so I really doubt the partition is the cause?
Also, I should mention that I built my own package in order to use a different apache user/group based on the instructions in this thread. But again, I prototyped this on a VM and didn't run into this issue with enabling auth.