Authenticate phpBB using custom MS-SQL database

南笙酒味 提交于 2019-12-07 16:21:32

问题


How can I let my users to log into a phpBB forum by entering their user credentials while these credentials are stored in a separate MS SQL database?


回答1:


You need to create a custom authentication plugin for phpbb. Since your requirement is authentication against a database, it should be pretty straight forward to re-use the existing plugin phpbb uses for authentication against it's own internal database.

Authentication plugins are located in <install_dir>/includes/auth

An authentication plugin must be named auth_<your custom name>.php

So in your case, create a copy of auth_db.php and call it e.g. auth_mssql.php

Authentication plugins are documented here: http://wiki.phpbb.com/Authentication_plugins



来源:https://stackoverflow.com/questions/9373535/authenticate-phpbb-using-custom-ms-sql-database

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!