Seeker-Smith
Well-known member
I have xenforo 2.2 on a hosted server, I also have a remote portal that connects via remote mysql. Apache is using this remote connection to provide basic auth.
I need to update this connection from vb4 users > portal to xenforo xf_user, xf_user_authenticate > portal. The Apache mod is authn_dbd. Basically I need someone to write the sql for this connection. (It looks something like below) authn_dbd is bcrypt capable and my understanding is I should be able to get the username and password from the xf_user, xf_user_authenticate tables. I just don't know how to write the sql.
I need to update this connection from vb4 users > portal to xenforo xf_user, xf_user_authenticate > portal. The Apache mod is authn_dbd. Basically I need someone to write the sql for this connection. (It looks something like below) authn_dbd is bcrypt capable and my understanding is I should be able to get the username and password from the xf_user, xf_user_authenticate tables. I just don't know how to write the sql.
DBDParams "db_xenforo"
<Directory /media/data/www/portal.>
AuthName "You Must Login"
AuthType Basic
AuthBasicProvider dbd
AuthBasicProvider socache dbd
AuthnCacheProvideFor dbd
AuthnCacheContext my-server
AuthDBDUserPWQuery "SELECT encrypt(password) AS password FROM password WHERE username = %s"
Require valid-user
</Directory>