sharing authentication within two drupal distributions I am looking for a module or a way where two different drupal distributions can share the same authentication or user database ? Is there a module that can help with that ?

possibilities-

if user A logged into site-1,  the user should be logged in automatically to site-2.

if thats not possible, if user 1 creates a login on site-1, he should also be able to use the same login credentials on site-2 or vice versa.
This method comes with a list of caveats, but it's possible to simply share the users table across multiple installations via a table prefix array in settings.php.


  Example: Sharing Users
  This example shows how to share users. The
  users from a master site prefixed with 'master_' are shared to a slave
  site prefixed with 'slave1_'.


$db_prefix = array(
    "default" =&gt; "slave1_", // the prefix for tables that are not shared.
    "users" =&gt; "master_",
    "sessions" =&gt; "master_",
    "authmap" =&gt; "master_",
    "sequences" =&gt; "master_",
    "profile_fields" =&gt; "master_",
    "profile_values" =&gt; "master_",
);