I know quite a few things have changed in 2.10, but I have an issue trying to get authentication workings cleanly. I have apache configured to be the authenticating mechanism with the expectation that FreePBX won't handle any part of it with the exception of providing the ampusers table in the pbx's freepbx database.
Here are my system attributes:
Server: CentOS 6.2 x86_64
FreePBX version: 2.10.0.4 (All modules are only from Basic Repo and updated as of Apr 19, 2012)
Asterisk version: 10.3.0
In /etc/amportal.conf I have the following set up for authentication parameters (and I have tried every combination with cleared browser cache to no avail, but this is its current setup):
# Authorization Type
# Default Value: database
AUTHTYPE=none
# Allow Login With DB Credentials
# Default Value: FALSE
AMP_ACCESS_DB_CREDS=TRUE
---
I have apache set up to read from the ampusers table like this:
---
<Directory "/var/www/webgui/pbxadmin/">
AllowOverride? AuthConfig?
Options Indexes FollowSymLinks?
order allow,deny
allow from all
AuthType? Basic
AuthGroupFile? /dev/null
AuthName? "PBX Access : Restricted"
AuthMySQLEnable On
AuthMySQLHost db1dev.classiccitytelco.com
AuthMySQLDB 200002_asterisk
AuthMySQLUserTable ampusers
AuthMySQLUser 200002
AuthMySQLPassword [deleting this from public view]
AuthMySQLNameField username
AuthMySQLPasswordField password_sha1
AuthMySQLAuthoritative On
AuthMySQLPwEncryption sha1
Require valid-user
</Directory>
---
Now the apache authentication works great. When accessing http://[pbx's ip]/pbxadmin/ I get prompted for the password and it is definitely hitting ampusers for that information to test the login attempt against.
My problem comes up in that when I try to access FreePBX in http://[pbx's ip]/pbxadmin/admin/ I get prompted by FreePBX itself for the same authentication information. The exact message says "To get started, please enter your credentials:".
I'm confused as to how exactly to disable that message as it is redundant. I've played around with various configurations of the two amportal.conf entries I stated earlier (again, each time with a clear browser cache) and so far FreePBX will always make me authenticate via its web gui immediately after authenticating properly through apache.
Any idea on how to disable this secondary authentication?
This making me feel like a dunce as this was fairly easy to configure in previous versions of FreePBX :D I'm sure I'm missing something fairly simple.
Thank you,
John Knight