如何使用相同的用户/密码创建多个joomla网站?

时间:2022-07-18 20:46:57

How can i create multiple joomla websites with the same users/passwords ? if someone creates a user on any of these websites , hes user can be used in all of them , if someone changes password/any data they will be updated on the other websites also.

如何使用相同的用户/密码创建多个joomla网站?如果有人在任何这些网站上创建用户,则可以在所有这些网站中使用用户,如果有人更改密码/任何数据,他们也将在其他网站上更新。

2 个解决方案

#1


By default, Joomla has several authentification methods. So if you're able to use a LDAP server or OpenID, you can enable the related plugins - and you'll have all credentials on one server.

默认情况下,Joomla有几种身份验证方法。因此,如果您能够使用LDAP服务器或OpenID,则可以启用相关插件 - 并且您将在一台服务器上拥有所有凭据。

#2


Assuming you're using 1.5, look at the files in your plugins/authentication folder. Basically you create a class which extends the JPlugin class and implement the method with this header:

假设您使用的是1.5,请查看plugins / authentication文件夹中的文件。基本上,您创建了一个扩展JPlugin类的类,并使用此标头实现该方法:

function onAuthenticate( $credentials, $options, &$response );

It should return a bool and any extra information can go in the response object. You can do whatever database lookups you need.

它应该返回一个bool,任何额外的信息都可以放在响应对象中。您可以执行所需的任何数据库查找。

So, once you have that set up, what you could do is create a new database which just holds user account details. Your new authentication plugin could then connect to that database to check the password, and perhaps even copy over any updated account information.

因此,一旦完成设置,您可以创建一个只保存用户帐户详细信息的新数据库。然后,您的新身份验证插件可以连接到该数据库以检查密码,甚至可以复制任何更新的帐户信息。

#1


By default, Joomla has several authentification methods. So if you're able to use a LDAP server or OpenID, you can enable the related plugins - and you'll have all credentials on one server.

默认情况下,Joomla有几种身份验证方法。因此,如果您能够使用LDAP服务器或OpenID,则可以启用相关插件 - 并且您将在一台服务器上拥有所有凭据。

#2


Assuming you're using 1.5, look at the files in your plugins/authentication folder. Basically you create a class which extends the JPlugin class and implement the method with this header:

假设您使用的是1.5,请查看plugins / authentication文件夹中的文件。基本上,您创建了一个扩展JPlugin类的类,并使用此标头实现该方法:

function onAuthenticate( $credentials, $options, &$response );

It should return a bool and any extra information can go in the response object. You can do whatever database lookups you need.

它应该返回一个bool,任何额外的信息都可以放在响应对象中。您可以执行所需的任何数据库查找。

So, once you have that set up, what you could do is create a new database which just holds user account details. Your new authentication plugin could then connect to that database to check the password, and perhaps even copy over any updated account information.

因此,一旦完成设置,您可以创建一个只保存用户帐户详细信息的新数据库。然后,您的新身份验证插件可以连接到该数据库以检查密码,甚至可以复制任何更新的帐户信息。