<p>In my host, I currently have installed 2 wordpress applications, 1 phpBB forum and one MediaWiki.</p>

<p>Is there a way to merge the login so that all applications share the same credentials?</p>

<p>For instance, I want to register only in my phpBB and then I want to access all other applications with the given username and password.</p>

<p>Even if you don't know a unified way, what other login integration do you know of? Pros and cons of each?</p>

[{'answer_id': 39595, 'author': 'seanyboy', 'author_id': 1726, 'author_profile': 'https://Stackoverflow.com/users/1726', 'pm_score': 2, 'selected': False, 'text': '<p>I don\'t know how to share the session cookies, but you can easily share the same login. \ni.e. People will need to log separately into both sites, but will be able to use the same username and password. </p>\n\n<p>In the mediawiki file "LocalSettings.PHP", you can tell it to use a different (wordpress) database for authentication: </p>\n\n<p>e.g. </p>\n\n<pre><code>require_once(\'includes/AuthPlugin.php\');\nrequire_once(\'extensions/AuthPress.php\');\n\n$wgAuth = new AuthPress();\n$wgAuth-&gt;setAuthPressTablePrefix(\'evo_\');\n# Only include the following if you aren\'t using the same db as  MediaWiki\n$wgAuth-&gt;setAuthPressDBServer (\'localhost\');\n$wgAuth-&gt;setAuthPressDBName(\'yourWordPressDB\');\n$wgAuth-&gt;setAuthPressUser(\'mySQL user for same\');\n$wgAuth-&gt;setAuthPressPassword(\'The password\');\n</code></pre>\n\n<p>See <a href="http://bbpress.org/forums/topic/mediawiki-bbpress-and-wordpress-integration" rel="nofollow noreferrer">http://bbpress.org/forums/topic/mediawiki-bbpress-and-wordpress-integration</a></p>\n'}, {'answer_id': 39601, 'author': 'Binarytales', 'author_id': 319, 'author_profile': 'https://Stackoverflow.com/users/319', 'pm_score': 0, 'selected': False, 'text': '<p>Having tried to do this some years ago I remember it not being very easy. </p>\n\n<p>The way I did it was to create totally new table to user/pass and then replace these columns in the respective software with foreign keys to your new table - this required <strong>a lot</strong> of custom tweaking of core files in each application - mainly making sure all SQL requests to this data have the extra join needed for your new table. If I find the time I will maybe try and provide a step by step of the changes needed.</p>\n\n<p>There are some <strong>pretty big drawbacks</strong> to this approach though. The main one being from now on your gonna have to hand update any patches   </p>\n\n<p>If you have no content or users yet look at <a href="http://bbpress.org/documentation/integration-with-wordpress/" rel="nofollow noreferrer">http://bbpress.org/documentation/integration-with-wordpress/</a> which will make things a lot simpler for you.</p>\n\n<p>I can\'t quite remember but I believe that I big problem I had was that MediaWiki requires usernames formatted a certain that conflicted with phpBB.</p>\n\n<hr>\n\n<p>Of course, a totally different approach would be to mod each piece of software to use OpenID _ I believe plugins/extensions are readily available for all the applications you mentioned.</p>\n'}, {'answer_id': 39608, 'author': 'Dmitry Shechtman', 'author_id': 3583, 'author_profile': 'https://Stackoverflow.com/users/3583', 'pm_score': 1, 'selected': False, 'text': '<p>I once did a phpBB/MediaWiki login integration from the phpBB end.</p>\n\n<p><a href="https://damnian.svn.sourceforge.net/svnroot/damnian/phpBB3/MediaWiki/" rel="nofollow noreferrer">Check it out</a>.</p>\n'}, {'answer_id': 39640, 'author': 'jgreenawalt', 'author_id': 4247, 'author_profile': 'https://Stackoverflow.com/users/4247', 'pm_score': 1, 'selected': False, 'text': '<p>If you\'re integrating a bunch of different apps, and you really just want a bridge, I\'ve had good success with the bridge from <a href="http://www.single-signon.com" rel="nofollow noreferrer">Single-Signon.com</a>. You can see there supported apps here:\n<a href="http://www.single-signon.com/en/applications.html" rel="nofollow noreferrer">http://www.single-signon.com/en/applications.html</a></p>\n\n<p>I\'ve also used a MediaWiki extension for phpBB integration:\n<a href="http://www.mediawiki.org/wiki/Extension:PHPBB/Users_Integration" rel="nofollow noreferrer">http://www.mediawiki.org/wiki/Extension:PHPBB/Users_Integration</a></p>\n'}, {'answer_id': 39649, 'author': 'Thomas Owens', 'author_id': 572, 'author_profile': 'https://Stackoverflow.com/users/572', 'pm_score': 0, 'selected': False, 'text': '<p>I personally think that integration login systems is one of, if not the, hardest job when utilizing multiple prebuilt applications. As a fan of reuse and modularity, I find this disappointing. If anyone knows of any easy ways to handle this problem between random app X and random app Y, I would love to know.</p>\n'}, {'answer_id': 43592, 'author': 'Niko Gunadi', 'author_id': 4499, 'author_profile': 'https://Stackoverflow.com/users/4499', 'pm_score': 3, 'selected': False, 'text': '<p>when you integrate the system. Just remember 2 things:</p>\n\n<ol>\n<li><p>Login to system<br/>\nCheck username/password with both systems.</p></li>\n<li><p>Change of Password<br/>\nUpdate the password on both systems.</p></li>\n</ol>\n'}, {'answer_id': 271876, 'author': 'conceptDawg', 'author_id': 34901, 'author_profile': 'https://Stackoverflow.com/users/34901', 'pm_score': 0, 'selected': False, 'text': "<p>You can write a custom login hook for mediaWiki. I've done it for LibraryThing so that login credentials from our main site are carried over to our mediaWiki installation. The authentication hook extends mediaWiki's AuthPlugin.</p>\n\n<p>There are several small issues: </p>\n\n<ol>\n<li>mediaWiki usernames must start with initial caps (so if you allow case sensitive user names it could be a problem if two users have colliding wiki names)</li>\n<li>underscores in usernames are converted to spaces in mediaWiki</li>\n</ol>\n\n<p>But if you can deal with those then it is certainly possible to use your own user/password data with mediaWiki.</p>\n\n<p>Advantages: </p>\n\n<ol>\n<li>The user doesn't have to login to each area separately. Once they login to the main site they are logged into the wiki also.</li>\n<li>You know that usernames are the same across the systems and can leverage that in links, etc.</li>\n</ol>\n"}, {'answer_id': 272197, 'author': 'Scott Reynen', 'author_id': 10837, 'author_profile': 'https://Stackoverflow.com/users/10837', 'pm_score': 2, 'selected': False, 'text': '<p>One option is OpenID, which you can integrate into <a href="http://sourceforge.net/projects/phpbb-openid/" rel="nofollow noreferrer">phpBB</a>, <a href="http://wordpress.org/extend/plugins/openid/" rel="nofollow noreferrer">WordPress</a>, and <a href="http://www.mediawiki.org/wiki/Extension:OpenID" rel="nofollow noreferrer">MediaWiki</a>.</p>\n\n<p>A second option is to set up an LDAP server, which you can also integrate into <a href="http://sourceforge.net/projects/ldapauthmod/" rel="nofollow noreferrer">phpBB</a>, <a href="http://wordpress.org/extend/plugins/wpldap/" rel="nofollow noreferrer">WordPress</a>, and <a href="http://www.mediawiki.org/wiki/Extension:LDAP_Authentication" rel="nofollow noreferrer">MediaWiki</a>.</p>\n\n<p>If the sites are all on the same root domain, a third option is to modify the registration, login, and logout code so that these actions are replicated on every site at the same time. This gets messy, but it may be the easiest short-term solution if you\'re in a hurry. Once you track down the account code in each site, it\'s just a matter of copying and pasting and changing a few cookie parameters.</p>\n'}]
['https://Stackoverflow.com/questions/39564', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/2644/']